Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Hak5 Cloud C2 OpenRC Script

License

NotificationsYou must be signed in to change notification settings

dantecatalfamo/Hak5-CloudC2-OpenRC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repo contains the files required to setup Hak5's Cloud C2 as adaemon on Alpine Linux

Setup

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-32to the newly created/opt/cloudc2/. If you're on a non-x86 platform,you'll have to select the corresponding binary and modify theinit.dfile 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.

Starting the daemon

After following the setup, all you have to do to launch CloudC2 in thebackground is run

rc-service cloudc2 start

You can then set it to run at boot.

rc-update add cloudc2

Signing up

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.

About

Hak5 Cloud C2 OpenRC Script

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp