daily pastebin goal
23%
SHARE
TWEET

olympic destroyer AES decryptor

darienhuss Feb 12th, 2018 494 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import sys
  2. import binascii
  3.  
  4. from Crypto.Cipher import AES
  5.  
  6. filename = sys.argv[1]
  7. with open(filename, 'rb') as f:
  8.     encrypted = f.read()
  9.  
  10. #md5sum('123') == 202cb962ac59075b964b07152d234b70
  11. key = binascii.unhexlify('202cb962ac59075b964b07152d234b70'*2)
  12. iv = '\x00'*16
  13. cipher = AES.new(key,AES.MODE_CBC, iv)
  14. decrypted = cipher.decrypt(encrypted)
  15.  
  16. decrypted_filename = '%s.decoded' % filename
  17. with open(decrypted_filename, 'wb') as f:
  18.     f.write(decrypted)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top