some small fixes

This commit is contained in:
Mari Wahl 2014-10-10 22:27:27 -04:00
parent ab70b811db
commit a50737bc6b
63 changed files with 8 additions and 19 deletions

View File

@ -1 +1,8 @@
My resources and source codes.
# CTFs, Wargames, Gray Hacker & PenTesting
All in one big bag.
More [here].
[here]: https://gist.github.com/bt3gl/8e3aa9538d6122f74274

View File

@ -1,18 +0,0 @@
from PIL import Image
img = Image.open('steg100.png')
strbit1 = ''
for y in range(0, img.size[1], 19):
for x in range(0, img.size[0], 19):
print img.getpixel((x, y))
print r
strbit1 += str(r & 1)
strbit2 = ''
for y in range(171, 171 + 19):
for x in range(171, 171 + 19):
a = img.getpixel((x, y))
strbit2 += str(a & 1)
xored = ''.join(str(int(A) ^ int(B)) for A, B in zip(strbit1, strbit2))
print ''.join(chr(int(xored[i:i + 8], 2)) for i in range(0, len(xored), 8))