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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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