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

📄 dbman_cgi.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## This script was written by Noam Rathaus <noamr@securiteam.com>## See the Nessus Scripts License for details## Changes by rd : #  - script_id#  - script_bugtraq_id(1178);#  - family (in french)##if(description){ script_id(10403); script_bugtraq_id(1178); script_version ("$Revision: 38 $");  script_cve_id("CVE-2000-0381"); name["english"] = "DBMan CGI server information leakage"; script_name(english:name["english"]);  desc["english"] = "It is possible to cause the DBMan CGI to reveal sensitive information, by requesting a URL such as:GET /scripts/dbman/db.cgi?db=no-dbRisk factor : MediumSolution : Upgrade to the latest version"; script_description(english:desc["english"]);  summary["english"] = "Checks if webplus reads local files";  script_summary(english:summary["english"]);  script_category(ACT_GATHER_INFO);  script_copyright(english:"This script is Copyright (C) 2000 SecuriTeam"); family["english"] = "CGI abuses"; family["francais"] = "Abus de CGI"; script_family(english:family["english"], francais:family["francais"]); script_dependencie("find_service.nes"); script_require_ports("Services/www", 80); exit(0);}## The script code starts here#include("http_func.inc");port = get_http_port(default:80);if(get_port_state(port)){  if ( get_kb_item("Services/www/" + port + "/embedded" ) ) exit(0);  req = http_get(item:"/scripts/dbman/db.cgi?db=no-db",  		port:port);  soc = http_open_socket(port);  if(soc)  {   send(socket:soc, data:req);   result = http_recv(socket:soc);   http_close_socket(soc);   backup = result;   report = string("\nIt is possible to cause the DBMan\n", "CGI to reveal sensitive information, by requesting a URL such as:\n\n","GET /scripts/dbman/db.cgi?db=no-db\n\n","We could obtain the following : \n\n");   if("CGI ERROR" >< result)   {    result = strstr(backup, string("name: no-db at "));    result = result - strstr(result, string(" line "));    result = result - "name: no-db at ";    report = "CGI full path is at: " + result + string("\n");    result = strstr(backup, string("Perl Version        : "));    result = result - strstr(result, string("\n"));    result = result - string("Perl Version        : ");    report = report + "Perl version: " + result + string("\n");    result = strstr(backup, string("PATH                : "));    result = result - strstr(result, string("\n"));    result = result - string("PATH                : ");    report = report + "Server path: " + result + string("\n");    result = strstr(backup, string("SERVER_ADDR         : "));    result = result - strstr(result, string("\n"));    result = result - string("SERVER_ADDR         : ");    report = report + "Server real IP: " + result + string("\n");    result = strstr(backup, string("SERVER_SOFTWARE     : "));    result = result - strstr(result, string("\n"));    result = result - string("SERVER_SOFTWARE     : ");    report = report + "Server software: " + result + string("\n");    report = report + string("\nRisk factor : Medium\n",    			    "Solution : Upgrade to the latest version\n");    security_warning(port, data: report);   }   }}

⌨️ 快捷键说明

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