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:

On Ubuntu, we’ll start by installing

Type:

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

pico index.php

Put this code into the file:

Untitled