pync - arbitrary TCP and UDP connections and listens (Netcat for Python).
Unix
pync [-46bCDdhklnruvz] [-c string] [-e filename] [-I length]
[-i interval] [-O length] [-P proxy_username] [-p source_port]
[-q seconds] [-s source] [-T toskeyword] [-w timeout]
[-X proxy_protocol] [-x proxy_address[:port]] [dest] [port]
Windows
py -m pync [-46bCDdhklnruvz] [-c string] [-e filename] [-I length]
[-i interval] [-O length] [-P proxy_username] [-p source_port]
[-q seconds] [-s source] [-T toskeyword] [-w timeout]
[-X proxy_protocol] [-x proxy_address[:port]] [dest] [port]
Python
from pync import pync
args = '''[-46bCDdhklnruvz] [-c string] [-e filename] [-I length]
[-i interval] [-O length] [-P proxy_username] [-p source_port]
[-q seconds] [-s source] [-T toskeyword] [-w timeout]
[-X proxy_protocol] [-x proxy_address[:port]] [dest] [port]'''
pync(args, stdin, stdout, stderr)
Inspired by the Black Hat Python book,
the goal of pync was to create an easy to use library that
provides Netcat-like functionality for Python developers.
Common uses include:
- Interactive client/server communication
- Remote data transfer (upload/download)
- Port scanning (simple connect scan)
- Remote command execution (reverse/bind shell)
pync should work on any system with Python installed (version 2.7 or higher).
Use Python's pip command to install pync straight from github:
Unix
pip install https://github.com/brenw0rth/pync/archive/main.zip
Windows
py -m pip install https://github.com/brenw0rth/pync/archive/main.zip
See LICENSE