https://github.com/ultrafunkamsterdam/socksproxy
A flexible, asynchronous SOCKS 4/4A/5/5H proxy server written in pure Python
https://github.com/ultrafunkamsterdam/socksproxy
Last synced: 3 months ago
JSON representation
A flexible, asynchronous SOCKS 4/4A/5/5H proxy server written in pure Python
- Host: GitHub
- URL: https://github.com/ultrafunkamsterdam/socksproxy
- Owner: ultrafunkamsterdam
- License: mit
- Created: 2018-10-05T19:44:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-09T01:08:37.000Z (almost 7 years ago)
- Last Synced: 2025-01-17T18:05:19.398Z (9 months ago)
- Language: Python
- Size: 23.4 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# socksproxy :+1:
A flexible asynchronous socks4 / socks5 proxy written in pure python
This proxy module can be used as a full blown proxy or the classes can be used to provide a interface to socks4 or/and socks5
### usage (as a program):
after installation through
```pip install git+https://github.com/ultrafunkamsterdam/socksproxy.git```
the proxy can be started using the command
```cmd
socksproxy
```### usage (as a python module)
**default settings**
```python
import socksproxysocks5proxy = socksproxy.Socks5()
socks5proxy.start()
```**set specific listen host, port, and not block while serving**
```python
import socksproxy
from asyncio import get_event_loop, sleep
socks4proxy = socksproxy.Socks4(listen_host='0.0.0.0', listen_port=1080)
socks4proxy.start(keep_serving=False)# run other functions, emulated by sleep
get_event_loop().run_until_complete(sleep(20))
```