1
|
user@debian:~/pysim$ ./pySim-shell.py -p0
|
2
|
Using PC/SC reader interface
|
3
|
Waiting for card...
|
4
|
Autodetected card type: sysmoISIM-SJA2
|
5
|
Info: Card is of type: UICC-SIM
|
6
|
AIDs on card:
|
7
|
USIM: a0000000871002ffffffff8907090000 (EF.DIR)
|
8
|
ISIM: a0000000871004ffffffff8907090000 (EF.DIR)
|
9
|
ARA-M: a00000015141434c00
|
10
|
ADF.ISD: a000000003000000
|
11
|
Detected CardModel: SysmocomSJA2
|
12
|
Welcome to pySim-shell!
|
13
|
pySIM-shell (MF)> verify_adm 72523357
|
14
|
pySIM-shell (MF)> select ADF.USIM
|
15
|
{
|
16
|
"file_descriptor": {
|
17
|
"file_descriptor_byte": {
|
18
|
"shareable": true,
|
19
|
"file_type": "df",
|
20
|
"structure": "no_info_given"
|
21
|
},
|
22
|
"record_len": null,
|
23
|
"num_of_rec": null
|
24
|
},
|
25
|
"df_name": "a0000000871002ffffffff8907090000",
|
26
|
"proprietary_information": {
|
27
|
"uicc_characteristics": "71",
|
28
|
"available_memory": 96936
|
29
|
},
|
30
|
"life_cycle_status_integer": "operational_activated",
|
31
|
"security_attrib_compact": "00",
|
32
|
"pin_status_template_do": {
|
33
|
"ps_do": "70",
|
34
|
"key_reference": 11
|
35
|
}
|
36
|
}
|
37
|
pySIM-shell (MF/ADF.USIM)> select EF.USIM_AUTH_KEY
|
38
|
{
|
39
|
"file_descriptor": {
|
40
|
"file_descriptor_byte": {
|
41
|
"shareable": true,
|
42
|
"file_type": "working_ef",
|
43
|
"structure": "transparent"
|
44
|
},
|
45
|
"record_len": null,
|
46
|
"num_of_rec": null
|
47
|
},
|
48
|
"file_identifier": "af20",
|
49
|
"proprietary_information": {
|
50
|
"unknown_ber_tlv_ie_d0": {
|
51
|
"raw": "30"
|
52
|
}
|
53
|
},
|
54
|
"life_cycle_status_integer": "operational_activated",
|
55
|
"security_attrib_compact": "031a1a",
|
56
|
"file_size": 33,
|
57
|
"short_file_identifier": null
|
58
|
}
|
59
|
pySIM-shell (MF/ADF.USIM/EF.USIM_AUTH_KEY)> read_binary_decoded
|
60
|
{
|
61
|
"cfg": {
|
62
|
"only_4bytes_res_in_3g": 0,
|
63
|
"use_sres_deriv_func_2_in_3g": 0,
|
64
|
"use_opc_instead_of_op": 1,
|
65
|
"algorithm": "milenage"
|
66
|
},
|
67
|
"key": "228b74faa1d93a938f2e44789bc4f3aa",
|
68
|
"op": null,
|
69
|
"opc": "55e6b31c4e1ffae3b433736392c1dd83"
|
70
|
}
|
71
|
pySIM-shell (MF/ADF.USIM/EF.USIM_AUTH_KEY)> update_binary_decoded --json-path opc "55e6b31c4e1ffae3b433736392c1dd83"
|
72
|
EXCEPTION of type 'JSONDecodeError' occurred with message: 'Extra data: line 1 column 5 (char 4)'
|
73
|
To enable full traceback, run the following command: 'set debug true'
|
74
|
pySIM-shell (MF/ADF.USIM/EF.USIM_AUTH_KEY)> update_binary_decoded --json-path opc 55e6b31c4e1ffae3b433736392c1dd83
|
75
|
EXCEPTION of type 'JSONDecodeError' occurred with message: 'Extra data: line 1 column 5 (char 4)'
|
76
|
To enable full traceback, run the following command: 'set debug true'
|
77
|
pySIM-shell (MF/ADF.USIM/EF.USIM_AUTH_KEY)> update_binary_decoded --json-path "opc": "55e6b31c4e1ffae3b433736392c1dd83"
|
78
|
usage: update_binary_decoded [-h] [--json-path JSON_PATH] data
|
79
|
update_binary_decoded: error: unrecognized arguments: 55e6b31c4e1ffae3b433736392c1dd83
|
80
|
pySIM-shell (MF/ADF.USIM/EF.USIM_AUTH_KEY)> update_binary_decoded '{"opc": "55e6b31c4e1ffae3b433736392c1dd83"}'
|
81
|
EXCEPTION of type 'KeyError' occurred with message: ''cfg''
|
82
|
To enable full traceback, run the following command: 'set debug true'
|
83
|
pySIM-shell (MF/ADF.USIM/EF.USIM_AUTH_KEY)>
|