紫荆杯2026 misc

不认识的码

一开始给了一个加密zip和一个png

图片中是Aztec码,用工具Binary Eye扫一下,得到

大概率就是zip的密码 5FIVE

发现zip解压,得到一张jpg

很神了,用010editor查看一下,发现尾部藏有png,直接提取或是用foremost,得到png

啥也没有,用Tweakpng查看,发现是宽高有问题

所以找了个脚本爆破一下

python 复制代码
import zlib
import struct

# 同时爆破宽度和高度
filename = "00000149.png"
with open(filename, 'rb') as f:
    all_b = f.read()
    data = bytearray(all_b[12:29])
    n = 4095
    for w in range(n):
        width = bytearray(struct.pack('>i', w))
        for h in range(n):
            height = bytearray(struct.pack('>i', h))
            for x in range(4):
                data[x+4] = width[x]
                data[x+8] = height[x]
            crc32result = zlib.crc32(data)
            #替换成图片的crc
            if crc32result == 0xEF1B39BE:
                print("宽为:", end = '')
                print(width, end = ' ')
                print(int.from_bytes(width, byteorder='big'))
                print("高为:", end = '')
                print(height, end = ' ')
                print(int.from_bytes(height, byteorder='big'))

得到结果

修改后得到flag

flag:flag{opium_00pium}

附件测试

得到一串base64编码

ZmxhZ3tjZmZfMjAyNjA1MjFfYmFzZTY0fQ==

解密得 flag{cff_20260521_base64}

初识羊村

得到加密zip和一张png

010editor打开发现藏有zip

直接提取或是binwalk一下

得到key.txt,其中就是flag

flag{The_place_where_dreams_begin}