列表

详情


Snowfall

平台   MISC   已通过

题目作者: cheyenne

一  血: ‌‌‌‌‌yll20024

一血奖励: 1金币

解  决: 1125

提  示:

描  述: Snowfall

附  件: 下载

站长题解:

解压得到 step1.txt 和 step2.txt,转码

iconv -f gbk -t utf8 step1.txt > s1.txt

iconv -f gbk -t utf8 step2.txt > s2.txt

提取s1.txt中的空白/换行/制表符等

s = open("s1.txt","rb").read()
a = ""
for i in s:
    if i == 32: #空格
        a += "0"
    elif i == 9: #tab
        a += "1"
    elif i == 10: #换行
        a += " "
for i in a.split(" 1 "):
    i = int(i, 2)
    print(chr(i), end="")

得到OK now you can run whitespace code. By the way, the key is H0wt0Pr1ntAWh17e5p4ceC0de.

s2.txt 内容复制到 https://vii5ard.github.io/whitespace/ 点击run,发现输出有flag.txt,可知是一个压缩包

# x里面的值是从debug里提取出来的
x = [55,122,188,175,175-136,28,0,4,233,178,103,148,176,0,0,0,0,0,0,0,106,0,0,0,0,0,0,0,205,61,162,91,148,163,10,161,6,123,111,146,146+49,146+49+34,199,77,197,176,226,227,44,177,43,96,96+65,183,25,95,211,125,125+96,70,102,117,157,157+62,2,113,89,134,199,190,90,208,208-95,208-95-111,30,131,134,158,192,184,130,200,200-151,95,169,69,184,36,202,202-133,2,2+67,160,13,36,13,176,115,55,167,181,220,220-76,24,156,128,159,52,143,143-79,170,177,64,129,83,122,169,169+83,159,170,33,201,53,141,86,73,35,149,56,209,111,227,46,146,218,18,60,77,165,165-142,248,248-210,248-210+175,201,136,18,18+231,150,90,225,225+30,225+30-60,101,23,65,13,144,238,93,93-62,93-62+119,182,136,40,73,137,105,218,218-218,0+3,2,92,123,123+127,128,137,207,217,187,15,15+187,15+187-48,187,172,229,221,223,77,58,56,62,234,238,238-63,206,236,90,65,197,234,53,242,98,189,93,69,135,58,1,1+3,6,0,1,9,128,176,0,7,11,1,1-1,2,2+34,6,6+235,7,1,18,18+65,15,181,85,78,250,249,198,199,186,171,74,81,185,17,229,245,136,33,33,1,0,0+1,1-1,0+12,128,162,131,85,0,8,10,1,1+125,78,78-65,98,0,0,5,1,1+16,19,0,102,0,108,0,97,0,103,0,46,0,116,0,120,0,116,0,0,0,25,0,20,10,1,0,50,92,151,50,148,119,119+96,1,21,6,6-5,0,0+32,0,0,0,0,0]

f = b''
for i in x:
    f += i.to_bytes(1, 'big')

out = open("1.7z", "wb")
out.write(f)

用第一步的key解压1.7z,得到flag

去做题

V0lt1RgD @ 2023-11-07 23:19:37 👍0

(´・ω・`)? (⊙ˍ⊙)Σ (╯°Д°)╯︵ ┻━┻


skiller @ 2023-11-07 23:19:37 👍1

熟练的用c++写完栈的操作,突然发现,我不知道c++怎么encode成latin1,憋屈的又用python写了一遍


smallgod @ 2023-08-07 23:19:37 👍0

一脸蒙


smog1ctfer @ 2023-06-07 23:19:37 👍1

看到这个wp,直接知识盲区


feira @ 2023-06-07 23:19:37 👍0

看不懂啊,兄弟。


610198915qqcom @ 2023-06-07 23:19:37 👍0

奇奇怪怪的知识,


jingzhe11 @ 2023-06-07 23:19:37 👍0

真吉尔男


anguilin @ 2023-06-07 23:19:37 👍0

自己做出来的都是神仙


anguilin @ 2023-06-07 23:19:37 👍5

你跟我说这是MISC杂项?这他妈idea明明会二进制乱几把出,谁几把会啊


love @ 2023-06-07 23:19:37 👍0

有时间再来,看懂了wp了,但是实际操作还是有点难度,先溜先溜