Project

General

Profile

GrcardSIM2 » History » Version 4

falconia, 09/22/2023 05:36 AM

1 2 tsaitgaist
{{>toc}}
2 1 tsaitgaist
3 2 tsaitgaist
h1. GRcard SIM 2
4
5
6 1 tsaitgaist
The GRcard SIM version 2 is a programmable GSM SIM card.
7 4 falconia
It is a GSM-only card, implementing GSM 11.11 only, without UICC or USIM!
8
These cards were once sold by sysmocom (some time around 2013) as sysmoSIM-GR2, although it appears that this offering was short-lived.
9
A more recent (2021) version of the same actual card model is FreeCalypso Community SIM model FCSIM1 - it is the same programmable card as sysmoSIM-GR2, but with different printing on the plastic.
10
The actual manufacturer of these cards is GRcard in China; it is remarkable that the same card model remained available from the days of sysmoSIM-GR2 (2013?) through early 2021, but it is not known whether or not it is still available in the present day - we won't know unless someone else in the community reaches out to GRcard and tries to order another batch of this card model.
11 1 tsaitgaist
12 4 falconia
This card model is different from the previous [[GrcardSIM|sysmoSIM-GR1]] aka GrcardSIM1!
13 1 tsaitgaist
14 4 falconia
There is limited programming support for this old card model in pySim:https://gitea.osmocom.org/sim-card/pysim (specifically, legacy pySim-prog.py), but since the same card has been adopted in FreeCalypso, there is extensive programming support for it in fc-simtool:https://www.freecalypso.org/hg/fc-sim-tools/ as well as extensive documentation.
15 1 tsaitgaist
16 4 falconia
17 2 tsaitgaist
h2. ADM & SUPER ADM
18 1 tsaitgaist
19 3 laforge
* ADM is access level @05@
20
* SUPER ADM is access level @0b@, and the default PIN is 88888888 (encoded @3838383838383838@) 
21 2 tsaitgaist
22
h2. Command reference
23
24
25 1 tsaitgaist
To understand this reference, it is assumed that you are familiar with basic knowledge on smartcard
26
technologies, such as standard ISO 7816-3/-4 APDUs and ETSI TS 51.011 (previously GSM TS 11.11).
27
28
29 2 tsaitgaist
h3. Writing files
30
31
32 1 tsaitgaist
Files (ICCID, IMSI, …) can be written using the standard SIM commands (UPDATE BINARY/RECORD).
33
34
Security: ADM
35
36
37
h3. Set PIN
38
39 3 laforge
Uses a non-standard APDU @A0 D4 P1 P2 08 PIN@
40 2 tsaitgaist
41 4 falconia
* P1: @3A@ for PIN, @3B@ for PUK
42 2 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)
43 1 tsaitgaist
* PIN: 8 byte PIN/PUK, encoded as in VERIFY CHV
44 2 tsaitgaist
45 1 tsaitgaist
Security: ADM
46
47
48
h3. Ki & algo
49 2 tsaitgaist
50 3 laforge
51 4 falconia
Ki & the A3A8 algorithm are stored in the transparent file EF.WEKI (id @0001@) under DF.GSM (id @7F20@)
52 1 tsaitgaist
53 3 laforge
binary value: @0010 ALGO Ki@
54 1 tsaitgaist
55 2 tsaitgaist
* ALGO is the A3A8 algorithm used:
56 3 laforge
** COMP128V1: @00@
57
** COMP128V2: @01@
58 4 falconia
** COMP128V3: @02@
59 2 tsaitgaist
* Ki: 16 byte secret key
60 1 tsaitgaist
61
Security: SUPER ADM
Add picture from clipboard (Maximum size: 48.8 MB)