Skip to content

his script will create and start the server in a new tmux session if one does not already exist. It also provides the session name and instructions for reconnecting.

License

Notifications You must be signed in to change notification settings

webdevtodayjason/hak5-c2-startup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hak5 Cloud C2 Server Starter Script

Overview

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

Features

  • 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.

Installation

  1. Clone this repository:
    git clone https://github.com/webdevtodayjason/hak5-c2-startup.git
    cd hak5-c2-startup
  2. Make the script executable:
    chmod +x start_c2_server.sh
  3. Create a configuration file named c2_server_config.conf in the same directory.

Configuration

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

Usage

Run the script with:

./start_c2_server.sh

Reconnecting to the Session

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

License

This project is open-source and available under the MIT License.

Contributing

Feel free to open issues or submit pull requests for any improvements or fixes.

About

his script will create and start the server in a new tmux session if one does not already exist. It also provides the session name and instructions for reconnecting.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages