Setting up the C2

This page will guide you through the process of setting up the Crabbo C2 server using Docker and Docker Compose. By the end of this guide, you'll have a fully functional C2 server.

Prerequisites

Before you begin, ensure you have the following prerequisites installed on your system:

  1. Docker – Ensure Docker is installed and running on your machine. If not, you can install it from Docker's official website.

  2. Docker Compose – Docker Compose is used to manage multi-container Docker applications. You can install it from Docker Compose installation page.

Once Docker and Docker Compose are installed, you're ready to proceed.

C2 Git Repository

To set up the C2 server, you'll need access to the Crabbo C2 repository. You can find it here:

  • C2 Git Repository:

Clone the repository to your local machine:

git clone https://git.siegebyte.xyz/equinox/crabbo-c2
cd crabbo-c2

This will give you access to the Docker Compose configuration and other necessary files to set up the C2 server.

Step-by-Step Guide to Deploy C2 with Docker Compose

1. Navigate to the Crabbo C2 Directory

After cloning the repository, navigate to the folder where the docker-compose.yml file is located:

cd crabbo-c2

2. Build the Docker Container

The first step is to build the Docker container using the provided Docker Compose configuration. This step ensures that all the necessary dependencies are pulled and the C2 server is properly configured.

Run the following command to build the container:

docker compose build

This command will download the necessary Docker images and set up the C2 server environment. Depending on your internet speed and system, this may take a few minutes.

3. Start the C2 Server

Once the container is built, it's time to launch the server. Run the following command to bring up the C2 server:

docker compose up

This will start the C2 server in the background and bind it to the default ports as defined in the Docker Compose file. You should see output indicating that the server is now running.

4. Access the C2 Web UI

After the C2 server has started successfully, you can access the web user interface (UI) via your browser. By default, the C2 server is accessible at:

http://localhost:8080

Visit this URL to interact with the C2 web UI. This interface will allow you to manage your agents, send commands, view logs, and monitor the status of your system.

Conclusion

That's it! You've successfully set up the Crabbo C2 server using Docker Compose. The server is now running and accessible through the web UI, ready to interact with your Crabbo agents.

Last updated