Project

General

Profile

GrcardSIM2 » History » Version 1

tsaitgaist, 02/19/2016 10:47 PM
created

1 1 tsaitgaist
[[PageOutline]]
2 1 tsaitgaist
= GRcard SIM 2 =
3 1 tsaitgaist
4 1 tsaitgaist
The GRcard SIM version 2 is a programmable GSM SIM card.
5 1 tsaitgaist
They are used by sysmocom for the sysmoSIM-GR2.
6 1 tsaitgaist
These are different from the previous [[GrcardSIM|sysmoSIM-GR1]]
7 1 tsaitgaist
8 1 tsaitgaist
There is limited card programming support in ​http://cgit.osmocom.org/cgit/pysim/
9 1 tsaitgaist
10 1 tsaitgaist
== ADM & SUPER ADM ==
11 1 tsaitgaist
12 1 tsaitgaist
 * ADM is access level {{{05}}}
13 1 tsaitgaist
 * SUPER ADM is access level {{{0b}}}, and the default PIN is 88888888 (encoded {{{3838383838383838}}})
14 1 tsaitgaist
15 1 tsaitgaist
== Command reference ==
16 1 tsaitgaist
17 1 tsaitgaist
To understand this reference, it is assumed that you are familiar with basic knowledge on smartcard
18 1 tsaitgaist
technologies, such as standard ISO 7816-3/-4 APDUs and ETSI TS 51.011 (previously GSM TS 11.11).
19 1 tsaitgaist
20 1 tsaitgaist
=== Writing files ===
21 1 tsaitgaist
22 1 tsaitgaist
Files (ICCID, IMSI, …) can be written using the standard SIM commands (UPDATE BINARY/RECORD).
23 1 tsaitgaist
24 1 tsaitgaist
Security: ADM
25 1 tsaitgaist
26 1 tsaitgaist
=== Set PIN ===
27 1 tsaitgaist
28 1 tsaitgaist
Uses a non-standard APDU {{{A0 D4 P1 P2 08 PIN}}}
29 1 tsaitgaist
30 1 tsaitgaist
 * P1: {{{3A}}} for PIN, {{{3B}}} for PUK
31 1 tsaitgaist
 * P2: CHV number, as in VERIFY CHV for PIN (01 for PIN1, 02 for PIN2, 05 for ADM, 0b for SUPER ADM), and as in UNBLOCK CHV for PUK (00 for PUK1, 02 for PUK2)
32 1 tsaitgaist
 * PIN: 8 byte PIN/PUK, encoded as in VERIFY CHV
33 1 tsaitgaist
34 1 tsaitgaist
Security: ADM
35 1 tsaitgaist
36 1 tsaitgaist
=== Ki & algo ===
37 1 tsaitgaist
38 1 tsaitgaist
Ki & the A3A8 algorithm are store in the transparent file EF.WEKI (id 0001) under DF.GSM (id 7F20)
39 1 tsaitgaist
40 1 tsaitgaist
binary value: {{{0010 ALGO Ki}}}
41 1 tsaitgaist
42 1 tsaitgaist
 * ALGO is the A3A8 algorithm used:
43 1 tsaitgaist
  * COMP128V1: {{{00}}}
44 1 tsaitgaist
  * COMP128V2: {{{01}}}
45 1 tsaitgaist
  * COMP128V3: {{{03}}}
46 1 tsaitgaist
 * Ki: 16 byte secret key
47 1 tsaitgaist
48 1 tsaitgaist
Security: SUPER ADM
Add picture from clipboard (Maximum size: 48.8 MB)