145

GitHub - netxfly/xsec-proxy-scanner: xsec-proxy-scanner是一款速度超快、小巧的代...

 6 years ago
source link: https://github.com/netxfly/xsec-proxy-scanner
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

xsec-proxy-scanner

xsec-proxy-scanner是一款速度超快、小巧的代理服务器扫描器,使用场景为:

  1. 定期扫描自已公司服务器,排查是否有外网服务器开启了代理服务;
  2. 扫描公网中的代理服务器(搞成分布式的,也可以卖代理了)

支持的协议有:

  1. https
  2. socks4
  3. socks4a
  4. socks5
$ ./proxy_scanner
NAME:
   xsec proxy scanner - A SOCKS4/SOCKS4a/SOCKS5/HTTP/HTTPS proxy scanner

USAGE:
   proxy_scanner [global options] command [command options] [arguments...]

VERSION:
   20171205

AUTHOR(S):
   netxfly <[email protected]>

COMMANDS:
     scan     start to scan proxy
     dump     dump proxies to a text file
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --debug, -d                 debug mode
   --scan_num value, -n value  scan num (default: 1000)
   --timeout value, -t value   timeout (default: 5)
   --filename value, -f value  filename (default: "iplist.txt")
   --dumpfile value, -o value  filename (default: "xsec_proxies.txt")
   --help, -h                  show help
   --version, -v               print the version
  1. scan参数表示开始扫描,扫描结束后会将结果保存到当前目录的xsec_proxies.dbxsec_proxies.txt文件中,db是数据库文件,txt是文本结果;
  2. dump表示将指定DB文件中的结果导出为文本文件。
  3. 以下为可选参数:
    • --debug,表示是否启用debug模式,看到具体的扫描过程;
    • --scan_num,表示每次扫描的服务器数量,默认为1000;
    • --timeout,表示每个扫描请求的超时时间,默认为5秒;
    • --filename,表示要扫描的iplist的文件名,默认为当前目录下的iplist.txt文件
    • dumpfile,表示在使用dump参数时,导出的文本文件名

从上图中看出,timeout参数调得过短会存在漏报现象,需要根据网络情况合理调整timeout参数。

编译好的二进制版本下载地址https://github.com/netxfly/xsec-proxy-scanner/releases


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK