Skip to content

(07) WebServices Build Instructions

chipmanfu edited this page Jan 3, 2024 · 13 revisions

Build a Ubuntu 22 Server VM

VM_Name: WebServices

  • OS Image to use: ubuntu-22.04-live-server-amd64.iso     Available at (https://ubuntu.com/download/server)
  • Guest OS Family: linux
  • Guest OS version: Ubuntu (x64) (VMware)     or 6.x - 2.6 Kernel (ProxMox)
  • Hardware settings: 1 CPU / 4GB RAM / 200 GB HD / 2 NIC
    • Add 1 additional Network Adapter
      • Set the Network Adaptor 1: “AdminNet
      • Set the Network Adaptor 2: “ServicesNet

During install, accept all defaults, only add OpenSSH during install. Also use the following for initial values;

  • Your name: user
  • Server name: webservices
  • Username: user
  • Password: toor

After the install finishes, disconnect the iso, reboot and log in as User.
Then from the commandline, we’ll set the root password and get the IP for the WebServices VM.
     sudo bash
     passwd
     ip a          # Take note of the first interfaces IP, should be like 172.30.0.x

Copy the Cyber-Range folder from the IA-Proxy to the WebServices server

On the IA-Proxy
Open a terminal as root. (NOTE: You should be on the IA-Proxy VM)
     cd /home/user
     scp -r Cyber-Range/ [email protected]:/home/user          # _172.30.0.x _is IP from WebServices

On WebServices
NOTE: Take a snapshot at this point, so you can revert if something goes wrong with the build. After the snapshot continue on.
Run the following. (NOTE: You should be back on the WebServices VM)
     cd /home/user/Cyber-Range
     ./ubuntubuild.sh
          On the script menu select, “4) Web Services", then enter “y” to confirm.

When it finishes, reboot
     shutdown -r now

When it comes back up, on the Kali VM browse to the following sites to validate the Webservices VM is working. However, we first need to import the CA-server's root and intermediate SSL certs and add that to the kali trust store. Below are the steps to do this.
On Kali-01
Open a terminal and type in the following;
     cd /home/kali
     scp [email protected]:/root/ca/certs/ca.globalcert.com.crt.pem .
     scp [email protected]:/root/ca/intermediate/certs/int.globalcert.com.crt.pem .
Then open the Firefox browser and open settings. Go to "Privacy & Security" and find "Certificates". Then click "View Certificates.."
In the certificate Manager window - under the "Authorities" tab, click on "Import"
Navigate to /home/kali/ca.globalcert.com.crt.pem and click "open"
In the downloading certificate window - Check the box for "Trust this CA to identify Websites", then click "OK"
Repeat the above steps for the int.globalcert.com.crt.pem

Now that we've imported these SSL certs, we should be able to navigate to the following websites hosted on the webservices VM.
(Note: make sure you remove the proxy settings from the Kali Browser)

This completes the Webservices VM install.

Clone this wiki locally