Getting ready

First, we have to install Apache and PHP, so we can use the following command:

root@Metasploit:~# apt install apache2 php7 libapache2-mod-php7

Next, copy hop.php to the /var/www/html/ folder and start the Apache2 service:

root@Metasploit:~# systemctl start apache2

Get Metasploit Penetration Testing Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.