当前位置:网站首页>【攻防世界WEB】难度四星12分进阶题:Cat
【攻防世界WEB】难度四星12分进阶题:Cat
2022-07-23 16:21:00 【黑色地带(崛起)】
一、Cat
解题方法:
1、注入点、大量代码理解、bp跑过滤、带出文件
过程:
输入后url后面接了域名
考虑:
1、能不能访问主机本地
2、?url是否存在注入
(输入框和?url=是同一处)
输入127.0.0.1
发现ping了自己
考虑:
能否拼接命令在后面呢
payload:
127.0.0.1 | ls
提示无效网址,应该是被过滤了
是用bp对特殊字符进行爆破
看哪些未被过滤
发现有 - . / @未被过滤
看是否能通过编码,然后被解码绕过
先测试一下能否使用URL编码
找了几个整数测试
%100没报错
%90报错了
是html代码
复制到txt中
没找到有用信息
再改为html后缀
然后再浏览器打开
需要去了解Django
Django 是一个开放源代码的 Web 应用框架,由Python编写的
寻找settings,寻找文件的路径
/opt/api/database.sqlite3
我们前面爆破出了@未被过滤
php中可以通过@+完整路径来读取文件(现在CURLFile)
前提:
PHP<=5.5
有个键值,然后value必须是个数组
content-type:multipart/form-data
构造payload:
[email protected]/opt/api/database.sqlite3
仔细看了一下,出现了新源码
再放到txt中进行查看一番
源码里找到flag字样,可能多半就能找到了
查找ctf找到了flag
WHCTF{[email protected]}
边栏推荐
- 大佬在线复盘:我在训练 DALL·E 时犯过的错
- 【3D建模制作技巧分享】Zbrush如何将图片转浮雕模型
- Major optimization of openim - Message loading on demand, consistent cache, uniapp Publishing
- Lin Zhiying is still in the intensive care unit and will undergo a second round of surgery: the police said he did not wear a seat belt
- String length function strlen().. String function header file string.h "suggestions collection"
- Ubuntu 22.04 installing mysql8
- Build a PHP development environment (apache+php+mysql) "suggestions collection"
- DB9串口和RJ45串口
- MySQL classic exercises and answers, 50 common SQL sentence exercises
- Ali Er Mian: what is CAS?
猜你喜欢

建模刚学习很迷茫,次世代角色建模流程具体该怎么学习?

How to capture the analyst rating data of Sina Financial Data Center?

rhcsa笔记四

有人是靠自学建模找到工作的吗?千万别让这些思维害了你

悲观锁和乐观锁

Does anyone get a job by self-study modeling? Don't let these thoughts hurt you

MySQL transactions, starting with redo log, bin log, undo log

rhcsa笔记六

UAV circumnavigating an unknown target under a GPS-deniedenvironment with range-only measurements翻译

rhcsa笔记七
随机推荐
DDD:如何领用领域驱动设计来避免写流水账代码
[toggle 30 days of ML] Diabetes genetic risk detection challenge (2)
go中的協程原理詳解
字符串长度函数strlen()。。字符串函数头文件string.h「建议收藏」
ctf MISC 学习总结「建议收藏」
VS2010一个解决方案下新建多个项目出现的问题和方法
ZigBee system development of Internet of things I (Introduction to ZigBee) [easy to understand]
String length function strlen().. String function header file string.h "suggestions collection"
入门学习3D建模一般会遇到哪些问题?实在是太多了
次世代行业现状如何?90%转行建模师都在学习这套流程
平安过暑假,安全不放假!这些暑期安全小提示请收好
数据库建模
The Little Schemer-周而复始之Y组合子由来
kubectl 创建 Pod 背后到底发生了什么?
Lin Zhiying is still in the intensive care unit and will undergo a second round of surgery: the police said he did not wear a seat belt
Rhcsa Notes 6
Build a PHP development environment (apache+php+mysql) "suggestions collection"
悲观锁和乐观锁
关于分组查询的一道sql题
serialization and deserialization














