Skip to content

Instantly share code, notes, and snippets.

@synap5e
Created August 12, 2016 04:44
Show Gist options
  • Save synap5e/27635d2ff6f0e3b15f0c902dca2974a9 to your computer and use it in GitHub Desktop.
Save synap5e/27635d2ff6f0e3b15f0c902dca2974a9 to your computer and use it in GitHub Desktop.
import sys
orig = open('volskaya-screenshot-004.jpg', 'rb')
new = open('5552E494-78B3-4CE9-ACF6-EF8208F913CF.jpg', 'rb')
replaced_bytes = ''
for o, n in zip(orig.read(), new.read()):
if o != n:
replaced_bytes += o
hint, skull = replaced_bytes.split('\n')
print(hint)
for i, c in enumerate(skull):
sys.stdout.write(c)
if not i % 59:
sys.stdout.write('\n')
sys.stdout.write('\n')
@synap5e
Copy link
Author

synap5e commented Aug 12, 2016

python2 script to extract modified bytes from datamooshed volskaya screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment