nntpserver_detect.nasl
来自「漏洞扫描源码,可以扫描linux,windows,交换机路由器」· NASL 代码 · 共 61 行
NASL
61 行
## 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 + =
减小字号Ctrl + -
显示快捷键?