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.
- Web-based control panel
- Command dispatch system per client
- Collects client responses
- Simple client management via
client_id
- 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
βββ 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
-
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.