当前位置:网站首页>BUUCTF [ACTF2020 新生赛]Include1
BUUCTF [ACTF2020 新生赛]Include1
2022-04-23 06:32:00 【隔壁Cc】
打开靶机发现出现了
F12查看源代码发现:url中有这个文件可能包含漏洞 ?file=flag.php
点击tips 页面跳转成了Can you find out the flag?
判断可以能存php伪协议
构造payload 格式如下
?file=php://../../resource=flag.php
(php://filter"伪协议" 进行包含,当它与包含函数结合时,php://filter流会被当作php文件执行。所以我们一般对其进行编码,阻止其不执行,从而导致任意文件读取。)
(如果使用php://filter伪协议进行文件包含时,需要加上read=convert.base64-encode来对文件内容进行编码)
本题php伪协议编码如下
?file=php://filter/read=convert.base64-encode/resource=flag.php
回车
得到一串Base64编码
利用Base64编码转换工具进行转换得到flag
大哥拿出你发财的小手zan个吧
版权声明
本文为[隔壁Cc]所创,转载请带上原文链接,感谢
https://blog.csdn.net/WINDY_PACE/article/details/121531453
边栏推荐
- Using lambda expression to solve the problem of C file name sorting (whether it is 100 or 11)
- 《内网安全攻防:渗透测试实战指南》读书笔记(六):域控制器安全
- Unity gets the resources that a file depends on
- 内网渗透系列:内网隧道之dnscat2
- SAP Query增强开发介绍
- Zhuang understand's TA notes (VI) < fakeenvreflect & rust, rust effect >
- SAP self created table log function is enabled
- 数据库之MySQL——基本常用查询命令
- Search and replacement of C text file (WinForm)
- 云计算技能大赛 -- openstack私有云环境 第二部分
猜你喜欢
CTF-MISC学习之从开始到放弃
Export all SVG files in the specified path into pictures in PNG format (thumbnail or original size)
Intranet penetration series: dns2tcp of Intranet tunnel
sentinel集成nacos动态更新数据原理
Mysql database backup and recovery under Linux (full + incremental)
Essays (updated from time to time)
内网渗透系列:内网隧道之icmpsh
Redis -- why is the string length of string emstr the upper limit of 44 bytes?
内网渗透系列:内网隧道之icmp_tran
攻防世界MISC刷题1-50
随机推荐
内网渗透系列:内网隧道之pingtunnel
About USB flash drive data prompt raw, need to format, data recovery notes
《内网安全攻防:渗透测试实战指南》读书笔记(五):域内横向移动分析及防御
About unity to obtain links related to the transformation of real geographic maps into 3D
Chapter IV intangible assets
Feign源码分析
VBA appelle SAP RFC pour réaliser la lecture et l'écriture des données
linux下mysql数据库备份与恢复(全量+增量)
Redis--为什么字符串emstr的字符串长度是44字节上限?
Search and replacement of C text file (WinForm)
如何展示您的数字作品集:来自创意招聘人员的建议
Unity gets a resource that is referenced by those resources
Plane definition - plane equation
Alibaba sentinel学习QA
DVWA靶场练习
Online Safe Trajectory Generation For Quadrotors Using Fast Marching Method and Bernstein Basis Poly
upload-labs 靶场练习
Houdini>建筑道路可变,学习过程笔记
数据库之MySQL——基本常用查询命令
BUUCTF MISC刷题