From 9b227de71937d9edef58e926f630e7bf3f72bd18 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 15 Oct 2021 21:19:38 +0200 Subject: [PATCH] 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 --- scripts/sysmoISIM-SJA2/dump-auth-cfg.pysim | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 scripts/sysmoISIM-SJA2/dump-auth-cfg.pysim diff --git a/scripts/sysmoISIM-SJA2/dump-auth-cfg.pysim b/scripts/sysmoISIM-SJA2/dump-auth-cfg.pysim new file mode 100644 index 00000000..bfba6e7f --- /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