annotate doc/vendor/grcard2-person-script @ 57:bccf028921bb

apdu-checksw command added to both fc-simtool and fc-uicc-tool
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 22 Mar 2021 23:58:11 +0000
parents 322f6fcdc36e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 ; The present article is a "personalization" command script which we
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 ; (FreeCalypso) received from Grcard in response to technical questions
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 ; about the card-model-specific proprietary file which the Osmocom wiki page
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4 ; calls EF.WEKI. This header comment was added by us; all following
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 ; comments, commands and data are unchanged bits from Grcard.
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 ;1 :
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 Reset
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
10 ;2 : Check Card(It is verify supper ADM, The ADM is ADM8)
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
11 Send A020000B08 3838383838383838
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
12 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
13
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
14 ;4 : Select 3F00
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
15 Send A0A4000002 3F00
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
16 Assert 9F17
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
17 ;5 : PIN1(PIN1=1234)
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
18 Send A0D43A0108 30303030FFFFFFFF
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
19 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
20 ;6 : PIN2(PIN2=5678)
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
21 Send A0D43A0208 35363738FFFFFFFF
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
22 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
23 ;7 : PUK1(PUK1=12345678)
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
24 Send A0D43B0008 3132333435363738
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
25 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
26 ;8 : PUK2(PUK2=87654321)
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
27 Send A0D43B0208 3837363534333231
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
28 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
29 ;9 : ADM(ADM=3838383838383838, It is ADM2)
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
30 Send A0D43A0508 3838383838383838
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
31 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
32
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
33 ;===========================================================================================
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
34
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
35 ;10 : Select ICCID
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
36 Send A0A4000002 2FE2
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
37 Assert 9F0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
38 ;11 : Write ICCID(ICCID=89860001010123456789)
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
39 Send A0D600000A 98680010101032547698
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
40 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
41 ;12 : Select 7F20
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
42 Send A0A4000002 7F20
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
43 Assert 9F17
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
44 ;13 : Select GSM_KI
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
45 Send A0A4000002 0001
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
46 Assert 9F0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
47 ;14 : Write GSM_KI(KI=000102030405060708090A0B0C0D0E0F)
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
48 ;Here's comp128v1
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
49 Send A0D6000013 00100 0 000102030405060708090A0B0C0D0E0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
50
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
51 ;Here's comp128v2
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
52 ;Send A0D6000013 00100 1 000102030405060708090A0B0C0D0E0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
53
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
54 ;Here's comp128v3
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
55 ;Send A0D6000013 00100 2 000102030405060708090A0B0C0D0E0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
56 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
57
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
58 ;17 : Select GSM_IMSI
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
59 Send A0A4000002 6F07
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
60 Assert 9F0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
61 ;18 : Write GSM_IMSI(IMSI=001010123456789)
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
62 Send A0D6000009 080910101032547698
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
63 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
64 ;19 : Select GSM_ACC
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
65 Send A0A4000002 6F78
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
66 Assert 9F0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
67 ;20 : Write GSM_ACC
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
68 Send A0D6000002 0200
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
69 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
70 ;21 : Select GSM_LOCI
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
71 Send A0A4000002 6F7E
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
72 Assert 9F0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
73 ;22 : Write GSM_LOCI
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
74 Send A0D600000B FFFFFFFF00F1100000FF01
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
75 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
76 ;23 : Select GSM_AD
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
77 Send A0A4000002 6FAD
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
78 Assert 9F0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
79 ;24 : Write GSM_AD
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
80 Send A0D6000003 000000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
81 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
82 ;25 : Select GSM_SPN
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
83 Send A0A4000002 6F46
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
84 Assert 9F0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
85 ;26 : Write GSM_SPN(SPN=GSM)
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
86 Send A0D6000011 0047534DFFFFFFFFFFFFFFFFFFFFFFFFFF
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
87 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
88 ;27 : Select GSM_PLMN
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
89 Send A0A4000002 6F30
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
90 Assert 9F0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
91 ;28 : Write GSM_PLMN
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
92 Send A0D60000F0 00F110FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
93 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
94 ;29 : Select GSM_FPLMN
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
95 Send A0A4000002 6F7B
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
96 Assert 9F0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
97 ;30 : Write GSM_FPLMN
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
98 Send A0D600000C FFFFFFFFFFFFFFFFFFFFFFFF
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
99 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
100 ;31 : Select GSM_HPLMN
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
101 Send A0A4000002 6F31
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
102 Assert 9F0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
103 ;32 : Write GSM_HPLMN
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
104 Send A0D6000001 50
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
105 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
106
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
107 ;===========================================================================================
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
108
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
109 ;39 : Select 3F00
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
110 Send A0A4000002 3F00
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
111 Assert 9F17
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
112 ;40 : Select 7F10
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
113 Send A0A4000002 7F10
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
114 Assert 9F17
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
115 ;41 : Select SMSP
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
116 Send A0A4000002 6F42
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
117 Assert 9F0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
118 ;42 : Write SMSP(SMSP=+139012345678)
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
119 Send A0DC010428 FFFFFFFFFFFFFFFFFFFFFFFFFDFFFFFFFFFFFFFFFFFFFFFFFF 0791310921436587 FFFFFFFFFFFFFF
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
120 Assert 9000
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
121 ;43 : Select 6F40
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
122 Send A0A4000002 6F40
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
123 Assert 9F0F
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
124 ;44 : MSISDN(MSISDN=139456781234)
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
125 Send A0DC01041CFFFFFFFFFFFFFFFFFFFFFFFFFFFF 0781314965872143 FFFFFFFFFFFF
322f6fcdc36e doc/vendor/grcard2-person-script added
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
126 Assert 9000