Cloud C²
Search…
Enabling Cloud C² as a service on boot and Exfiltration

VIDEO GUIDE

ENABLING CLOUD C2 AS A SERVICE ON BOOT WITH SYSTEMD

Note: From version 3.0.0 onward all, Cloud C² editions (Community, Edition, Teams) use the same binary. Filenames for Cloud C² will differ from example - however all parameters remain the same.
1
# Enabling Cloud C2 as a service on a Linux-64 host with SystemD
2
# Builds on Hak5 episodes 2701 and 2702 with credit to Void-Byte
3
# https://forums.hak5.org/topic/50283-u...
4
# Expects Cloud C2 Community edition has run once before, generating c2.db
5
#
6
# Move Cloud C2 binary.
7
sudo mv c2_community-linux-64 /usr/local/bin
8
9
# Create directory for database file
10
sudo mkdir /var/cloudc2
11
12
# Move database file
13
sudo mv c2.db /var/cloudc2/
14
15
# Create systemd service file.
16
sudo vi /etc/systemd/system/cloudc2.service
17
18
# Replace parameters as necessary for your instance
19
[Unit]
20
Description=Hak5 Cloud C2
21
After=cloudc2.service
22
[Service]
23
Type=idle
24
ExecStart=/usr/local/bin/c2_community-linux-64 -hostname example.com -https -db /var/cloudc2/c2.db
25
[Install]
26
WantedBy=multi-user.target
27
28
# Reload, enable on boot, start and inspect the newly created Cloud C2 service
29
sudo systemctl daemon-reload
30
sudo systemctl enable cloudc2.service
31
sudo systemctl start cloudc2.service
32
sudo systemctl status cloudc2.service
Copied!