December 2017
Intermediate to advanced
860 pages
16h 1m
English
We just saw how we could run SQL queries through MySQL. Let's run some interesting and dangerous queries to obtain complete access to the machine, as shown in the following screenshot:

In the preceding screenshot, we set the SQL option to the select "<?php phpinfo() ?>" INTO OUTFILE "/var/www/html/a.php" command and ran the module against the target. This command will write the text <?php phpinfo() ?> to a file named a.php at path /var/www/html/a.php. We can confirm the successful execution of the module by browsing to the file through the browser, as shown in the following screenshot:
Bingo! We have successfully ...
Read now
Unlock full access