-
Contains all the files related to the server side of the project
-
To run the c2 server
- Make sure you have python3 installed
- cd into the C2 folder
- Create a virtual environtment with
python3 -m venv c2_env - Acticate the virtual environment with
source c2_env/bin/activate, orc2_env/Scripts/activateif you are using powershell - You can exit the virtual environtment with
deactivate - Install the dependencies with
pip3 install -r requirements.txt - Create a new database called
c2_serverin mysql by usingCREATE DATABASE c2_server - Create a new file in the C2 folder named
creds.pywith the linedb_cred = {"username":"", "password":""}, and fill in your username and password for your mysql server - Create a database with
python3 make_db.py - Run the server with
flask run
-
After installing new dependencies, run
pip3 freeze > requirements.txt
- To compile, run
make implant - Double click
implant.exeto run the implant in default mode and connect to the remote server - For development/testing purposes, you can run
implant.exe -localto connect to your local server and view implant behavior in the console window