def _defaultSelect(): card = Card.Card() apdu = APDU(card) apdu.selectFID('1001') assert apdu.sw == '9000' apdu.getBalance(True) assert apdu.sw == '9000'
def _defaultSelect(): card = Card.Card() apdu = APDU(card) apdu.selectAID('325041592E5359532E4444463031') apdu.selectAID('A00000033301010600030800005A5954') apdu.selectAID('A0000003335342540000000D') apdu.selectFID('1001') for aid in l: apdu.selectAID(aid)
def ReadLog(aid): card = Card.Card() apdu = APDU(card) apdu.selectAID(aid) apdu.selectFID('1001') for i in range(1, 20): sfi = '18' apdu.updateRecord('00', sfi, 23 * '00', mode='04') #apdu.readRecord('%02X'%i, sfi,'00') assert apdu.sw == '9000'
def ReadLog(aid): card = Card.Card() apdu = APDU(card) apdu.selectAID(aid) apdu.selectFID("1001") for i in range(1, 20): sfi = "18" apdu.updateRecord("00", sfi, 23 * "00", mode="04") # apdu.readRecord('%02X'%i, sfi,'00') assert apdu.sw == "9000"