Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #mission_15.py
- import png
- f = png.Reader("mission_15_leak.png").asDirect()
- sc = open('sc.php',"w")
- width = f[0]
- height = f[1]
- print f[3]
- bytesPerPixel = 3
- for i in range(0, width*bytesPerPixel, bytesPerPixel):
- for j in range(0,height):
- r = f[2][j][i]
- g = f[2][j][i+1]
- b = f[2][j][i+2]
- if g != 255:
- value = 300 - j - 19
- sc.write(chr(value))
- print 'OK',chr(value), i/bytesPerPixel,j, r,g,b
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement