diff options
author | Harald Welte <laforge@osmocom.org> | 2021-10-15 21:19:38 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-10-16 10:46:05 +0200 |
commit | 9b227de71937d9edef58e926f630e7bf3f72bd18 (patch) | |
tree | 6f11493c2cfc9741e5c6d8e27c8dd2de9a320cc7 /scripts | |
parent | eb45838c474c6c1a731bb808058b5037a06d96ea (diff) |
pySim-shell: add example script to dump authentication config
you can use this like that:
./pySim-shell.py -p0 --script ./scripts/sysmoISIM-SJA2/dump-auth-cfg.pysim
Change-Id: I5eac1af63d586f2371f519a160e1005fcbb27bfb
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/sysmoISIM-SJA2/dump-auth-cfg.pysim | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/scripts/sysmoISIM-SJA2/dump-auth-cfg.pysim b/scripts/sysmoISIM-SJA2/dump-auth-cfg.pysim new file mode 100644 index 0000000..bfba6e7 --- /dev/null +++ b/scripts/sysmoISIM-SJA2/dump-auth-cfg.pysim @@ -0,0 +1,41 @@ +# script to be used with pySim-shell.py which is part of the Osmocom pysim package, +# found at https://osmocom.org/projects/pysim/wiki +set echo true + +# TODO: add your card-specific ADM pin at the end of the verify_adm line below +verify_adm + +select DF.SYSTEM + +# Milenage configuration (constants) +select EF.MILENAGE_CFG +read_binary_decoded + +# 2G authentication kay / algorithm +select EF.SIM_AUTH_KEY +read_binary_decoded + +# OTA keys +#select EF.0348_KEY +#read_records_decoded + +select ADF.USIM +# USIM authentication key / algoritmh in 3G security context +select EF.USIM_AUTH_KEY +read_binary_decoded +# USIM authentication key / algorithm in 2G security context +select EF.USIM_AUTH_KEY_2G +read_binary_decoded +# USIM SQN numbers +select EF.USIM_SQN +read_binary_decoded + +select ADF.ISIM +# ISIM authentication key / algorithm +select EF.ISIM_AUTH_KEY +read_binary_decoded +# ISIM SQN numbers +select EF.ISIM_SQN +read_binary_decoded + +quit |