dexterstjock45 Posted October 17, 2022 Share Posted October 17, 2022 I have watched the videos and have tried this for 4 days and get the same error. Can anyone help? Oct 17 01:03:19 ip-172-26-2-73 systemd[1357]: hak5.service: Failed to execute command: Failed to execute command: Exec format error Oct 17 01:03:19 ip-172-26-2-73 systemd[1357]: hak5.service: Failed at step EXEC spawning /usr/local/bin/c2-3.2.0_amd64_darwin: Exec format error Oct 17 01:03:19 ip-172-26-2-73 systemd[1]: hak5.service: Main process exited, code=exited,> Oct 17 01:03:19 ip-172-26-2-73 systemd[1]: hak5.service: Failed with result 'exit-code'. Link to comment Share on other sites More sharing options...
dark_pyrro Posted October 17, 2022 Share Posted October 17, 2022 Check my answer to the other post you made about the same thing. Link to comment Share on other sites More sharing options...
dexterstjock45 Posted October 17, 2022 Author Share Posted October 17, 2022 Sorry Late night. Well it looks a little better. But still an error this is Umbuntu. ● hak5.service - Hak5 C2 Loaded: loaded (/etc/systemd/system/hak5.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2022-10-17 15:21:04 UTC; 16s ago Process: 1066 ExecStart=/usr/local/bin/c2-3.2.0_amd64_linux -https -db /var/hak5c2/c2.db (code=exited, status=1/FAI> Main PID: 1066 (code=exited, status=1/FAILURE) Oct 17 15:21:04 ip-172-26-5-56 c2-3.2.0_amd64_linux[1071]: used to update a license key edition from the co> Oct 17 15:21:04 ip-172-26-5-56 c2-3.2.0_amd64_linux[1071]: -setLicenseKey stringOct 17 15:21:04 ip-172-26-5-56 c2-3.2.0_amd64_linux[1071]: used to update a license key from the command l> Oct 17 15:21:04 ip-172-26-5-56 c2-3.2.0_amd64_linux[1071]: -setPass stringOct 17 15:21:04 ip-172-26-5-56 c2-3.2.0_amd64_linux[1071]: password to set for user specified by name using> Oct 17 15:21:04 ip-172-26-5-56 c2-3.2.0_amd64_linux[1071]: -sshport stringOct 17 15:21:04 ip-172-26-5-56 c2-3.2.0_amd64_linux[1071]: Port of the SSH server (default "2022") Oct 17 15:21:04 ip-172-26-5-56 c2-3.2.0_amd64_linux[1071]: -v Set to get timestamped stdout output Oct 17 15:21:04 ip-172-26-5-56 systemd[1]: hak5.service: Main process exited, code=exited, status=1/FAILURE Oct 17 15:21:04 ip-172-26-5-56 systemd[1]: hak5.service: Failed with result 'exit-code'. Link to comment Share on other sites More sharing options...
dark_pyrro Posted October 17, 2022 Share Posted October 17, 2022 Can't see the hostname in the startup string for the service. It's the only parameter that is actually mandatory when starting C2, so you need to provide it. It also looks like you are using https and if doing so you need to provide a domain name, not an IP address as hostname. You would most likely also want to edit the post in your other thread. It looks like it's exposing your public IP address of your Amazon AWS VPS instance. Link to comment Share on other sites More sharing options...
dexterstjock45 Posted October 17, 2022 Author Share Posted October 17, 2022 Well Dark_pyrro Heres what I have. .service; enabled; vendor preset: enabled) Mon 2022-10-17 18:03:55 UTC; 18s ago-3.2.0_amd64_linux {REAL IP ADDRESS}-http -db /var/hak5c2/c2.db (code=exited, status=1/FAILURE)URE)_linux [1766]: used to update a license key edition from the command line if UI>_linux [1766]: -setLicenseKey string_linux[1766]: used to update a license key from the command line if UI fails_linux[ 1766]: -setPass string_linux[ 1766]: password to set for user specified by name using the -recoverAcc>_linux[1766]: -sshport string_linux[ 1766]: Port of the SSH server (default "2022")_linux[ 1766]: -v Set to get timestamped stdout outputk5.service: Main process exited, code=exited, status=1/FAILUREk5.service: Failed with result 'exit-code'. Link to comment Share on other sites More sharing options...
dark_pyrro Posted October 17, 2022 Share Posted October 17, 2022 Still can't see any hostname.... Try starting it from the command line first (instead of using a service) in order to verify that everything starts as it should. Then take the next step and transfer that working command line to the service config. Second suggestion is to read the documentation. It's all there. Link to comment Share on other sites More sharing options...
dexterstjock45 Posted October 17, 2022 Author Share Posted October 17, 2022 just noticed that and added that. Yea didnt like that. [Unit]Description=Hak5 C2After=hak5.serviceExecStart=/usr/local/bin/c2-3.2.0_amd64_linux -hostname (REAL IP)-http -db /var/hak5c2/c2.dbType=idleb[Install]WantedBy=multi-user.target This was the error Link to comment Share on other sites More sharing options...
dark_pyrro Posted October 17, 2022 Share Posted October 17, 2022 what's the "-http" for? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.