from binascii import hexlify, unhexlify
from Crypto.Cipher import AES
IV = 16 * '\x00'
key = 16 * '\x00' # FileAR.SDMMetaRead Key
Enc_PICC_Data = 'EF963FF7828658A599F3041510671E88'
myaes
= AES
.new(key, AES
.MODE_CBC
, IV
=IV
)PICCData = myaes.decrypt(unhexlify(Enc_PICC_Data))
SDMReadCtr = hexlify(PICCData[8:11])
ZnJvbSBiaW5hc2NpaSBpbXBvcnQgaGV4bGlmeSwgdW5oZXhsaWZ5CmZyb20gQ3J5cHRvLkNpcGhlciBpbXBvcnQgQUVTCgpJViA9IDE2ICogJ1x4MDAnCmtleSA9IDE2ICogJ1x4MDAnICMgRmlsZUFSLlNETU1ldGFSZWFkIEtleQoKRW5jX1BJQ0NfRGF0YSA9ICdFRjk2M0ZGNzgyODY1OEE1OTlGMzA0MTUxMDY3MUU4OCcKbXlhZXMgPSBBRVMubmV3KGtleSwgQUVTLk1PREVfQ0JDLCBJVj1JVikKUElDQ0RhdGEgPSBteWFlcy5kZWNyeXB0KHVuaGV4bGlmeShFbmNfUElDQ19EYXRhKSkKClNETVJlYWRDdHIgPSBoZXhsaWZ5KFBJQ0NEYXRhWzg6MTFdKQo=