发布于  更新于 

通过websocket在IIS上实现socks5代理

场景

在无法反弹socks5,仅有webshell权限时,代理进入内网,类似于reGeorg.

但相对于reGeorg优势在于稳定,流量不会放大。

限制

  1. 可上传ashx文件,见 Handler.ashx
  2. IIS >= 8, 因为从IIS8开始才支持WebSocket协议, 见https://docs.microsoft.com/en-us/iis/get-started/whats-new-in-iis-8/iis-80-websocket-protocol-support

命令行参数

1
2
3
4
5
Usage of iisproxy:
-l string
socks5 server listen port (default "127.0.0.1:1080")
-u string
iis ashx url

代码

https://github.com/howmp/iisproxy

下载

https://github.com/howmp/iisproxy/releases