BUUCTF---misc---梅花香之苦寒来

简介: BUUCTF---misc---梅花香之苦寒来

1、下载附件,是一张图片

2、接着常规操作,查看属性,发现提示说画图,用记事本搜索flag,发现没有有用的信息

3、用winhex分析,发现有一大串十六进制文本,

4、复制文本放在flag.txt中,之后再将文本工具解码,得到一些坐标值

5、将得到的结果保存成txt,因为要用到工具gnuplot,所以需要把坐标的括号去掉,用脚本跑一下(此脚本参考其他wp)

with open('download.txt', 'r') as res:  # 坐标格式文件比如(7,7)
    re = res.read()
    res.close()
    
with open('output.txt', 'w') as gnup:   # 将转换后的坐标写入gnuplotTxt.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()

6、跑出来后得到了下面数据

7、将文本拖到kali中,下载安装工具gnuplot

8、接着使用下面的命令,进行画图

9、命令执行之后得到二维码


10、用工具扫描得到flag


11、

flag{40fc0a979f759c8892f4dc045e28b820}

相关文章
|
1月前
buuctf-misc-27.面具下的flag
buuctf-misc-27.面具下的flag
BUUCTF--misc--大白1
BUUCTF--misc--大白1
|
1月前
|
语音技术 数据安全/隐私保护
攻防世界---misc---Erik-Baleog-and-Olaf
攻防世界---misc---Erik-Baleog-and-Olaf
|
1月前
|
数据安全/隐私保护
攻防世界---misc---再见李华
攻防世界---misc---再见李华
|
1月前
|
网络协议
攻防世界---misc---easycap
攻防世界---misc---easycap
|
1月前
|
数据安全/隐私保护
BUUCTF---misc---菜刀666
BUUCTF---misc---菜刀666
|
1月前
|
数据安全/隐私保护
BUUCTF---misc---被偷走的文件
BUUCTF---misc---被偷走的文件
攻防世界---misc---Wire1
攻防世界---misc---Wire1
攻防世界---misc---low
攻防世界---misc---low