Jump to content

Webserver failed to start address already in use


c1b3r

Recommended Posts

Hello guys,im having problems with the webserver to setup the c2,i got my server machine on GCP,and my dns its from cloudflare,so i dont know how to NOT SPECIFY the ssl certificate on the command line.

Anyway,using the command "sudo ./c2-3.1.2_amd64_linux -hostname domain.net -https" gives me the error 

[*] Initializing Hak5 Cloud C2 v3.1.2
[*] Hostname: domain.net
[*] DB Path: c2.db
[*] Initial Setup Required - Setup token: 
[*] Running Hak5 Cloud C2
[!] Webserver failed to start: listen tcp 0.0.0.0:80: bind: address already in use
[*] Shutting down gracefully
[*] Server stopped

 

i stopped the apache2 service with sudo service apach2 stop,and use the same command but gives me another error,now with 443

 

[*] Initializing Hak5 Cloud C2 v3.1.2
[*] Hostname: domain.net
[*] DB Path: c2.db
[*] Initial Setup Required - Setup token: 
[*] Running Hak5 Cloud C2
[!] Webserver failed to start: listen tcp 0.0.0.0:443: bind: address already in use
[*] Shutting down gracefully
[*] Server stopped

 

Link to comment
Share on other sites

4 minutes ago, dark_pyrro said:

Other than C2, what do you have running on that server?

Nothing,i stopped the apache2 service ,but if i use the command "sudo netstat -pontelu | grep 443" i got the following:

tcp        0      0 ipserver:443      0.0.0.0:*               LISTEN      0          1428706    18735/sslh           off (0.00/0/0)

 

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...