pysim-shell: export is missing some files

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Riemer, Björn bjoern.riemer at fokus.fraunhofer.de
Wed Nov 10 09:27:41 UTC 2021


Hi,

i recently noticed that the `export` command from pysim-shell is failing on some basic files like EF.ICCID.
However if i manually select the file it can be read. This happens on a generic USIM and on the orange sysmousim-SJS1.
see the logs below to illustrate.

Cheers
Bjoern

sysmo usim:
<..snip..>
################################################################################
# Export summary                                                               #
################################################################################
# total files visited: 165
# bad files:           75
#  MF/EF.DIR, string indices must be integers
#  MF/EF.ICCID, string indices must be integers
<...snip...>
pySIM-shell (MF)> select EF.ICCID 
"621e8202412183022fe2a506c00100ca01808a01058b032f06048002000a8800"
pySIM-shell (MF/EF.ICCID)> read_binary_decoded 
{
    "iccid": "8988211000000169394"
}

-------
KDDI USIM:

Using PC/SC reader interface
Waiting for card...
ATR:  [59, 157, 149, 128, 63, 199, 160, 128, 49, 160, 115, 190, 33, 83, 81, 6, 131, 5, 144, 0, 63]
Autodetected card type: Generic-UISIM
AIDs on card:
 USIM: a0000000871002ff81ff108904150001
Welcome to pySim-shell!
pySIM-shell (MF)> select EF.ICCID 
"0000000a2fe204000fffff01020000"
pySIM-shell (MF/EF.ICCID)> read_binary_decoded 
{
    "iccid": "8981100055906574179"
}
pySIM-shell (MF/EF.ICCID)> select MF
"0000ffff3f0001000000000011b304110400838a838a0000000000000000"
pySIM-shell (MF)> export
################################################################################
# MF/EF.DIR                                                                    #
################################################################################
# directory: MF (3f00)
# file: EF.DIR (2f00)
# bad file: MF/EF.DIR, string indices must be integers
#
################################################################################
# MF/EF.ICCID                                                                  #
################################################################################
# directory: MF (3f00)
# file: EF.ICCID (2fe2)
# bad file: MF/EF.ICCID, string indices must be integers
#



More information about the OpenBSC mailing list