d3str0 Posted August 18, 2019 Share Posted August 18, 2019 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 Quote Link to comment Share on other sites More sharing options...
Audrick Posted August 18, 2019 Share Posted August 18, 2019 Maybe make that a script and put a wait 30 at the beginning so that the rest of the system is booted? When you run that command manually does it stay running? Quote Link to comment Share on other sites More sharing options...
d3str0 Posted August 18, 2019 Author Share Posted August 18, 2019 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 2 1 Quote Link to comment Share on other sites More sharing options...
Audrick Posted August 18, 2019 Share Posted August 18, 2019 Brilliant. Much better than my idea. I marked your post so I can run it on my new pi when it arrives. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.