buuctf_[SWPU2019]神奇的二维码

题目链接 : https://buuoj.cn/challenges#[SWPU2019]%E7%A5%9E%E5%A5%87%E7%9A%84%E4%BA%8C%E7%BB%B4%E7%A0%81

是一个二维码, exe pe info scan 扫了一下 EOF 没问题, 但是换成 tweakpng 就说 EOF 有问题了

废话不多说, 上 010editor 看一眼, 然而我啥都没看出来, 所以这里就不放截图了

上 binwalk 分离出来四个压缩包

716A 有密码, 密码就是 7104 base64 解码的结果, 然而就是个图片, 也没有隐写, 浪费时间...

17012 里面有一个 doc, 经过了多次 base64 编码

跑别人的脚本既得 18394 的密码

import base64

def decode(f):
    n = 0;
    while True:
        try:
            f = base64.b64decode(f)
            n += 1
        except:
            print('[+]Base64共decode了{0}次,最终解码结果如下:'.format(n))
            print(str(f,'utf-8'))
            break

if __name__ == '__main__':
    f = open('./base64.txt','r').read()
    decode(f)

[+]Base64共decode了20次,最终解码结果如下:
comEON_YOuAreSOSoS0great

解压出来一个 mp3. 是摩尔斯电码

-- --- .-. ... . .. ... ...- . .-. -.-- ...- . .-. -.-- . .- ... -.--

morseisveryveryeasy

flag{morseisveryveryeasy}