⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nntpserver_detect.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## This script was written by Noam Rathaus <noamr@securiteam.com>## See the Nessus Scripts License for details#if(description){ script_id(10159); script_version ("$Revision: 38 $"); name["english"] = "News Server type and version"; script_name(english:name["english"]);  desc["english"] = "This detects the News Server's type and version by connecting to the serverand processing the buffer received.This information gives potential attackers additional information about thesystem they are attacking. Versions and Types should be omittedwhere possible.Solution: Change the login banner to something genericRisk factor : Low"; script_description(english:desc["english"]);  summary["english"] = "News Server type and version"; script_summary(english:summary["english"]);  script_category(ACT_GATHER_INFO);  script_copyright(english:"This script is Copyright (C) 1999 SecuriTeam"); script_family(english:"Service detection"); script_dependencie("find_service_3digits.nasl"); script_require_ports("Services/nntp", 119);  exit(0);}## The script code starts here#port = get_kb_item("Services/nntp");if (!port) port = 119;if (get_port_state(port)){ soctcp119 = open_sock_tcp(port); if (soctcp119) {  resultrecv = recv_line(socket:soctcp119, length:1024);  if(!resultrecv)exit(0);  resultrecv = string("Remote NNTP server version : ", resultrecv);  security_note(port:port, data:resultrecv);  close(soctcp119); }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -