Quantcast
Channel: 看得透又看得远者prevail.ppt.cc/flUmLx ppt.cc/fqtgqx ppt.cc/fZsXUx ppt.cc/fhWnZx ppt.cc/fnrkVx ppt.cc/f2CBVx
Viewing all articles
Browse latest Browse all 20473

Python-based Socks5 Proxy server

$
0
0
一个基于Python写的Socks5代理脚本。

git clone https://github.com/LuoZijun/python-proxy
cd python-proxy
root@RegalMusty-VM:~/python-proxy# ls
LICENSE  README.rst  assets  document  proxy
root@RegalMusty-VM:~/python-proxy# ls proxy
__init__.py  __init__.pyc  __main__.py  protocols  utils
root@RegalMusty-VM:~/python-proxy# cd proxy
root@RegalMusty-VM:~/python-proxy/proxy# nano __main__.py
(把第三行的值改为localhost,把第四行的值改为2070)
root@RegalMusty-VM:~/python-proxy/proxy# cat __main__.py
from proxy import Proxy
if __name__ == '__main__':
    host  = "localhost"
    port  = 2070
    proxy = Proxy(host=host, port=port)
    proxy.run()
root@RegalMusty-VM:~/python-proxy/proxy# cd ..
root@RegalMusty-VM:~/python-proxy# python -m proxy > /dev/null &
会显示:
2018-02-02 23:59:38 [Server] Proxy Server running on localhost:2070 ...

from  https://github.com/luozijun/python-proxy

这是明文代理,可用作stunnel等的后端。参见http://briteming.blogspot.com/2016/03/vpsstunnel.html
或http://briteming.blogspot.com/2012/01/vpsstunnel.html

Viewing all articles
Browse latest Browse all 20473

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>