第六届浙江省网络与信息安全竞赛 初赛 部分wp
前言
初赛名次14,太爽了,被带飞了属于是,web都是做到最后几步出不来丢给大爹🤣🤣🤣
解题情况
解题过程
Web
1.ezphp
PHP反序列化,var_dump触发BBB,通过BBB中的param1触发CCC,通过CCC中的$this->func->aaa()触发AAA执行任意代码
exp如下
1 |
|
然后提交get参数aaa
1 | ?aaa=O:3:"BBB":1:{s:6:"param1";O:3:"CCC":1:{s:4:"func";O:3:"AAA":1:{s:3:"cmd";s:20:"system('cat /flag');";}}} |
3.can you read flag
执行命令
tmp目录找到readflag源码
通过readflag源码发现,计算100-200次可以得出flag
PWN
RE
1.pyccc
pyc文件,使用逆向软件得到源代码
1 | a = input('please input your flag:\n') |
发现他是对于每一个上面字符1-24的i值进行对比然后得到flag,那我们可以手动解密得到flag
1 | check=[102,109,99,100,127,52,114,88,97,122,85,125,105,127,119,80,120,112,98,39,109,52,55,106] |
3.easyapk
下载的附件丢到GDA里面反编译
然后找到密文和iv
密钥是,将reversecarefully
中的e换成3
反编译APK,得出加密算法AES/CBC/Pkcs5 秘钥r3v3rs3car3fully IV:0123456789ABCDEF
然后aes解密得出flag
Crypto
1.小小数学家
一串数学题全部解出来68658367847012357100564949514849455056499845521025297455610049974598515698101999910250505653125
使用脚本转ascii码得到flag
1 | s = '68658367847012357100564949514849455056499845521025297455610049974598515698101999910250505653125' |
MISC
1.number game
断点执行
然后赋值
然后停止断点就有个含有flag信息的弹窗
3.Ez_misc
看见一个图,发现有很熟悉的文件头FF 8D FF 0E
对应JPG文件头FF D8 FF E0
用两个脚本处理一下文件
1 | f = open('yuanshen', "rb") # 打开要读取的二进制文件 |
1 | with open("4","rb") as f: |
得到jpg图片
对其使用steghide破解,得到flag.txt
1 | DASHDOTDOTDOTDOT DASHDOTDOTDOTDOT DASHDOTDOTDOTDOT DASHDOTDASHDOT DASHDOTDOTDOTDOT DOTDASHDASHDASHDASH DASHDOTDOTDOTDOT DASHDASHDOTDOTDOT DASHDASHDOTDOTDOT DASHDOTDOTDOT DASHDOTDOTDOTDOT DOTDOTDOTDOTDASH DASHDOTDOTDOTDOT DASHDOTDOTDOTDOT DOTDOTDOTDASHDASH DOTDOTDOTDOTDASH DASHDOTDOTDOTDOT DASHDOTDOTDOTDOT DOTDOTDOTDASHDASH DASHDOTDOTDOTDOT DOTDOTDOTDASHDASH DOTDOTDOTDASHDASH DOTDOTDOTDASHDASH DOTDOTDOTDOTDOT DASHDOTDOTDOTDOT DOTDASHDASHDASHDASH DASHDOTDOTDOTDOT DOTDOTDASHDASHDASH DOTDOTDOTDASHDASH DOTDOTDOTDASHDASH DOTDOTDOTDASHDASH DOTDOTDOTDOTDASH DOTDOTDOTDASHDASH DOTDOTDASHDASHDASH DASHDOTDOTDOTDOT DOTDASHDASHDASHDASH DOTDOTDOTDASHDASH DOTDOTDOTDOTDOT DASHDOTDOTDOTDOT DOTDOTDASHDASHDASH DOTDOTDOTDASHDASH DOTDOTDOTDASHDASH DASHDOTDOTDOTDOT DOTDOTDASHDASHDASH DASHDOTDOTDOTDOT DOTDOTDASHDASHDASH DOTDOTDOTDASHDASH DASHDASHDASHDOTDOT DOTDOTDOTDASHDASH DOTDOTDOTDOTDOT DOTDOTDOTDASHDASH DOTDOTDOTDOTDOT DASHDOTDOTDOTDOT DOTDASHDASHDASHDASH DOTDOTDOTDASHDASH DOTDOTDOTDOTDASH DOTDOTDOTDASHDASH DASHDOTDOTDOTDOT DOTDOTDOTDASHDASH DOTDOTDOTDOTDASH DASHDOTDOTDOTDOT DOTDOTDOTDOTDASH DOTDOTDOTDASHDASH DASHDASHDOTDOTDOT DASHDOTDOTDOTDOT DOTDOTDASHDASHDASH DASHDOTDOTDOTDOT DOTDOTDASHDASHDASH DOTDOTDOTDASHDASH DOTDOTDOTDOTDASH DASHDOTDOTDOTDOT DOTDOTDOTDOTDOT DASHDOTDOTDOTDOT DOTDOTDOTDASHDASH DASHDASHDOTDOTDOT DASHDOTDOT |
dash和dot一眼摩斯,转换一下
1 | -.... -.... -.... -.-. -.... .---- -.... --... --... -... -.... ....- -.... -.... ...-- ....- -.... -.... ...-- -.... ...-- ...-- ...-- ..... -.... .---- -.... ..--- ...-- ...-- ...-- ....- ...-- ..--- -.... .---- ...-- ..... -.... ..--- ...-- ...-- -.... ..--- -.... ..--- ...-- ---.. ...-- ..... ...-- ..... -.... .---- ...-- ....- ...-- -.... ...-- ....- -.... ....- ...-- --... -.... ..--- -.... ..--- ...-- ....- -.... ..... -.... ...-- --... -.. |
摩斯解密得到
1 | 666C61677B64663466363335616233343261356233626238353561343634643762623465637D |
在hex解密得到flag
flag{df4f635ab342a5b3bb855a464d7bb4ec}
结语
希望决赛还能这么顺利🎊🎊🎊
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.