资 源 简 介
Synopsis
SocksiPy - A Python SOCKS client module. It provides a socket-like interface that supports connections to any TCP service through the use of a SOCKS4, SOCKS5 or HTTP proxy.
The original version was developed by Dan Haim and can be downloaded from Sourceforge: https://sourceforge.net/projects/socksipy/
This is an unofficial branch created by Mario Vilas to address some open issues, as the original project seems to have been abandoned circa 2007.
Using SocksiPy
via wrapmodule()
Using SocksiPy is easy. In most cases, you can simply wrap standard modules with SocksiPy. To do this, simply:
1. Import SocksiPy and the intended modules
1. Set the proxy information by calling setdefaultproxy()
1. Wrap the target module by calling wrapmodule()
```
# Import Target Modules
import ftplib
import telnetlib
import urllib2
Import SocksiPy
import socks
Set the proxy info