Format
Definite (AA)
Indefinite (AE)
Commands
+ C-APDU
+ Immediate
+ Error
+ Chaining
Generate BER-TLV
Pack into Secured packet
Command
INSTALL [for load]
INSTALL [for install]
INSTALL [for make selectable]
INSTALL [for registry update]
INSTALL [for extradition]
LOAD
DELETE
GET STATUS
GET DATA
STORE DATA
SET STATUS
EXTERNAL AUTHENTICATE
INTERNAL AUTHENTICATE
AID (hex)
SD AID (hex)
Load data (hex)
Data (hex)
Block number
Encryption
No encryption, last block
No encryption, more blocks
With encryption, last block
With encryption, more blocks
DELETE mode
AID only (00)
AID and all related objects (80)
GET STATUS mode
ISD (80)
Applications and SSD (40)
Executable Load Files (20)
ELF and modules (10)
GET STATUS format
40 — First/all, GP TLV format
42 — Next, GP TLV format
00 — First/all, old format (deprecated)
02 — Next, old format (deprecated)
GET DATA tag
— select preset —
42 — Issuer Identification Number (IIN)
45 — Card Image Number (CIN)
66 — Card Data / SD Management Data
67 — Card Capability Information
E0 — Key Information Template
D3 — Current Security Level
2F00 — List of Applications
FF21 — Extended Card Resources Info
5F50 — SD Manager URL
C1 — Sequence Counter (SCP02/03)
C2 — Confirmation Counter
7F21 — Certificate (SD public key)
5031 — Certificate info (EF.OD)
SET STATUS type
ISD (80)
Application or SSD (40)
SD and its applications (60)
State
Unlock (previous state)
Lock (LOCKED)
Generate APDU
Pack into Secured packet
KIc Key (hex)
KID Key (hex)
Padding byte
00 (TS 102 225 default)
FF
APDU (hex)
Generate Secure Packet
Command
— Select command —
SELECT
STATUS
READ BINARY
UPDATE BINARY
READ RECORD
UPDATE RECORD
VERIFY PIN
CHANGE PIN
DISABLE PIN
ENABLE PIN
UNBLOCK PIN
DEACTIVATE FILE
ACTIVATE FILE
GET CHALLENGE
AUTHENTICATE
TERMINAL PROFILE
ENVELOPE
FETCH
TERMINAL RESPONSE
MANAGE CHANNEL
MANAGE SECURE CHANNEL
RETRIEVE DATA
SET DATA
SUSPEND UICC
INSTALL [for load]
INSTALL [for install]
INSTALL [for make selectable]
INSTALL [for registry update]
INSTALL [for extradition]
LOAD
DELETE
GET STATUS
GET DATA
STORE DATA
SET STATUS
EXTERNAL AUTHENTICATE
INTERNAL AUTHENTICATE
SELECT
INITIALIZE UPDATE
PUT KEY
MANAGE CHANNEL
Response data (hex)
Decode
To access local card reader, you need pySim running locally.
To connect, install pysim-otaman-server : git clone https://github.com/anttro/pysim-otaman-server.git and start it. Refer to README.md for details. Click Connect once pysim-otaman-server is ready.
Equip card
Check status
Reset card
Disconnect from pySim
File manager
Custom files
pySim command line
Raw APDU