|
FreeRDP
|
Data Structures | |
| class | ApplicationDummy |
| class | ApplicationGpc |
| class | ApplicationPIV |
| class | ApplicationGids |
Functions | |
| def | createAppByAid (aid) |
| def | getErrorCode (status) |
Variables | |
| dictionary | CMD_NAMES |
| dictionary | AIDs |
| dictionary | FIDs |
| dictionary | DOs |
| dictionary | ERROR_CODES |
| dictionary | PIV_OIDs |
| fin = open(sys.argv[1], "r") | |
| int | lineno = 0 |
| int | lastCmd = 0 |
| lastSelect = None | |
| bool | lastSelectFCI = False |
| lastGetItem = None | |
| currentApp = None | |
| string | body = '' |
| string | recvKey = 'pbRecvBuffer: { ' |
| pos = l.find(recvKey) | |
| bool | toCard = False |
| pos2 = l.find(' }', pos) | |
| string | sendKey = 'pbSendBuffer: { ' |
| bytes = codecs.decode(body, 'hex') | |
| cla | |
| ins | |
| p1 | |
| p2 | |
| dictionary | cmdName = CMD_NAMES.get(ins, "<COMMAND 0x%x>" % ins) |
| lc = bytes[4] | |
| int | i = 5 |
| aid = bytes[i:i+lc].hex() | |
| string | lastSelectT = "FCI" |
| dictionary | P2_DATA_QUALIFIER |
| string | pin = '' |
| int | fileId = p1 * 256 + p2 |
| ret = currentApp.getData(fileId, bytes) | |
| int | status = bytes[-1] + bytes[-2] * 256 |
| def smartcard-interpreter.createAppByAid | ( | aid | ) |
| def smartcard-interpreter.getErrorCode | ( | status | ) |
| dictionary smartcard-interpreter.AIDs |
| smartcard-interpreter.body = '' |
| smartcard-interpreter.cla |
| dictionary smartcard-interpreter.CMD_NAMES |
| dictionary smartcard-interpreter.cmdName = CMD_NAMES.get(ins, "<COMMAND 0x%x>" % ins) |
| def smartcard-interpreter.currentApp = None |
| dictionary smartcard-interpreter.DOs |
| dictionary smartcard-interpreter.ERROR_CODES |
| dictionary smartcard-interpreter.FIDs |
| smartcard-interpreter.fin = open(sys.argv[1], "r") |
| int smartcard-interpreter.i = 5 |
| smartcard-interpreter.ins |
| dictionary smartcard-interpreter.lastCmd = 0 |
| smartcard-interpreter.lastGetItem = None |
| dictionary smartcard-interpreter.lastSelect = None |
| string smartcard-interpreter.lastSelectT = "FCI" |
| int smartcard-interpreter.lineno = 0 |
| smartcard-interpreter.p1 |
| smartcard-interpreter.p2 |
| dictionary smartcard-interpreter.P2_DATA_QUALIFIER |
| string smartcard-interpreter.pin = '' |
| dictionary smartcard-interpreter.PIV_OIDs |
| string smartcard-interpreter.recvKey = 'pbRecvBuffer: { ' |
| string smartcard-interpreter.sendKey = 'pbSendBuffer: { ' |