3 Star 4 Fork 1

西安石油大学-郑宏涛 / XSYU-SEC-GAME-2020-Writeup

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
De-conf 提交于 2020-11-03 13:51 . Readme file add OkRelaxAndWatchPic

OK relax and watch another PIC

隐写, 与上一道隐写不同的是, 答案不藏在图层里, 而是放在像素点数组的数值里。

step 1 这是一个PNG图片,那就代表它有四个通道,RGB和透明度。但只在前三个通道中有信息

step 2 从缩略图中可以看到, 图片左上角有一条白线,这就说明左上角区域有一些信息,

眼神不好看不到也没关系。

step 3 用一些hexeditor软件也能看到,图片只有前几位有信息, 后面都是0

要读取前几个像素的信息,使用opencv即可,

请注意,想要看到更多的输出信息, 别忘了把threshold值改大一些。解题代码如下:

'''python 3.7
np.set_printoptions(threshold=9999999999999999)
image = cv2.imread('./pic.png')
arry = np.array(image)
print(arry)
'''

可以得到一些像素点的数值, 在0-255之间。这其实是ASCII编码,将之翻译为字母即可。

编码为:

ascii_list = [69, 118, 101,
         114, 121, 111, 
         110, 101, 76, 
         111, 118, 101,
         71, 97, 107, 
         107, 105, 95, 
         115, 109, 105, 
         108, 101]

翻译为英文是:

FLAG{Everyonelovegakki_smile}
其他
1
https://gitee.com/xsyu_security/xsyu-sec-game-2020-writeup.git
git@gitee.com:xsyu_security/xsyu-sec-game-2020-writeup.git
xsyu_security
xsyu-sec-game-2020-writeup
XSYU-SEC-GAME-2020-Writeup
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891