Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #mission_15.py
  2. import png
  3.  
  4. f = png.Reader("mission_15_leak.png").asDirect()
  5. sc = open('sc.php',"w")
  6. width = f[0]
  7. height = f[1]
  8. print f[3]
  9. bytesPerPixel = 3
  10. for i in range(0, width*bytesPerPixel, bytesPerPixel):
  11. for j in range(0,height):
  12. r = f[2][j][i]
  13. g = f[2][j][i+1]
  14. b = f[2][j][i+2]
  15. if g != 255:
  16. value = 300 - j - 19
  17. sc.write(chr(value))
  18. print 'OK',chr(value), i/bytesPerPixel,j, r,g,b
  19. break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement