Posts

Showing posts from April, 2021

Hak5 Cloud C2 as a service on a Ubuntu server (or alike) without domain name or https

First, make sure that the C2 instance runs without any problems when started manually from the command line. The C2 instance also has to be fully set up with a registered/valid license. A good advise is to rename the executable C2 binary so that the service doesn't have to be renamed for every new version, for example rename to: c2_community_linux64 Move the Cloud C2 binary to a more suitable location in the file system sudo mv c2_community_linux64 /usr/local/bin Create a directory for database file sudo mkdir /var/cloudc2 Move the database file sudo mv c2.db /var/cloudc2/ Create a systemd service file for Cloud C2 sudo nano /etc/systemd/system/cloudc2.service Add the lines below (replace parameters as necessary for this specific C2 instance if needed) [Unit] Description=Hak5 Cloud C2 After=cloudc2.service [Service] Type=idle ExecStart=/usr/local/bin/c2_community_linux64 -hostname <ip address> -db /var/cloudc2/c2.db [Install] WantedBy=multi-user.target Run the following comma