2022 羊城杯 复现

130 阅读1分钟

本文已参与「新人创作礼」活动,一起开启掘金创作之路。

MISC

签个到

ZMJTPM33TL4TRMYRZD3JXAGOZVMJRLWEZMFGFAEIZV2GVMOMZZ3JTZ3RUR2U2===

看着像 base32,但单纯解不出

ciphey 直接梭出来

python3.9 -m ciphey -f 1.txt

图片.png

where_is_secret

维吉尼亚解码:

Hello friends, I am the President of Ukraine Zelensky. The Russian army has just launched an attack on Ukraine, and the Kyiv airport has been controlled by the Russian army. Heard today is KFC Crazy Thursday, I need someone to bring me 29.94 finger-sucking original chicken as rations now. When I repel the Russian army, I will invite you to come to Ukraine to be the vice president.the password is GWHT@R1nd0yyds

解压后可以得到这个图

图片.png

通过 hint 的加密脚本改解密脚本

(以下脚本出自:blog.csdn.net/weixin_5112…)

from PIL import Image
img = Image.open('out.bmp')

d = dict()
k = []
with open('out.txt','w') as f:
    for i in range(371):
        for j in range(371):
            p = img.getpixel((j,i))
            f.write(chr(int(bin(p[1])[2:].zfill(8)+bin(p[2])[2:].zfill(8),2)))

正则表达式提取字符

import re 
f = open('out.txt','r').read() 

a = re.findall('[^a-z\{\}0-9][a-z\{\}0-9][^a-z\{\}0-9]', f, re.M) 
for i in a: 
    print(i)

flag{h1d3_1n_th3_p1ctur3}

迷失幻境

迷失幻境文件夹中有一张可莉和 1-100 的 png 缺少了 45

在磁盘中看到 $RECYCLE.BIN 文件夹中的几个文件

$RJ3JGVF 缺了文件头

图片.png

加头后的是 45.png 与其他的大小不同

异或后,就会发现

key is 可莉前来报道

图片.png

$RE4UUGI.jpg 中有提示

图片.png

outguess 把 $RE4UUGI.jpg 用 key 就可以直接整出 flag

图片.png