0x00
题目内容为一个gif的文件,然后使用2345看图王打开,并将每一帧图片都保存下来
0x01
打开文件夹之后,发现有1168张图片,其中有大概一半左右的图片为没有颜色的红绿灯,将其全部删除。0x02
删除完之后,在文件夹里面调节大小的时候,突然发现最左侧和最右侧的一列颜色都是一样的,推测最右侧的一列为空格,因为ascii128位,最左侧的为0,得出绿色为0,红色为1,留下中间的7列。
0x03
然后把图片的大小调节为合适的大小,7个一行。
0x04
一共455张图片,65组7位二进制数,红灯为1,绿灯为0,将图片信息记录下来
11001101101100110000111001111111011101000011011000110011011010011100110110011101111111100000110100111100110111110110100111010011101000110011110111011101000110001011000011011101011111111010001100001011111111010011100100110100110011011001100110001110001110111111110011011010011001100110011111010011110011011111111011111010000110011110111010111111111001011000011101011011111011010011100100110011101111101100001110101111010011100110110001110010001100111111101
0x05
然后利用二进制转换字符串的python的脚本来转换得出flag
0x06
python代码
def fun1():#二进制字符串转换字符串
#需要转换的字符串
f = '11001101101100110000111001111111011101000011011000110011011010011100110110011101111111100000110100111100110111110110100111010011101000110011110111011101000110001011000011011101011111111010001100001011111111010011100100110100110011011001100110001110001110111111110011011010011001100110011111010011110011011111111011111010000110011110111010111111111001011000011101011011111011010011100100110011101111101100001110101111010011100110110001110010001100111111101'
b = ''
i = 0
j = 7
while j <= len(f):
a = '0' + f[i:j]
b += chr(int(a,2))
i = j
j += 7
print(b)
def fun2():#字符串转换二进制字符串
#需要转换的字符串
f = ' '
b = ''
c = ''
for i in f:
a = str(bin(ord(i)))
b = a[2:].zfill(7)
c += b
print(c)
fun1()
#fun2()
转载需标明地址。