Jump to content

Launch CloudC2 on startup - Raspi


d3str0

Recommended Posts

any suggestions on the best way to launch Cloud C2 on startup (using a raspi)?

I tried throwing this into the crontab and while the binary loads, it eventually just dies:

@reboot /usr/local/bin/c2_community-linux-armv7 -https -hostname [hostname] -db /var/hak5c2/c2.db

Link to comment
Share on other sites

thanks for the reply but I just managed to figured out a solution -- I created it as a service, here's the steps:

sudo vi /lib/systemd/system/hak5c2.service

------------

[Unit]
Description=Hak5 Cloud C2 Server
After=multi-user.target

[Service]
Type=idle
ExecStart=/usr/local/bin/c2_community-linux-armv7 -https -hostname [hostname] -db /var/hak5c2/c2.db

[Install]
WantedBy=multi-user.target

----------

sudo chmod 644 /lib/systemd/system/hak5c2.service
sudo systemctl daemon-reload
sudo systemctl enable hak5c2.service

systemctl start hak5c2.service
// OR //
sudo reboot

  • Like 2
  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...