https://github.com/jimmy-ly00/mlsocks
Mid-latency SOCKS5 server with a Stop-And-Go 1-mix delay
https://github.com/jimmy-ly00/mlsocks
asynchronous delay-messages latency mixer non-blocking-io python python-2 socks5 socks5-server
Last synced: 5 months ago
JSON representation
Mid-latency SOCKS5 server with a Stop-And-Go 1-mix delay
- Host: GitHub
- URL: https://github.com/jimmy-ly00/mlsocks
- Owner: jimmy-ly00
- License: mit
- Created: 2017-06-24T14:47:54.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-08T12:33:48.000Z (over 7 years ago)
- Last Synced: 2024-12-29T14:39:33.348Z (7 months ago)
- Topics: asynchronous, delay-messages, latency, mixer, non-blocking-io, python, python-2, socks5, socks5-server
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Mid-latency SOCKS5 server
Uses a Stop-And-Go 1-Mix (https://www.freehaven.net/anonbib/cache/stop-and-go.pdf) to delay individual messages from the TCP stream against a truncated exponential distribution for sending and receiving data.
Uses gevent asynchronous I/O and non-blocking sleep to delay messages while handling incoming messages
### Prerequisite
Linux & Python 2.7
```
pip install gevent
```### Usage
Runs on localhost 127.0.0.1 and default port 1080:```
python mlsocks.py
```To test if it's working:
```
curl --socks5 localhost:1080 example.com
```### References
http://xiaoxia.org/2011/03/29/written-by-python-socks5-server/