fork download
  1. from binascii import hexlify, unhexlify
  2. from Crypto.Cipher import AES
  3. IV = 16*"\x66"
  4. key = 16*"\x00"
  5. picc = "CACDEC6C5455EE52BB1DA40470963113"
  6. # ergibt c7048d66e22e6780050100a2495ed77a
  7. myaes = AES.new(key,AES.MODE_CBC,IV)
  8. okay = myaes.decrypt(unhexlify(picc))
  9. print hexlify(okay)
  10. print "hallo"
  11. print IV
  12. counter= int("0x"+hexlify(okay[9:10])+hexlify(okay[8:9]),16)
  13. print counter
  14.  
Success #stdin #stdout 0.01s 7220KB
stdin
Standard input is empty
stdout
a162eb00844801e6636766c42f38b11c
hallo
ffffffffffffffff
26467