我在做这题时给有给我拓宽一些思路,写个writeup。
题目如图:
我是先拖进kali使用binwalk分析但是没有发现
binwalk 图片路径
换了种方式使用010editor打开,发现内容有古怪忙猜是十六进制
在010editor里新建一个十六进制文件,把图片里的数值放进新建的十六进制文件,另存为222.txt打开发现很像坐标值
Ctrl +Shift +V
根据图片的提示信息要画图
画图软件Gnuplot他识别不了(7,23)这种格式,需要给222.txt里的内容格式化一下,下面是脚本
with open('222.txt', 'r') as res: #打开222.txt文件
re = res.read()
res.close()
with open('output.txt', 'w') as gnup: # 将格式化后的写入output.txt
re = re.split()
tem = ''
for i in range(0, len(re)):
tem = re[i]
tem = tem.lstrip('(')
tem = tem.rstrip(')')
for j in range(0, len(tem)):
if tem[j] == ',':
tem = tem[:j] + ' ' + tem[j + 1:]
gnup.write(tem + '\n')
gnup.close()
格式话后会生成一个output.txt文件,把这个文件放到Gnuplot软件根目录
使用Gnuplot绘制出来是个二维码,另存为flag.png
plot "output.txt"
用QR Research工具扫描得出flag
flag{40fc0a979f759c8892f4dc045e28b820}