Skip to content

roxm337/pyRAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ› οΈ Python Remote Administration Tool (RAT)

This project is a Python-based Remote Administration Tool (RAT) developed strictly for educational purposes, red teaming, or malware analysis in a controlled lab environment.


πŸ“¦ Features

βœ… Server (Flask)

  • Web-based control panel
  • Command dispatch system per client
  • Collects client responses
  • Simple client management via client_id

βœ… Client

  • Periodic polling for commands
  • Keylogger (logs keystrokes to keylog.txt)
  • Screenshot capture using pyautogui
  • (Hypothetical) browser password stealer
  • Remote app installation
  • Persistence via Windows registry
  • Secure communication with Fernet encryption

πŸ“ File Structure

β”œβ”€β”€ main.py              # Flask-based C2 server
β”œβ”€β”€ templates/
β”‚   └── control_panel.html # HTML page for the control panel
β”œβ”€β”€ client.py              # Client agent script
β”œβ”€β”€ uploads/               # Folder to store uploaded data
└── README.md              # This file

πŸ› οΈ Installation & Setup

πŸ”Ή Server

  1. Install dependencies:

    pip install flask

Run the server: python main.py

Access control panel in your browser: python main.py

πŸ”Ή Client Install dependencies:

pip install requests pynput cryptography pyautogui

Edit the client: Replace your_c2_server_ip with your server's IP. Change CLIENT_ID to a unique identifier. Run the client: python client.py

πŸ” Security

Communication is encrypted using Fernet symmetric encryption. Customize the KEY for real-world lab testing. Only basic authentication is implemented β€” add secure authentication for production/lab use.

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

Created by @r10xM37

For security education and ethical hacking labs.

About

Python Remote Administration Tool (RAT)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published