Skip to content

(09) Traffic‐EmailGen Build Instruction

chipmanfu edited this page Jan 3, 2024 · 4 revisions

Build a Ubuntu 22 Server VM

  • VM Name: Traffic-EmailGen
  • 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 / 2GB RAM / 25 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 set use the following initial values.

  • Your name: user
  • Server name: traffic-emailgen
  • 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 our IP.
     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 Traffic-EmailGen 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 traffic-emailgen

On the Traffic-EmailGen
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 now be back on the Traffic-EmailGen VM)
     cd /home/user/Cyber-Range
     ./ubuntubuild.sh
          On the script menu select, “6) Traffic-EmailGen" server, then enter “y” to confirm.

When it finishes, reboot
     shutdown -r now
When it comes back up, log in as root, you should now see the following files in the /root directory.

  • /root/buildcompose.sh
  • /root/DockerFile
  • /root/emailerlist.txt
  • /root/killtrafficgen.sh
  • /root/starttrafficgen.sh
  • root/TG # This is a folder

This completes the Traffic-EmailGen install.

Clone this wiki locally