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

📄 ossim_server_detect.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## Script Written By Ferdy Riphagen # Script distributed under the GNU GPLv2 License. #if (description) { script_id(9000001); script_version("$Revision: 1.0 $"); name["english"] = "OSSIM Server Detection"; script_name(english:name["english"]); desc["english"] = "Synopsis :A OSSIM server is listening on the remote system. Description :The remote system is running an OSSIM server. OSSIM (Open SourceSecurity Information Management) is a centralized security management information system. See also :http://www.ossim.netSolution :If possible, filter incoming connections to the service so that it isused by trusted sources only.Risk factor :None"; script_description(english:desc["english"]); summary["english"] = "Checks for a OSSIM server on the default port tcp/40001"; script_summary(english:summary["english"]); script_category(ACT_GATHER_INFO); script_family(english:"Service detection"); script_copyright(english:"This script is Copyright (C) 2007 Ferdy Riphagen"); script_dependencies("find_service1.nasl"); script_require_ports("Services/unknown", 40001); exit(0);}include("misc_func.inc");port = get_unknown_svc(40001);if (!port) port = 40001;if (known_service(port:port)) exit(0);if (!get_port_state(port)) exit(0);soc = open_sock_tcp(port);if (soc) { 	rand = rand() % 10;	data = 'connect id="' + rand + '" type="sensor"\n'; 	send(socket:soc, data:data);	recv = recv(socket:soc, length:64);	if (recv == 'ok id="' + rand + '"\n') {		security_note(port:port);		register_service(port:port, ipproto:"tcp", proto:"ossim_server");	}}exit(0);

⌨️ 快捷键说明

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