In this lab, we’ll build a machine that could be used on the iCSI Cyber Range, and then in the following lab we’ll look at the exploitation process using Python. You’ll need:

The objective here will be to build a web server that does the following:

In SYNCED_FILES you should have an Ubuntu VM Available:

image.png

Be sure your network card is set to ‘Bridged’ mode.

image.png

On Ubuntu, we’ll start by installing

Type:

apt update
apt install apache2 libapache2-mod-php
systemctl restart apache2

Next, we’ll cd to the document root of the web server and delete the default index.html

cd /var/www/html
rm index.html

Create an index.php to test that our web server is indeed interpreting .php correctly