Harald Welte | 94e8735 | 2021-04-02 13:38:00 +0200 | [diff] [blame] | 1 | pySim-shell |
| 2 | =========== |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 3 | |
| 4 | pySim-shell is an interactive command line shell for all kind of interactions with SIM cards. |
| 5 | |
| 6 | The interactive shell provides command for |
| 7 | |
| 8 | * navigating the on-card filesystem hierarchy |
| 9 | * authenticating with PINs such as ADM1 |
| 10 | * CHV/PIN management (VERIFY, ENABLE, DISABLE, UNBLOCK) |
| 11 | * decoding of SELECT response (file control parameters) |
| 12 | * reading and writing of files and records in raw, hex-encoded binary format |
| 13 | * for some files where related support has been developed: |
| 14 | |
| 15 | * decoded reading (display file data in JSON format) |
| 16 | * decoded writing (encode from JSON to binary format, then write) |
| 17 | |
| 18 | By means of using the python ``cmd2`` module, various useful features improve usability: |
| 19 | |
| 20 | * history of commands (persistent across restarts) |
| 21 | * output re-direction to files on your computer |
| 22 | * output piping through external tools like 'grep' |
| 23 | * tab completion of commands and SELECT-able files/directories |
| 24 | * interactive help for all commands |
| 25 | |
Harald Welte | f2e761c | 2021-04-11 11:56:44 +0200 | [diff] [blame] | 26 | Running pySim-shell |
| 27 | ------------------- |
| 28 | |
| 29 | pySim-shell has a variety of command line arguments to control |
| 30 | |
| 31 | * which transport to use (how to use a reader to talk to the SIM card) |
| 32 | * whether to automatically verify an ADM pin (and in which format) |
| 33 | * whether to execute a start-up script |
| 34 | |
| 35 | .. argparse:: |
| 36 | :module: pySim-shell |
| 37 | :func: option_parser |
| 38 | |
| 39 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 40 | |
| 41 | cmd2 basics |
| 42 | ----------- |
| 43 | |
| 44 | FIXME |
| 45 | |
| 46 | |
| 47 | |
| 48 | ISO7816 commands |
| 49 | ---------------- |
| 50 | |
| 51 | This category of commands relates to commands that originate in the ISO 7861-4 specifications, |
| 52 | most of them have a 1:1 resemblance in the specification. |
| 53 | |
| 54 | select |
| 55 | ~~~~~~ |
| 56 | |
| 57 | The ``select`` command is used to select a file, either by its FID, AID or by its symbolic name. |
| 58 | |
| 59 | Try ``select`` with tab-completion to get a list of all current selectable items: |
| 60 | |
| 61 | :: |
| 62 | |
| 63 | pySIM-shell (MF)> select |
| 64 | .. 2fe2 a0000000871004 EF.ARR MF |
| 65 | 2f00 3f00 ADF.ISIM EF.DIR |
| 66 | 2f05 7f10 ADF.USIM EF.ICCID |
| 67 | 2f06 7f20 DF.GSM EF.PL |
| 68 | 2f08 a0000000871002 DF.TELECOM EF.UMPC |
| 69 | |
| 70 | Use ``select`` with a specific FID or name to select the new file. |
| 71 | |
| 72 | This will |
| 73 | |
| 74 | * output the [JSON decoded, if possible] select response |
| 75 | * change the prompt to the newly selected file |
| 76 | * enable any commands specific to the newly-selected file |
| 77 | |
| 78 | :: |
| 79 | |
| 80 | pySIM-shell (MF)> select ADF.USIM |
| 81 | { |
| 82 | "file_descriptor": { |
| 83 | "shareable": true, |
| 84 | "file_type": "df", |
| 85 | "structure": "no_info_given" |
| 86 | }, |
| 87 | "df_name": "A0000000871002FFFFFFFF8907090000", |
| 88 | "proprietary_info": { |
| 89 | "uicc_characteristics": "71", |
| 90 | "available_memory": 101640 |
| 91 | }, |
| 92 | "life_cycle_status_int": "operational_activated", |
| 93 | "security_attrib_compact": "00", |
| 94 | "pin_status_template_do": "90017083010183018183010A83010B" |
| 95 | } |
| 96 | pySIM-shell (MF/ADF.USIM)> |
| 97 | |
| 98 | |
| 99 | |
| 100 | change_chv |
| 101 | ~~~~~~~~~~ |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 102 | .. argparse:: |
| 103 | :module: pySim-shell |
| 104 | :func: Iso7816Commands.change_chv_parser |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 105 | |
| 106 | |
| 107 | disable_chv |
| 108 | ~~~~~~~~~~~ |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 109 | .. argparse:: |
| 110 | :module: pySim-shell |
| 111 | :func: Iso7816Commands.disable_chv_parser |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 112 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 113 | |
| 114 | enable_chv |
| 115 | ~~~~~~~~~~ |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 116 | .. argparse:: |
| 117 | :module: pySim-shell |
| 118 | :func: Iso7816Commands.enable_chv_parser |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 119 | |
| 120 | |
| 121 | unblock_chv |
| 122 | ~~~~~~~~~~~ |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 123 | .. argparse:: |
| 124 | :module: pySim-shell |
| 125 | :func: Iso7816Commands.unblock_chv_parser |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 126 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 127 | |
| 128 | verify_chv |
| 129 | ~~~~~~~~~~ |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 130 | This command allows you to verify a CHV (PIN), which is how the specifications call |
| 131 | it if you authenticate yourself with the said CHV/PIN. |
| 132 | |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 133 | .. argparse:: |
| 134 | :module: pySim-shell |
| 135 | :func: Iso7816Commands.verify_chv_parser |
| 136 | |
Harald Welte | a463161 | 2021-04-10 18:17:55 +0200 | [diff] [blame] | 137 | deactivate_file |
| 138 | ~~~~~~~~~~~~~~~ |
| 139 | Deactivate the currently selected file. This used to be called INVALIDATE in TS 11.11. |
| 140 | |
| 141 | |
| 142 | activate_file |
| 143 | ~~~~~~~~~~~~~ |
| 144 | Activate the currently selected file. This used to be called REHABILITATE in TS 11.11. |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 145 | |
Harald Welte | 703f933 | 2021-04-10 18:39:32 +0200 | [diff] [blame] | 146 | open_channel |
| 147 | ~~~~~~~~~~~~ |
| 148 | .. argparse:: |
| 149 | :module: pySim-shell |
| 150 | :func: Iso7816Commands.open_chan_parser |
| 151 | |
| 152 | close_channel |
| 153 | ~~~~~~~~~~~~~ |
| 154 | .. argparse:: |
| 155 | :module: pySim-shell |
| 156 | :func: Iso7816Commands.close_chan_parser |
| 157 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 158 | |
Harald Welte | ec95053 | 2021-10-20 13:09:00 +0200 | [diff] [blame] | 159 | suspend_uicc |
| 160 | ~~~~~~~~~~~~ |
| 161 | This command allows you to perform the SUSPEND UICC command on the card. This is a relatively |
| 162 | recent power-saving addition to the UICC specifications, allowing for suspend/resume while maintaining |
| 163 | state, as opposed to a full power-off (deactivate) and power-on (activate) of the card. |
| 164 | |
| 165 | The pySim command just sends that SUSPEND UICC command and doesn't perform the full related sequence |
| 166 | including the electrical power down. |
| 167 | |
| 168 | .. argparse:: |
| 169 | :module: pySim-shell |
| 170 | :func: Iso7816Commands.suspend_uicc_parser |
| 171 | |
| 172 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 173 | pySim commands |
| 174 | -------------- |
| 175 | |
| 176 | Commands in this category are pySim specific; they do not have a 1:1 correspondence to ISO 7816 |
| 177 | or 3GPP commands. Mostly they will operate either only on local (in-memory) state, or execute |
| 178 | a complex sequence of card-commands. |
| 179 | |
| 180 | desc |
| 181 | ~~~~ |
| 182 | |
| 183 | Display human readable file description for the currently selected file. |
| 184 | |
| 185 | |
| 186 | dir |
| 187 | ~~~ |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 188 | .. argparse:: |
| 189 | :module: pySim-shell |
| 190 | :func: PySimCommands.dir_parser |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 191 | |
| 192 | |
| 193 | export |
| 194 | ~~~~~~ |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 195 | .. argparse:: |
| 196 | :module: pySim-shell |
| 197 | :func: PySimCommands.export_parser |
| 198 | |
Harald Welte | bd02f84 | 2021-10-21 14:40:39 +0200 | [diff] [blame] | 199 | Please note that `export` works relative to the current working |
| 200 | directory, so if you are in `MF`, then the export will contain all known |
| 201 | files on the card. However, if you are in `ADF.ISIM`, only files below |
| 202 | that ADF will be part of the export. |
| 203 | |
| 204 | Furthermore, it is strongly advised to first enter the ADM1 pin |
| 205 | (`verify_adm`) to maximize the chance of having permission to read |
| 206 | all/most files. |
| 207 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 208 | |
| 209 | tree |
| 210 | ~~~~ |
Harald Welte | 7743c20 | 2021-05-03 23:30:11 +0200 | [diff] [blame] | 211 | |
| 212 | Display a tree of the card filesystem. It is important to note that this displays a tree |
| 213 | of files that might potentially exist (based on the card profile). In order to determine if |
| 214 | a given file really exists on a given card, you have to try to select that file. |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 215 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 216 | |
| 217 | verify_adm |
| 218 | ~~~~~~~~~~ |
Harald Welte | 7743c20 | 2021-05-03 23:30:11 +0200 | [diff] [blame] | 219 | |
| 220 | Verify the ADM (Administrator) PIN specified as argument. This is typically needed in order |
| 221 | to get write/update permissions to most of the files on SIM cards. |
| 222 | |
| 223 | Currently only ADM1 is supported. |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 224 | |
| 225 | |
Harald Welte | daf2b39 | 2021-05-03 23:17:29 +0200 | [diff] [blame] | 226 | reset |
| 227 | ~~~~~ |
Harald Welte | daf2b39 | 2021-05-03 23:17:29 +0200 | [diff] [blame] | 228 | Perform card reset and display the card ATR. |
| 229 | |
Harald Welte | bd02f84 | 2021-10-21 14:40:39 +0200 | [diff] [blame] | 230 | intro |
| 231 | ~~~~~ |
| 232 | [Re-]Display the introductory banner |
| 233 | |
| 234 | |
| 235 | equip |
| 236 | ~~~~~ |
| 237 | Equip pySim-shell with a card; particularly useful if the program was |
| 238 | started before a card was present, or after a card has been replaced by |
| 239 | the user while pySim-shell was kept running. |
| 240 | |
| 241 | bulk_script |
| 242 | ~~~~~~~~~~~ |
| 243 | .. argparse:: |
| 244 | :module: pySim-shell |
| 245 | :func: PysimApp.bulk_script_parser |
| 246 | |
| 247 | Run a script for bulk-provisioning of multiple cards. |
| 248 | |
| 249 | |
| 250 | echo |
| 251 | ~~~~ |
| 252 | .. argparse:: |
| 253 | :module: pySim-shell |
| 254 | :func: PysimApp.echo_parser |
| 255 | |
| 256 | |
Harald Welte | daf2b39 | 2021-05-03 23:17:29 +0200 | [diff] [blame] | 257 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 258 | Linear Fixed EF commands |
| 259 | ------------------------ |
| 260 | |
| 261 | These commands become enabled only when your currently selected file is of *Linear Fixed EF* type. |
| 262 | |
| 263 | read_record |
| 264 | ~~~~~~~~~~~ |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 265 | .. argparse:: |
| 266 | :module: pySim.filesystem |
| 267 | :func: LinFixedEF.ShellCommands.read_rec_parser |
| 268 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 269 | |
| 270 | read_record_decoded |
| 271 | ~~~~~~~~~~~~~~~~~~~ |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 272 | .. argparse:: |
| 273 | :module: pySim.filesystem |
| 274 | :func: LinFixedEF.ShellCommands.read_rec_dec_parser |
| 275 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 276 | |
Harald Welte | 850b72a | 2021-04-07 09:33:03 +0200 | [diff] [blame] | 277 | read_records |
| 278 | ~~~~~~~~~~~~ |
| 279 | .. argparse:: |
| 280 | :module: pySim.filesystem |
| 281 | :func: LinFixedEF.ShellCommands.read_recs_parser |
| 282 | |
| 283 | |
| 284 | read_records_decoded |
| 285 | ~~~~~~~~~~~~~~~~~~~~ |
| 286 | .. argparse:: |
| 287 | :module: pySim.filesystem |
| 288 | :func: LinFixedEF.ShellCommands.read_recs_dec_parser |
| 289 | |
| 290 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 291 | update_record |
| 292 | ~~~~~~~~~~~~~ |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 293 | .. argparse:: |
| 294 | :module: pySim.filesystem |
| 295 | :func: LinFixedEF.ShellCommands.upd_rec_parser |
| 296 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 297 | |
| 298 | update_record_decoded |
| 299 | ~~~~~~~~~~~~~~~~~~~~~ |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 300 | .. argparse:: |
| 301 | :module: pySim.filesystem |
| 302 | :func: LinFixedEF.ShellCommands.upd_rec_dec_parser |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 303 | |
| 304 | |
Harald Welte | 4145d3c | 2021-04-08 20:34:13 +0200 | [diff] [blame] | 305 | edit_record_decoded |
| 306 | ~~~~~~~~~~~~~~~~~~~ |
| 307 | .. argparse:: |
| 308 | :module: pySim.filesystem |
| 309 | :func: LinFixedEF.ShellCommands.edit_rec_dec_parser |
| 310 | |
| 311 | This command will read the selected record, decode it to its JSON representation, save |
| 312 | that JSON to a temporary file on your computer, and launch your configured text editor. |
| 313 | |
| 314 | You may then perform whatever modifications to the JSON representation, save + leave your |
| 315 | text editor. |
| 316 | |
| 317 | Afterwards, the modified JSON will be re-encoded to the binary format, and the result written |
| 318 | back to the record on the SIM card. |
| 319 | |
| 320 | This allows for easy interactive modification of records. |
| 321 | |
| 322 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 323 | |
| 324 | Transparent EF commands |
| 325 | ----------------------- |
| 326 | |
| 327 | These commands become enabled only when your currently selected file is of *Transparent EF* type. |
| 328 | |
| 329 | |
| 330 | read_binary |
| 331 | ~~~~~~~~~~~ |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 332 | .. argparse:: |
| 333 | :module: pySim.filesystem |
| 334 | :func: TransparentEF.ShellCommands.read_bin_parser |
| 335 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 336 | |
| 337 | read_binary_decoded |
| 338 | ~~~~~~~~~~~~~~~~~~~ |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 339 | .. argparse:: |
| 340 | :module: pySim.filesystem |
| 341 | :func: TransparentEF.ShellCommands.read_bin_dec_parser |
| 342 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 343 | |
| 344 | update_binary |
| 345 | ~~~~~~~~~~~~~ |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 346 | .. argparse:: |
| 347 | :module: pySim.filesystem |
| 348 | :func: TransparentEF.ShellCommands.upd_bin_parser |
| 349 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 350 | |
| 351 | update_binary_decoded |
| 352 | ~~~~~~~~~~~~~~~~~~~~~ |
Harald Welte | d36f694 | 2021-04-04 14:37:55 +0200 | [diff] [blame] | 353 | .. argparse:: |
| 354 | :module: pySim.filesystem |
| 355 | :func: TransparentEF.ShellCommands.upd_bin_dec_parser |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 356 | |
Harald Welte | 0d4e98a | 2021-04-07 00:14:40 +0200 | [diff] [blame] | 357 | In normal operation, update_binary_decoded needs a JSON document representing the entire file contents as |
| 358 | input. This can be inconvenient if you want to keep 99% of the content but just toggle one specific |
| 359 | parameter. That's where the JSONpath support comes in handy: You can specify a JSONpath to an element |
| 360 | inside the document as well as a new value for tat field: |
| 361 | |
| 362 | Th below example demonstrates this by modifying the ofm field within EF.AD: |
| 363 | |
| 364 | :: |
| 365 | |
| 366 | pySIM-shell (MF/ADF.USIM/EF.AD)> read_binary_decoded |
| 367 | { |
| 368 | "ms_operation_mode": "normal", |
| 369 | "specific_facilities": { |
| 370 | "ofm": true |
| 371 | }, |
| 372 | "len_of_mnc_in_imsi": 2 |
| 373 | } |
| 374 | pySIM-shell (MF/ADF.USIM/EF.AD)> update_binary_decoded --json-path specific_facilities.ofm false |
| 375 | pySIM-shell (MF/ADF.USIM/EF.AD)> read_binary_decoded |
| 376 | { |
| 377 | "ms_operation_mode": "normal", |
| 378 | "specific_facilities": { |
| 379 | "ofm": false |
| 380 | }, |
| 381 | "len_of_mnc_in_imsi": 2 |
| 382 | } |
| 383 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 384 | |
Harald Welte | 4145d3c | 2021-04-08 20:34:13 +0200 | [diff] [blame] | 385 | edit_binary_decoded |
| 386 | ~~~~~~~~~~~~~~~~~~~ |
| 387 | This command will read the selected binary EF, decode it to its JSON representation, save |
| 388 | that JSON to a temporary file on your computer, and launch your configured text editor. |
| 389 | |
| 390 | You may then perform whatever modifications to the JSON representation, save + leave your |
| 391 | text editor. |
| 392 | |
| 393 | Afterwards, the modified JSON will be re-encoded to the binary format, and the result written |
| 394 | to the SIM card. |
| 395 | |
| 396 | This allows for easy interactive modification of file contents. |
| 397 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 398 | |
Harald Welte | 917d98c | 2021-04-21 11:51:25 +0200 | [diff] [blame] | 399 | |
| 400 | BER-TLV EF commands |
| 401 | ------------------- |
| 402 | |
| 403 | BER-TLV EFs are files that contain BER-TLV structured data. Every file can contain any number |
| 404 | of variable-length IEs (DOs). The tag within a BER-TLV EF must be unique within the file. |
| 405 | |
| 406 | The commands below become enabled only when your currently selected file is of *BER-TLV EF* type. |
| 407 | |
| 408 | retrieve_tags |
| 409 | ~~~~~~~~~~~~~ |
| 410 | |
| 411 | Retrieve a list of all tags present in the currently selected file. |
| 412 | |
| 413 | |
| 414 | retrieve_data |
| 415 | ~~~~~~~~~~~~~ |
| 416 | .. argparse:: |
| 417 | :module: pySim.filesystem |
| 418 | :func: BerTlvEF.ShellCommands.retrieve_data_parser |
| 419 | |
| 420 | |
| 421 | set_data |
| 422 | ~~~~~~~~ |
| 423 | .. argparse:: |
| 424 | :module: pySim.filesystem |
| 425 | :func: BerTlvEF.ShellCommands.set_data_parser |
| 426 | |
| 427 | |
| 428 | del_data |
| 429 | ~~~~~~~~ |
| 430 | .. argparse:: |
| 431 | :module: pySim.filesystem |
| 432 | :func: BerTlvEF.ShellCommands.del_data_parser |
| 433 | |
| 434 | |
| 435 | |
Harald Welte | 15fae98 | 2021-04-10 10:22:27 +0200 | [diff] [blame] | 436 | USIM commands |
| 437 | ------------- |
| 438 | |
| 439 | authenticate |
| 440 | ~~~~~~~~~~~~ |
| 441 | .. argparse:: |
| 442 | :module: pySim.ts_31_102 |
| 443 | :func: ADF_USIM.AddlShellCommands.authenticate_parser |
| 444 | |
| 445 | |
| 446 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 447 | cmd2 settable parameters |
| 448 | ------------------------ |
| 449 | |
| 450 | ``cmd2`` has the concept of *settable parameters* which act a bit like environment variables in an OS-level |
| 451 | shell: They can be read and set, and they will influence the behavior somehow. |
| 452 | |
| 453 | conserve_write |
| 454 | ~~~~~~~~~~~~~~ |
| 455 | |
| 456 | If enabled, pySim will (when asked to write to a card) always first read the respective file/record and |
| 457 | verify if the to-be-written value differs from the current on-card value. If not, the write will be skipped. |
| 458 | Writes will only be performed if the new value is different from the current on-card value. |
| 459 | |
| 460 | If disabled, pySim will always write irrespective of the current/new value. |
| 461 | |
Harald Welte | 1748b93 | 2021-04-06 21:12:25 +0200 | [diff] [blame] | 462 | json_pretty_print |
| 463 | ~~~~~~~~~~~~~~~~~ |
| 464 | |
| 465 | This parameter determines if generated JSON output should (by default) be pretty-printed (multi-line |
| 466 | output with indent level of 4 spaces) or not. |
| 467 | |
| 468 | The default value of this parameter is 'true'. |
| 469 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 470 | debug |
| 471 | ~~~~~ |
| 472 | |
| 473 | If enabled, full python back-traces will be displayed in case of exceptions |
| 474 | |
Harald Welte | 7829d8a | 2021-04-10 11:28:53 +0200 | [diff] [blame] | 475 | apdu_trace |
| 476 | ~~~~~~~~~~ |
| 477 | |
| 478 | Boolean variable that determines if a hex-dump of the command + response APDU shall be printed. |
| 479 | |
Harald Welte | be9516f | 2021-04-03 11:30:10 +0200 | [diff] [blame] | 480 | numeric_path |
| 481 | ~~~~~~~~~~~~ |
| 482 | |
| 483 | Boolean variable that determines if path (e.g. in prompt) is displayed with numeric FIDs or string names. |
| 484 | |
| 485 | :: |
| 486 | |
| 487 | pySIM-shell (MF/EF.ICCID)> set numeric_path True |
| 488 | numeric_path - was: False |
| 489 | now: True |
| 490 | pySIM-shell (3f00/2fe2)> set numeric_path False |
| 491 | numeric_path - was: True |
| 492 | now: False |
| 493 | pySIM-shell (MF/EF.ICCID)> help set |