Skip to main content

Simple TCP/TLS mitm engine supports SOCKSv4 + SOCKSv5 + Cert store

Project description

pysockssl

Python 3

Similar to

But more simple and focus on TCP/TLS stream capture ONLY - NO data analyzing 🤐

Support

  • TCP only
  • SOCKSv4 + user auth
  • SOCKSv5 + user/pwd auth
  • [Dummy] cert generator
  • SSL/TLS man-in-the-middle 😎

Install

pip3 install pysockssl

or

git clone https://github.com/trichimtrich/pysockssl
cd pysockssl
python3 setup.py install

Usage

$ sockssl --help
Usage: sockssl [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  genca  Generate root CA
  run    Run a standalone SOCKS server
  • Generate root CA
sockssl genca rootCA.crt rootCA.key -org mycompany -cn myCA
  • Run server
# Socks4/Socks5 no TLS mitm
sockssl run v4
sockssl run v5

# Mitm Socks4
sockssl run v4 -c rootCA.crt -k rootCA.key -h 0.0.0.0 -p 9999

# Mitm Socks4 + auth with multiple usernames
sockssl run v4 -c rootCA.crt -k rootCA.key -h 0.0.0.0 -p 9999 -u user1 -u user2

# Mitm Socks5
sockssl run v5 -c rootCA.crt -k rootCA.key -h 0.0.0.0 -p 9999

# Mitm Socks5 + auth with multiple users + passwords
sockssl run v5 -c rootCA.crt -k rootCA.key -h 0.0.0.0 -p 9999 -u user1 pass1 -u user2 pass2
  • Proxy your clients

  • Don't forget to trust rootCA.crt if you want to capture TLS data

TODO

  • Interactive interface
  • API to use captured data

License

GNU GPL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysockssl-0.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

pysockssl-0.1-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file pysockssl-0.1.tar.gz.

File metadata

  • Download URL: pysockssl-0.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.7

File hashes

Hashes for pysockssl-0.1.tar.gz
Algorithm Hash digest
SHA256 7cd33fe52defc479b559045700134fc55d881c3a1d3d2f18bd688262208179d9
MD5 05342cf2c08b33f91649e60777508c14
BLAKE2b-256 75e1a52720f5849d429d2c52749f714af399c64682a4d928895ae69fbc67ec46

See more details on using hashes here.

File details

Details for the file pysockssl-0.1-py3-none-any.whl.

File metadata

  • Download URL: pysockssl-0.1-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.7

File hashes

Hashes for pysockssl-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb410b5afe06f06a785e631e71d6e66dd2cfc19aa923dddbe54d290cb4b6aea2
MD5 9fde3c2075a9e79de8744dde3cc8574b
BLAKE2b-256 8924e02f0556d38a8649a4a3b17635edb0ef1e145a7a6ff1f30c4106b914f391

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page