Skip to content

Instantly share code, notes, and snippets.

@ronaldstoner
Created December 27, 2019 08:12
Show Gist options
  • Save ronaldstoner/b9cb4330085e17f8dad1d723f732ee2c to your computer and use it in GitHub Desktop.
Save ronaldstoner/b9cb4330085e17f8dad1d723f732ee2c to your computer and use it in GitHub Desktop.
solver.py
from Crypto.Cipher import AES
key = [0x6d, 0x79, 0x80, 0xb9, 0xa5, 0x0a, 0x97, 0x24, 0x0d, 0x2d, 0xfc, 0x36, 0x0d, 0x95, 0x55, 0xaa]
ciphertext = [0xf7, 0xfe, 0x1a, 0x80, 0x36, 0x51, 0x38, 0x90, 0xa0, 0x34, 0x11, 0x6d, 0x30, 0x5e, 0x52, 0x54]
key_bytes = bytes(key)
ciphertext_bytes = bytes(ciphertext)
aes = AES.new(key_bytes, AES.MODE_ECB)
result = aes.decrypt(ciphertext_bytes).decode('utf-8')
print ("Password: ", result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment