[WUSTCTF2020]spaceclub

[WUSTCTF2020]spaceclub

附件是一个txt文件,打开发现是空白的

l2xRc83WzgXJ2TZsQBg1qopMrnrmC7XGTYnhccdyhIQ

ctrl+a全选下发现还是有内容的

G3IGQlMzW34Gd_5R3N0bxtJ2ZMWfOht6OS5eag-7w94

通过脚本进行替换,长的替换为1,短的替换为0

import binascii
f = open("attachment.txt","r")
content = f.readlines()
s=""
for line in content:
    if len(line)==7:
        s+="0"
    if len(line)==13:
        s+="1"
print(s)
print(binascii.unhexlify(hex(int(s,2))[2:]))

SyfOsppqCUMYnMOIDAk2Zs3Vg8_CPTds_ZDgwVz_WkA

wctf2020{h3re_1s_y0ur_fl@g_s1x_s1x_s1x}

posted on 2024-04-07 15:31  跳河离去的鱼  阅读(29)  评论(0编辑  收藏  举报