当前位置:网站首页>【攻防世界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]}
边栏推荐
- Flutter 运行模式
- rhcsa笔记七
- What happened behind kubectl's creation of pod?
- Build a PHP development environment (apache+php+mysql) "suggestions collection"
- 错误“ Failed to fetch “xxx”Temporary failure resolvingW: Some index files failed to download“解决办法
- tree
- 本周一问 | Vivado 综合阶段什么约束生效?
- 太强了,一个注解搞定接口返回数据脱敏
- Is it suitable for learning 3D modeling? You can't lose one of these five points
- DDD:如何领用领域驱动设计来避免写流水账代码
猜你喜欢

SQLZOO——BBC QUIZ

使用 Three.js 实现'雪糕'地球,让地球也凉爽一夏

学次世代建模是场景好还是角色好?选对职业薪资多一半

【游戏建模模型制作全流程】3ds Max和ZBrush制作无线电接收器

Prevent and control the summer market blowout after adjustment, and evaluate the summer activities of Tujia, muniao and meituan

Go medium high parallel communication mode: the underlying principle of channel pipeline

Major optimization of openim - Message loading on demand, consistent cache, uniapp Publishing

Is 3D modeling promising? Is employment guaranteed with high salary or is it more profitable to take orders in sideline industry

错误“ Failed to fetch “xxx”Temporary failure resolvingW: Some index files failed to download“解决办法

go中高并发下的锁是如何工作的(结合源码)
随机推荐
String length function strlen().. String function header file string.h "suggestions collection"
分组加密模式 ECB、CBC、PCBC、CFB、OFB、CTR
How does memory alignment in go optimize program efficiency?
Deep learning learning record - update of learning rate of optimizer
B端市场复苏背后:谁站到台前?
使用 Three.js 实现'雪糕'地球,让地球也凉爽一夏
MySQL massive write problem optimization scheme MySQL parameter tuning
【通俗易懂】关系模式范式分解教程 3NF与BCNF口诀!小白也能看懂「建议收藏」
Simply understand why the first EVM equivalent zkevm polygon is fully betting
【JZOF】13机器人的运动范围
字符串长度函数strlen()。。字符串函数头文件string.h「建议收藏」
零基础要学建模该从何开始?如何才能学好游戏建模?
【3D建模制作技巧分享】Zbrush如何将图片转浮雕模型
serialization and deserialization
知乎二面:请问Redis 如何实现库存扣减操作和防止被超卖?
Detailed explanation of common curl commands and parameters
Rhcsa Notes 6
Boss online replay: the mistake I made when training Dall · e
Explication détaillée du principe de co - intégration en go
Pessimistic lock and optimistic lock














