通过websocket在IIS8(Windows Server 2012)以上实现socks5代理
在无法反弹socks5
,仅有webshell权限时,代理进入内网,类似于reGeorg.
但相对于reGeorg
优势在于稳定,流量不会放大。
- 可上传
ashx
文件,见 Handler.ashx - IIS >= 8, 因为从IIS8开始才支持WebSocket协议, 见https://docs.microsoft.com/en-us/iis/get-started/whats-new-in-iis-8/iis-80-websocket-protocol-support
httpRuntime的targetFramework需要>= 4.5,测试了4.0不行
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<httpRuntime targetFramework="4.5" />
</system.web>
</configuration>
Usage of iisproxy:
-l string
socks5 server listen port (default "127.0.0.1:1080")
-u string
iis ashx url