Jump to content

Configuring HTTPS connectivity with my VPS running Cloudc2


Script0rium

Recommended Posts

Posted

Hi everyone, I am trying to configure HTTPS connectivity with the virtual box to access Cloud C2. I have bought the desired domain name, created an A record and am having trouble with the config on the VPS terminal side. I followed the directions on this video  and am confused with the config in another video. I basically created a service file to maintain the persistence of Cloud C2 on my VPS. (at 7:30 of the second video) Now when I input the command `c2-3.1.2_amd64_linux -hostname $IP-listenip $IP` -and- `c2-3.1.2_amd64_linux -hostname <my domain name> -https I get the following error `[overseer] cannot move binary (exit status 1)`. 

Posted
35 minutes ago, Script0rium said:

I followed the directions on this video  and am confused with the config in another video.

I'm a bit confused as well regarding "another video", you are linking the same video twice.....

36 minutes ago, Script0rium said:

when I input the command `c2-3.1.2_amd64_linux -hostname $IP-listenip $IP` -and- `c2-3.1.2_amd64_linux -hostname <my domain name> -https I get the following error `[overseer] cannot move binary (exit status 1)`

You are only supposed to use one of those command lines, not both of them. If you are using a registered domain with https, you should use the latter one.

./c2-3.1.2_amd64_linux -hostname <my domain name> -https

Posted

Whoops! First video is here.

Perhaps I should back up. All the documentation online is a bit confusing with the outdated filenames. 

I run the bash script in tmux -- `wget https://c2.hak5.org/dl -q -O c2.zip && unzip -qq c2.zip && \
IP=$(curl -s https://checkip.amazonaws.com) && \
echo "Copy the below setup token and browse to http://$IP:8080" && \
./c2-*_amd64_linux -hostname $IP`

This keeps the VPS running Cloud c2 for me, even when I exit out of the terminal. That's all fine, but the connection is not secure. 

Is there a way for me to specify my domain name w/in this bash script for HTTPS? Perhaps, b/c I just registered the domain name, it might take 48 hrs to fully be up and running? It's google tho, so perhaps it's near instantaneous. 

 

 

Posted

Watch the last video (2703) in that series from Darren. It explains setting up Cloud C2 as a service which is what you should do if you ask me. It's Amazon Lightsail based, but the process is similar for other VPS providers as well.

https://www.youtube.com/watch?v=rgmL75ZBfSI

Skip all that $IP stuff from the first video. It's just a way to make it easier to get Cloud C2 spin up the first time from scratch. If you are starting it up after that (without https) then just use the last line but add the actual public facing IP address in clear text instead of using the $IP variable. Otherwise you have to make sure that variable is populated each time before starting C2.

Archived

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

  • Recently Browsing   0 members

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