Skip to content

0Abanoub/python-netcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงช Python Netcat Clone (Educational Tool)

This is a custom implementation of Netcat built using raw sockets in Python.
Created while studying Black Hat Python, it replicates core Netcat features including:

  • Reverse Shell
  • Remote Command Execution
  • File Upload
  • Listening for connections

โš ๏ธ Disclaimer:
This tool is created purely for educational purposes.
Do not use it on systems you do not own or have explicit permission to test.


๐Ÿ›  Tech Stack

  • Python 3
  • Sockets
  • Subprocess
  • Threading
  • argparse

๐Ÿ“š Based on

๐Ÿ“˜ Black Hat Python, 2nd Edition Author: Justin Seitz


๐Ÿงช Usage Examples

# Start a listener with command shell
python netcat.py -t 0.0.0.0 -p 5555 -l -c

# Upload a file
python netcat.py -t 0.0.0.0 -p 5555 -l -u=output.txt

# Execute a command automatically upon connect
python netcat.py -t 0.0.0.0 -p 5555 -l -e="ls -la"

# Send a message to server
echo "hello" | python netcat.py -t 192.168.1.10 -p 5555

About

A Python-based Netcat clone with reverse shell, command execution, and file upload capabilities. Built for educational purposes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages