Awesome Open Source
Awesome Open Source


Command and Control

What's BlackMamba?

Black Mamba is a Command and Control (C2) that works with multiple connections at same time. It was developed with Python and with Qt Framework and have multiples features for a post-exploitation step.

Some Features

  • [x] Multiple clients.
  • [x] Real-time communication.
  • [x] Encrypted communication
  • [x] Screenshot gathering.
  • [x] Real-time video capture.
  • [x] Locking of client mouse.
  • [x] Download and upload of files.
  • [x] Keylogger.
  • [x] Web downloader.

Call for Contributions

Hey, before you go to gallery you need to know that the BlackMamba is a open project, so, if you finds this tool useful and wants to add some functionality, improve the code performance or improve something in the BlackMamba, the best way to get it added is to submit a pull request <3



1 - Download the BlackMamba;

2 - Install the PIP packages;

 pip install -r requirements.txt  

3 - Open the port 65000 and 65005 in your Gateway or Router (the port number is optional);

4 - Create an exception in the firewall for BlackMamba or disable it;

5 - Go to "BlackMamba/bin/profile/socket.txt" and input the port number opened;


IMPORTANT: Do not change the

6 (OPTIONAL) - Go to the BlackMamba folder and open the "" file. Copy the resulting key and paste in the "BlackMamba/bin/profile/" ;

The BlackMamba uses a default cryptography key. It is interesting that you change it.

7 - Back to BlackMamba root folder and open the "" file;


(sudo chmod 777
(sudo python3

sudo chmod 777
sudo python3.8

8 - Click on the button that has a person icon and plus signal;

9 - Input the path where the Python file will be created, input both port numbers and the IP address (external or local) of your host, then click on the "Create" button.

Client Installation

After creating the Client script, you'll need to open the script in the host target:




1 Download the packages:

scrot -y
python3-pip -y
python3-tk -y
python3-dev -y

2 sudo python3.8

(sudo python3

IMPORTANT: The script of the client does not have persistence. If you want to do persistence, you'll need to make it by yourself. Another important point is that the client script maybe delay some seconds or few minutes for connect/reconnect.


Gustavo (Loseys)

Acknowledgments, Contributors & Involuntary Contributors

(In no particular order)

Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Python (840,414
Penetration Testing (3,279
Security Tools (2,040
Pyqt5 (1,442
Red Team (792
Pentest Tool (456
Offensive Security (251
Spyware (188
Post Exploitation (176
Command And Control (64
Qt Framework (27