Awesome Open Source
Awesome Open Source


Python Net Tool

PyCat is a python replacement tool for netcat. That automatically scans for hosts that are up on the local network. Simply run without arguments to automatically start scanning the network. CTRL+C will interrupt scanning and display the options for interacting with hosts that are up.


I've added a timer set to 15 seconds on the main loop in so that even if the scanner can't detect anything on the subnet or we are unable to send CTRL+C; e.g. we have PyCat on a remote server and can't send a keyboard interrupt through our shell, the program won't be scanning indefinitely and will automatically continue with it's normal operation.


The options to use PyCat are as follows. -h --help
Display this help message -l --listen
Listen on [host]:[port] for incoming connections -c --command
Initialize a command shell -e --execute=file_to_run
Execute file upon connection -u --upload=destination
Upon connection upload file and write to [destination]

The target host and port can be specified with the -t and -p options respectively as shown in the example below. -t -p 5555 -l -u=c:\\target.exe

This tool was by in large inspired by Black Hat Python and i might expand on it's functionality in the future.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
python (49,786
network (437
pentesting (346
scanner (209
netcat (15

Find Open Source By Browsing 7,000 Topics Across 59 Categories