sun_cobalt_adaptive_firewall_detect.nasl
来自「漏洞扫描源码,可以扫描linux,windows,交换机路由器」· NASL 代码 · 共 68 行
NASL
68 行
if(description){ script_id(10878);#script_cve_id("CVE-MAP-NOMATCH"); script_version("$Revision: 38 $"); name["english"] = "Sun Cobalt Adaptive Firewall Detection"; script_name(english:name["english"]); desc["english"] = "Sun Cobalt machines contain a firewall mechanism, this mechanism can beconfigured remotely by accessing Cobalt's built-in HTTP server. Upon access tothe HTTP server, a java based administration program would start, where a useris required to enter a pass phrase in order to authenticate himself. Since nousername is required, just a passphrase bruteforcing of this interface iseasier.Solution : Access to this port (by default set to port 8181) should not be permitted fromthe outside. Further access to the firewall interface itself should not beallowed (by default set to port 2005).Risk factor : Medium"; script_description(english:desc["english"]); summary["english"] = "Sun Cobalt Adaptive Firewall Detection"; script_summary(english:summary["english"]); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2002 SecurITeam"); family["english"] = "General"; script_family(english:family["english"]); script_dependencie("httpver.nasl"); script_require_ports("Services/www", 8181); exit(0);}include("http_func.inc");include("http_keepalive.inc");include("misc_func.inc");# Check starts herefunction check(port, req){ req = http_get(item:req, port:port); buf = http_keepalive_send_recv(port:port, data:req); if( buf == NULL ) exit(0); if (("Sun Cobalt Adaptive Firewall" >< buf) && ("One moment please" >< buf)) { security_warning(port:port); set_kb_item(name:"Services/www/" + port + "/embedded", value:TRUE); exit(0); } return(0);}ports = add_port_in_list(list:get_kb_list("Services/www"), port:8181);foreach port (ports){ foreach dir (cgi_dirs()) check(port:port, req:string(dir, "/"));}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?