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

📄 pop2_unencrypted_cleartext_logins.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## This script was written by George A. Theall, <theall@tifaware.com>.## See the Nessus Scripts License for details.#if (description) {  script_id(15854);  script_version("$Revision: 38 $");# script_cve_id("CVE-MAP-NOMATCH");# NOTE: no CVE id assigned (gat, 11/2004)  if (defined_func("script_xref")) {    script_xref(name:"OSVDB", value:"3119");  }  name["english"] = "POP2 Unencrypted Cleartext Logins";  script_name(english:name["english"]);  desc["english"] = "The remote host is running a POP2 daemon that allows cleartext logins overunencrypted connections.  An attacker can uncover login names andpasswords by sniffing traffic to the POP2 daemon. Solution : Encrypt traffic with SSL / TLS using stunnel.Risk factor : Low";  script_description(english:desc["english"]);  summary["english"] = "Checks for unencrypted POP2 login capability";  script_summary(english:summary["english"]);  script_category(ACT_GATHER_INFO);  script_copyright(english:"This script is Copyright (C) 2004 George A. Theall");  family["english"] = "Misc.";  script_family(english:family["english"]);  script_dependencie("find_service.nes", "global_settings.nasl");  script_require_ports("Services/pop2", 109);  exit(0);}include("global_settings.inc");port = get_kb_item("Services/pop2");if (!port) port = 109;debug_print("checking if POP2 daemon on port ", port, " allows unencrypted cleartext logins.");if (!get_port_state(port)) exit(0);# nb: skip it if traffic is encrypted.encaps = get_port_transport(port);if (encaps >= ENCAPS_SSLv2) exit(0);# Establish a connection.tag = 0;soc = open_sock_tcp(port);if (!soc) exit(0);r = recv_line(socket:soc, length:4096);if ( "POP" >!< r ) exit(0);# nb: POP2 doesn't support encrypted logins so there's no need to#     actually try to log in. [Heck, I probably don't even need to#     establish a connection.]security_note(port);close(soc);

⌨️ 快捷键说明

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