Skip to content

Instantly share code, notes, and snippets.

@PaulSec
Created June 3, 2015 10:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PaulSec/6702f523d29d7b1a03a4 to your computer and use it in GitHub Desktop.
Save PaulSec/6702f523d29d7b1a03a4 to your computer and use it in GitHub Desktop.
Android Malware Pracs 1
from Crypto.Cipher import AES
secret_key = "1122456789abcdef"
iv = "1122456789abcdef"
mode = AES.MODE_CBC
ciphers = ["9901a4037eae3008a99a0d42ee1d84d2", "524913a771bd29a4f4547f08c844b33a", "d3a1d39c993b6824212fba3f4aa50865", "6f95f17e43914c85ccf2f2370962aee899398b6cbf6d25ef97a71d4a9ec2dabb057871e5c3fdf2921a40801ce58d44fd", "282aadd640e6b03b1633fa698ecb958bb2bdbe545a06373aaa96c15b6a57fd3bfe29bc21e7b22cd718b118ad48f47308", "579ebf44d3fcf24fed05cd51a8952680", "1181dad1a14cd6323ecb89d2cd06d08a5c7dcd3bd66233f2859d2ec23834501e", "282aadd640e6b03b1633fa698ecb958b4705ee49d44709f62b82dbda708e296b"]
for c in text:
decryptor = AES.new(secret_key, mode, IV=iv)
print "%s = %s" % (c, decryptor.decrypt(c.decode("hex")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment