This project provides an easy-to-use shell script for starting the Hak5 Cloud C2 Server with the flexibility of configuration through an external file. The script uses tmux
to run the server in a persistent session, allowing for easy management and reconnection.
Hak5 Cloud C² simplifies deployment and management for penetration testers and IT security teams, enabling control of Hak5 devices from a central cloud dashboard.
Documentation: Hak5 Cloud C2 Docs
Repository: GitHub - hak5-c2-startup
- Starts the Hak5 Cloud C2 Server in a dedicated
tmux
session. - Reads configuration parameters from an external
c2_server_config.conf
file. - Supports optional SSL configuration with a simple switch.
- Provides instructions for reconnecting to the
tmux
session.
- Clone this repository:
git clone https://github.com/webdevtodayjason/hak5-c2-startup.git cd hak5-c2-startup
- Make the script executable:
chmod +x start_c2_server.sh
- Create a configuration file named
c2_server_config.conf
in the same directory.
Create a c2_server_config.conf
file with the following content:
# Configuration file for starting the Hak5 Cloud C2 Server
# Hostname (if applicable)
HOSTNAME=c2.YOURDOMAIN.COM
# SSL flag (Y for SSL, N for no SSL)
SSL=Y
Run the script with:
./start_c2_server.sh
To attach to the running tmux
session, use:
tmux attach-session -t c2_server_session
To detach from the session while keeping it running, press:
Ctrl + b, then d
This project is open-source and available under the MIT License.
Feel free to open issues or submit pull requests for any improvements or fixes.