This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # TCP Port Forwarding via Socks5 Socket | |
| # Original Author : WangYihang <wangyihanger@gmail.com> (for port forwarding) | |
| # (As gist: <https://gist.github.com/WangYihang/e7d36b744557e4673d2157499f6c6b5e>) | |
| # Changes : NeoAtlantis <aurichalka@gmail.com> | |
| # (adapted to pySocks, argparse for CLI invokation, encryption, etc.) | |
| import argparse |