下载等到图片
winhex发现文件尾有大量数据,为16进制数据
打开pyCharm,创建hex.txt 文件,将16进制的数据写入hex.txt文件,写脚本
with open('hex.txt', 'r') as h:
h = h.read()
with open('./ascii.txt', 'a') as a:
for i in range(0, len(h), 2):
tmp = '0x'+h[i]+h[i+1]
tmp = int(tmp, base=16)
if chr(tmp) != '(' and chr(tmp) != ')':
a.write(chr(tmp))
得到ascill.txt文件,文件里是坐标,用matplotlib画图片
上脚本
import matplotlib.pyplot as plt
import numpy as np
x, y = np.loadtxt('./ascii.txt', delimiter=',', unpack=True)
plt.plot(x, y, '.')
plt.show()
得到二维码
扫码得flag:
flag{40fc0a979f759c8892f4dc045e28b820}