0
1
0
1. 云栖社区>
2. 博客>
3. 正文

前言

一：雨中龙猫

解题思路

`base64`解密之后得到：

二：追加数据

知识点

`在cmd中`

``copy /b 1.jpg+2.txt 3.jpg``

解题思路

``binwalk whalediary.jpg ``

三：追加数据

知识点

`PNG`文件格式、`zlib`压缩数据、二维码识别

解题思路

``````# python2
#! /usr/bin/env python
import zlib
import binascii
IDAT='789CA552B911C3300C5B09D87FB99C65E2A11A17915328FC8487C0C7E17BCEF57CCFAFA27CAB749B8A8E3E754C4C15EF25F934CDFF9DD7C0D413EB7D9E18D16F15D2EB0B2BF1D44C6AE6CAB1664F11933436A9D0D8AA6B5A2D09BA785E58EC8AB264111C0330A148170B90DA0E582CF388073676D2022C50CA86B63175A3FD26AE1ECDF2C658D148E0391591C9916A795432FBDDF27F6D2B71476C6C361C052FAA846A91B22C76A25878681B7EA904A950E28887562FDBC59AF6DFF901E0DBC1AB'.decode('hex')
result = binascii.hexlify(zlib.decompress(IDAT))
bin = result.decode('hex')
print bin
print '\r\n'
print len(bin)``````

``````    # python2
#! /usr/bin/env python
import  Image
MAX = 32
pic = Image.new('RGB',(MAX*9,MAX*9))
f = open('result.txt','r')
i = 0
for y in range(0,MAX*9,9):
for x in range(0,MAX*9,9):
if(str[i] == '1'):
for n in range(9):
for j in range(9):
pic.putpixel([x+j,y+n],(0,0,0))
else:
for k in range(9):
for l in range(9):
pic.putpixel([x+l,y+k],(255,255,255))
i = i+1

pic.show()
pic.save("flag.png")
f.close()``````

五：我们不一样

解题思路

``````# python2
#coding:utf-8

import Image
import random

img1 = Image.open("1.png")

img2 = Image.open("2.png")

a=''
i=0
s=''

for y in range(img1.size[1]):
for x in range(img1.size[0]):
if(im1[x,y]!=im2[x,y]):
print im1[x,y],im2[x,y]
if i == 8:   #以8个为一组 打印出字符串
s=s+chr(int(a,2))
a=''
i=0

a=a+str(im2[x,y][2])
i=i+1
s=s+'}'
print s``````

+ 关注

corcosa 16046人浏览