Project

General

Profile

GrcardSIM » History » Version 9

tsaitgaist, 02/19/2016 10:48 PM
A3/A8 algorithm file type fixed

1 9 tsaitgaist
{{>toc}}
2 1 laforge
3 9 tsaitgaist
h1. GRcard SIM
4 9 tsaitgaist
5 9 tsaitgaist
6 1 laforge
The GRcard SIM is a programmable GSM SIM card.
7 1 laforge
8 1 laforge
It uses a mixture of TS11.11 / ISO7816-4 and proprietary commands for programming
9 3 laforge
10 1 laforge
There is limited card programming support both in http://cgit.osmocom.org/cgit/pysim/ as well as the more interactive http://cgit.osmocom.org/cgit/cyberflex-shell/
11 1 laforge
12 1 laforge
13 9 tsaitgaist
h2. Command reference
14 9 tsaitgaist
15 9 tsaitgaist
16 1 laforge
To understand this reference, it is assumed that you are familiar with basic knowledge on smartcard
17 1 laforge
technologies, such as standard ISO 7816-3/-4 APDUs and GSM TS 11.11.
18 1 laforge
19 1 laforge
20 9 tsaitgaist
h3. Setting the ICCID
21 9 tsaitgaist
22 9 tsaitgaist
23 1 laforge
Uses a standard UPDATE BINARY (D6) command on the EF.ICCID (2FE2)
24 1 laforge
25 1 laforge
Security: ADM2
26 1 laforge
27 1 laforge
28 9 tsaitgaist
h3. Setting the IMSI
29 9 tsaitgaist
30 9 tsaitgaist
31 1 laforge
Uses a standard UPDATE BINARY (D6) command on the EF.IMSI (7F20/6F07)
32 1 laforge
33 1 laforge
Security: ADM2
34 1 laforge
35 1 laforge
36 9 tsaitgaist
h3. Setting the Access Class
37 9 tsaitgaist
38 9 tsaitgaist
39 1 laforge
Uses a standard UPDATE BINARY (D6) command on the EF.ACC (7F20/6F78)
40 1 laforge
41 1 laforge
Security: ADM2
42 1 laforge
43 1 laforge
44 9 tsaitgaist
h3. Setting the SMS Parameters
45 9 tsaitgaist
46 9 tsaitgaist
47 1 laforge
Uses a standard UPDATE RECORD (DC) command on the EF.SMS (7F10/6F42)
48 1 laforge
49 1 laforge
Security: ADM2
50 1 laforge
51 1 laforge
52 9 tsaitgaist
h3. Setting the A3/A8 algorithm
53 9 tsaitgaist
54 9 tsaitgaist
55 1 laforge
Uses a standard UPDATE BINARY (D6) command on the non-standard (2700/6F70) EF
56 1 laforge
57 1 laforge
The record has a size of 1 byte and is defined as follows:
58 9 tsaitgaist
* 01 - COMP128v1
59 9 tsaitgaist
* 02 - COMP128v2
60 9 tsaitgaist
* 03 - COMP128v3
61 1 laforge
62 1 laforge
Security: ADM2
63 1 laforge
64 1 laforge
65 9 tsaitgaist
h3. Setting the Ki
66 1 laforge
67 9 tsaitgaist
68 9 tsaitgaist
<pre>
69 9 tsaitgaist
70 1 laforge
Security: none
71 6 tsaitgaist
72 1 laforge
73 9 tsaitgaist
h3. Setting the PIN1 and PUK1
74 1 laforge
75 9 tsaitgaist
76 9 tsaitgaist
<pre>
77 9 tsaitgaist
78 1 laforge
Security: none
79 1 laforge
80 1 laforge
81 9 tsaitgaist
h3. Setting the PIN2 and PUK2
82 1 laforge
83 9 tsaitgaist
84 9 tsaitgaist
<pre>
85 9 tsaitgaist
86 1 laforge
Security: none
87 1 laforge
88 1 laforge
89 9 tsaitgaist
h3. Setting the ADM1 + AUK1
90 1 laforge
91 9 tsaitgaist
92 9 tsaitgaist
<pre>
93 9 tsaitgaist
94 1 laforge
Security: none
95 1 laforge
96 1 laforge
97 9 tsaitgaist
h3. Setting the ADM2 + AUK2
98 1 laforge
99 9 tsaitgaist
100 9 tsaitgaist
<pre>
101 9 tsaitgaist
102 6 tsaitgaist
Security: none
103 6 tsaitgaist
104 1 laforge
105 9 tsaitgaist
h3. Create File
106 1 laforge
107 1 laforge
108 9 tsaitgaist
<pre>
109 1 laforge
110 9 tsaitgaist
* Parameter P2:
111 9 tsaitgaist
** 00: Create DF
112 9 tsaitgaist
** 01: Create linear record EF
113 9 tsaitgaist
** 02: Create transparent EF
114 9 tsaitgaist
** 03: Create cyclic record EF
115 9 tsaitgaist
<pre>
116 9 tsaitgaist
* FID: The 2 byte File ID
117 9 tsaitgaist
* SIZE: 2 bytes for the transparent EF size; or 1 byte for the number of records, and 1 byte for the record size for linear or cyclic EF
118 9 tsaitgaist
<pre>
119 9 tsaitgaist
* ACC: Access conditions (3 bytes), According to TS 11.11, Section 9.3 
120 9 tsaitgaist
<pre>
121 9 tsaitgaist
122 9 tsaitgaist
<pre>
123 9 tsaitgaist
124 4 tsaitgaist
Security: ADM0
125 4 tsaitgaist
126 1 laforge
127 9 tsaitgaist
h3. Erase Card
128 5 tsaitgaist
129 9 tsaitgaist
130 9 tsaitgaist
<pre>
131 9 tsaitgaist
132 5 tsaitgaist
Security: none
133 1 laforge
134 1 laforge
135 9 tsaitgaist
h3. Authenticate as ADM0
136 9 tsaitgaist
137 9 tsaitgaist
138 9 tsaitgaist
<pre>
Add picture from clipboard (Maximum size: 48.8 MB)