thecarver613 Posted December 15, 2023 Share Posted December 15, 2023 Hi everyone, I'm looking to get a little help in connecting my devices to cloudc2 because NONE of them are connecting. I so far have tried every single possible solution I found on this forum but nothing is working. I've been running my c2 server on windows and kali using the following commands: c2-3.3.0_amd64_windows.exe -hostname localhost -listenport 80 c2-3.3.0_amd64_linux -hostname localhost -listenport 80 The cloud UI itself runs smoothly and I can login. I tried adding my Shark Jack, Lan Turtle, Packet Squirrel, and Pineapple VII by downloading the relevant device.config file and transferring it to the devices using: scp device.config root@172.16.X.1:/etc/ NONE of them connected to the C2 server. I tried invoking C2CONNECT and C2DISCONNECT on all of them and still NONE of them connected. I deleted device.config and C2.config from each them re-downloaded new device.config files and repeated the process but still NONE of them connected. (I already made sure they are all connected to the internet by SSHing directly into each one and pinging google.com). Then I tried deleting c2.db and regenerating the tokens and setting up C2 again (on both windows and linux) and repeating the process but still NONE of them connected. Any idea what's going on? Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted December 15, 2023 Share Posted December 15, 2023 Why are you using localhost as hostname when starting the C2 server? 1 Quote Link to comment Share on other sites More sharing options...
thecarver613 Posted December 16, 2023 Author Share Posted December 16, 2023 I tried using my default gateway (192.168.1.1) as well and it didn't work. Any suggestions? Quote Link to comment Share on other sites More sharing options...
dark_pyrro Posted December 17, 2023 Share Posted December 17, 2023 I doubt your C2 server is running on your default gateway (although it could be possible). You should use the address of the device where the C2 server is running, nothing else. Either an IP address or a domain name, whatever fits your use case. Quote Link to comment Share on other sites More sharing options...
thecarver613 Posted December 17, 2023 Author Share Posted December 17, 2023 do I have to configure any ports? Quote Link to comment Share on other sites More sharing options...
Solution dark_pyrro Posted December 17, 2023 Solution Share Posted December 17, 2023 It all depends on your setup (of which I know very little of, which also makes it difficult to troubleshoot). If you have a firewall somewhere between your Hak5 device(s) and the C2 server, then you'll have to open the ports needed (which is specified in the documentation). Quote Link to comment Share on other sites More sharing options...
thecarver613 Posted December 17, 2023 Author Share Posted December 17, 2023 I think it finally worked. Thank you 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.