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

📄 socks5_loop_connect.nasl

📁 漏洞扫描源码,可以扫描linux,windows,交换机路由器
💻 NASL
字号:
## This script was written by Michel Arboi <mikhail@nessus.org># GPL# # Socks5 is defined by those RFC:# RFC1928 SOCKS Protocol Version 5# RFC1929 Username/Password Authentication for SOCKS V5# RFC1961 GSS-API Authentication Method for SOCKS Version 5#if(description){ script_id(17156); script_version ("$Revision: 38 $"); name["english"] = "Connect back to SOCKS5 server"; script_name(english:name["english"]);  desc["english"] = "It was possible to connect to the SOCKS5 serverthrough itself. This allow anybody to saturate the proxy CPU, memory or file descriptors.Solution: reconfigure your proxy so that it refuses connections to itselfRisk factor : Medium"; script_description(english:desc["english"]);  summary["english"] = "Connect back to SOCKS5 proxy"; script_summary(english:summary["english"]);  script_category(ACT_ATTACK);  script_copyright(english:"This script is Copyright (C) 2005 Michel Arboi"); family["english"] = "Denial of Service"; family["francais"] = "D閚i de service"; script_family(english:family["english"], francais:family["francais"]); script_require_ports("Services/socks5", 1080); script_dependencie("find_service.nes", "find_service2.nasl"); exit(0);}## include("dump.inc");port = get_kb_item("Services/socks5");if (! port) port = 1080;if (! get_port_state(port)) exit(0);s = open_sock_tcp(port);if (! s) exit(0);req5 = raw_string(5, 3, 0, 1, 2);send(socket: s, data: req5);data = recv(socket: s, length: 2);p2 = port % 256;p1 = port / 256;a = split(get_host_ip(), sep: '.');cmd = raw_string(5, 1, 0, 1, int(a[0]), int(a[1]), int(a[2]), int(a[3]), p1, p2);for (i = 3; i >= 0; i --){  send(socket: s, data: cmd);  data = recv(socket: s, length: 10, min: 10);# dump(ddata: data, dtitle: "socks");  if (strlen(data) != 10 || ord(data[0]) != 5 || ord(data[1]) != 0) break;}close(s);if (i < 0) security_hole(port);

⌨️ 快捷键说明

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