fork download
  1. from binascii import hexlify, unhexlify
  2. from Crypto.Cipher import AES
  3. IV = 16*"\x00"
  4. key = 16*"\x00"
  5. picc = "EF963FF7828658A599F3041510671E88"
  6. myaes = AES.new(key,AES.MODE_CBC,IV)
  7. okay = myaes.decrypt(unhexlify(picc))
  8. print hexlify(okay)
  9. counter= int("0x"+hexlify(okay[9:10])+hexlify(okay[8:9]),16)
  10. print counter
  11.  
Success #stdin #stdout 0.02s 7420KB
stdin
Standard input is empty
stdout
c704de5f1eacc0403d0000da5cf60941
61