Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/calebmadrigal/socks5-server-py
SOCKS5 server in a single python script.
https://github.com/calebmadrigal/socks5-server-py
Last synced: 16 days ago
JSON representation
SOCKS5 server in a single python script.
- Host: GitHub
- URL: https://github.com/calebmadrigal/socks5-server-py
- Owner: calebmadrigal
- License: mit
- Created: 2016-10-18T00:03:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-07T23:00:01.000Z (9 months ago)
- Last Synced: 2024-10-12T15:49:44.010Z (about 1 month ago)
- Language: Python
- Size: 5.86 KB
- Stars: 26
- Watchers: 4
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# socks5-server-py
A basic [SOCKS5](https://en.wikipedia.org/wiki/SOCKS#SOCKS5) proxy server in a single Python script (with no 3rd party dependencies).
Should work with Python 2.6+
## Usage
Tab 1: `python socks5_server.py`
* Start the SOCKS5 server on the default port 1080Tab 2: `echo hello | nc -vv -l 6000`
* Use [netcat](https://en.wikipedia.org/wiki/Netcat) to start a simple serverTab 3: `nc -X 5 -x localhost:1080 localhost 6000`
* Use netcat to connect to the netcat server via the proxy.```
cmadrigal-MBP:socks5_server caleb.madrigal$ python socks5_server.py -h
usage: socks5_server.py [-h] [-s HOST] [-p PORT] [--log-path LOG_PATH]
[--log-level LOG_LEVEL]optional arguments:
-h, --help show this help message and exit
-s HOST, --host HOST IP/Hostname to serve on
-p PORT, --port PORT Port to serve on
--log-path LOG_PATH DEBUG, INFO, WARNING, ERROR, or CRITICAL
--log-level LOG_LEVEL
Log file path
```