当前位置:网站首页>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
边栏推荐
- [unity VFX] Introduction notes of VFX special effects - spark production
- What's new in. Net 5 NET 5
- Research on software security based on NLP (2)
- MySQL -- the secret of lock -- how to lock data
- 第五章 投资性房地产
- Ctf-misc learning from start to give up
- 《内网安全攻防:渗透测试实战指南》读书笔记(五):域内横向移动分析及防御
- Ribbon启动流程
- 随笔(不定时更新)
- 如何展示您的数字作品集:来自创意招聘人员的建议
猜你喜欢
国基北盛-openstack-容器云-环境搭建
nacos源码分析思路
Dvwa 靶场练习记录
CTF-MISC学习之从开始到放弃
Ctf-misc summary
VBA調用SAP RFC實現數據讀取&寫入
Buuctf misc brush questions
C problem of marking the position of polygons surrounded by multiple rectangles
Three minutes to teach you to use Houdini fluid > > to solve particle fluid droplets
Intranet penetration series: dns2tcp of Intranet tunnel
随机推荐
Reading notes
C problem of marking the position of polygons surrounded by multiple rectangles
RAID0和RAID5的创建和模拟RAID5工作原理
How does Apache Hudi accelerate traditional batch mode?
关于unity获取真实地理地图转3D化的相关链接
strcat()、strcpy()、strcmp()、strlen()
Zhuang understand's TA notes (VI) < fakeenvreflect & rust, rust effect >
内网渗透系列:内网隧道之dns2tcp
IT高薪者所具备的人格魅力
Research on system and software security (I)
Intranet penetration series: icmptunnel of Intranet tunnel (by master dhavalkapil)
内网渗透系列:内网隧道之icmp_tran
內網滲透系列:內網隧道之icmpsh
Unity C single case mode learning review notes
Houdini > fluid, rigid body export, learning process notes
Protobuf use
Personality charm of high paid it workers
读书笔记
Houdini>流体,刚体导出学习过程笔记
Simplify exporting to SVG data files and all images in SVG folder