pync
Name
pync - arbitrary TCP and UDP connections and listens (Netcat for Python).
Synopsis
Unix
pync [-46bCDdhklnruvz] [-e command] [-I length] [-i interval]
[-O length] [-P proxy_username] [-p source_port] [-q seconds]
[-s source] [-T toskeyword] [-X proxy_protocol]
[-x proxy_address[:port]] [dest] [port]
Windows
py -m pync [-46bCDdhklnruvz] [-e command] [-I length] [-i interval]
[-O length] [-P proxy_username] [-p source_port] [-q seconds]
[-s source] [-T toskeyword] [-X proxy_protocol]
[-x proxy_address[:port]] [dest] [port]
Python
from pync import pync
args = '''[-46bCDdhklnruvz] [-e command] [-I length] [-i interval]
[-O length] [-P proxy_username] [-p source_port] [-q seconds]
[-s source] [-T toskeyword] [-X proxy_protocol]
[-x proxy_address[:port]] [dest] [port]'''
pync(args, stdin, stdout, stderr)
Description
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)
Installation
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
Documentation
See Also
License
See LICENSE