This repo contains the files required to setup Hak5's Cloud C2 as adaemon on Alpine Linux
To set things up, once you download the Cloud C2 zip file from theHak5 website, and create the directory/opt/cloudc2/
on your AlpineLinux system. Then extract the files and copyc2_community-linux-32
to the newly created/opt/cloudc2/
. If you're on a non-x86 platform,you'll have to select the corresponding binary and modify theinit.d
file to point to the correct path.
NOTE:c2_community-linux-64
will not work on Alpine Linux. It'sdynamically linked to/lib64/ld-linux-x86-64.so.2
, which doesn'texist on musl libc machines.
Then copy the files from this repo onto your system, placing theinit.d/cloudc2
into your system's/etc/init.d/
directory, andconf.d/cloudc2
into your system's/etc/conf.d/
directory.
You'll then want to open/etc/conf.d/cloudc2
in your editor ofchoice and modify the variables to match your setup.
If you want to set the reverse proxy options, you'll have to add themto theC2_OPTS
variable like this:
C2_OPTS="-reverseProxy -reverseProxyPort XXX"
NOTE: You MUST setC2_HOSTNAME
for the daemon to launch.
After following the setup, all you have to do to launch CloudC2 in thebackground is run
You can then set it to run at boot.
When registering your CloudC2 instance, you'll need a setuptoken. This token gets outputted fromcloudc2
the first time itruns. This should appear in/var/log/cloudc2.log
a couple seconds afterthe first time it gets launched.