Magic PNGs
题目
Magic PNGs:
Can you help me open this zip file? I seem to have forgotten its password. I think the image file has something to do with it.
Hint: You may have to hash the secret word to get the flag...
题目存档:
解决方案
下载到一个tryme.zip和一个youcantsee_me.png,压缩包内含flag.txt但是被加密了;png打不开,还嘲讽我(?),先看一下十六进制:
1 2 | vim -b you_cant_see_me.png :%!xxd |
然后发现文件头有问题;而且竟然没有IDAT,估计是被破坏了,不过竟然能搜到一个小写的idat,确认过眼神,是应该改的地方。改回来保存看看:
1 2 | :%!xxd -r :wq |
已经可以预览图片了:
打开:
行吧旋转一下:
懒得写个镜像了,直接拿手机前摄拍了一张就可以看到正的了:
1 | h4CK3RM4n
|
题目hint表示应该先哈希一下再try一下:
1 | 2c919f82ee2ed6985d5c5e275d67e4f8 |
解压flag.txt成功get到flag:
1 | pctf{y0u_s33_m33_n0w!} |