From 00241b44231cab27871fcf3d0ee62b59f95fe899 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Wed, 11 Mar 2020 13:37:46 +0100 Subject: [PATCH] sysmoUSIM-SJA2: detect installed applications (ISIM/USIM) Depending on the card profile the sysmoUSIM-SJA2 may come with an USIM application or with an USIM and an ISIM application installed. If the ISIM application is not present the related application must not get selected and the related files must not accessed. At the moment the presence of the ISIM application is detected by checking the ATR, however the ATR only identifies a certain OS version or type, not an application. Lets look at the EF.DIR first and dtermine the presence of the applications by looking for the related AID. Related: SYS#4817 --- simcard.py | 11 +++++++ sysmo_isim_sja2.py | 23 ++++++------- sysmo_usim.py | 4 +++ tests/sja2/01_auth.out | 2 ++ tests/sja2/02_algo.out | 60 ++++++++++++++++++++++++++++++++++ tests/sja2/03_milenage_par.out | 8 +++++ tests/sja2/04_op_opc.out | 8 +++++ tests/sja2/05_ki.out | 8 +++++ tests/sja2/06_seq.out | 4 +++ tests/sja2/07_mnclen.out | 12 +++++++ tests/sjs1/01_auth.out | 1 + tests/sjs1/02_mode_read.out | 1 + tests/sjs1/03_mode_write.out | 2 ++ tests/sjs1/04_algo.out | 34 +++++++++++++++++++ tests/sjs1/05_milenage_par.out | 4 +++ tests/sjs1/06_op_opc.out | 4 +++ tests/sjs1/07_ki.out | 4 +++ tests/sjs1/08_seq.out | 2 ++ tests/sjs1/09_mnclen.out | 6 ++++ 19 files changed, 185 insertions(+), 13 deletions(-) diff --git a/simcard.py b/simcard.py index 026da89..a023270 100644 --- a/simcard.py +++ b/simcard.py @@ -79,12 +79,23 @@ class Simcard(): card = None filelen = 0 #length of the currently selected file + has_isim = False + has_usim = False # Constructor: Create a new simcard object def __init__(self, cardtype = GSM_USIM, atr = None): if cardtype == GSM_USIM: self.card = USIM(atr) self.usim = True + + # Detect ISIM / USIM applications + self.card.get_AID() + AID = self.card.AID + for a in AID: + if a[0:7] == [0xA0, 0x00, 0x00, 0x00, 0x87, 0x10, 0x04]: + self.has_isim = True + elif a[0:7] == [0xA0, 0x00, 0x00, 0x00, 0x87, 0x10, 0x02]: + self.has_usim = True else: self.card = SIM(atr) self.usim = False diff --git a/sysmo_isim_sja2.py b/sysmo_isim_sja2.py index e2a9f01..c4d286c 100644 --- a/sysmo_isim_sja2.py +++ b/sysmo_isim_sja2.py @@ -454,7 +454,6 @@ class Sysmo_isim_sja2(Sysmo_usim): atr = "3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 30 34 05 4B A9" print "Trying to find card with ATR: " + atr Sysmo_usim.__init__(self, atr) - self.has_isim = True card_detected = True except: print " * Card not detected!" @@ -468,7 +467,6 @@ class Sysmo_isim_sja2(Sysmo_usim): atr = "3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2" print "Trying to find card with ATR: " + atr Sysmo_usim.__init__(self, atr) - self.has_isim = True card_detected = True except: print " * Card not detected!" @@ -481,7 +479,6 @@ class Sysmo_isim_sja2(Sysmo_usim): atr = "3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 52 75 31 04 51 D5" print "Trying to find card with ATR: " + atr Sysmo_usim.__init__(self, atr) - self.has_isim = False card_detected = True except: print " * Card not detected!" @@ -534,7 +531,7 @@ class Sysmo_isim_sja2(Sysmo_usim): self.sim.card.SELECT_ADF_USIM() self.sim.select(SYSMO_ISIMSJA2_EF_MILENAGE_CFG) self.sim.update_binary(ef_milenage_cfg.encode()) - if self.has_isim: + if self.sim.has_isim: self.sim.card.SELECT_ADF_ISIM() self.sim.select(SYSMO_ISIMSJA2_EF_MILENAGE_CFG) self.sim.update_binary(ef_milenage_cfg.encode()) @@ -585,7 +582,7 @@ class Sysmo_isim_sja2(Sysmo_usim): print " * ADF_USIM/EF_USIM_AUTH_KEY_2G:" print SYSMO_ISIMSJA2_FILE_EF_USIM_AUTH_KEY_2G(res.apdu) - if self.has_isim: + if self.sim.has_isim: # ADF_ISIM/EF_ISIM_AUTH_KEY_2G: self.__select_xsim_auth_key(isim = True, _2G = True) res = self._read_binary(self.sim.filelen) @@ -598,7 +595,7 @@ class Sysmo_isim_sja2(Sysmo_usim): print " * ADF_USIM/EF_USIM_AUTH_KEY:" print SYSMO_ISIMSJA2_FILE_EF_USIM_AUTH_KEY(res.apdu) - if self.has_isim: + if self.sim.has_isim: # ADF_ISIM/EF_ISIM_AUTH_KEY: self.__select_xsim_auth_key(isim = True, _2G = False) res = self._read_binary(self.sim.filelen) @@ -613,7 +610,7 @@ class Sysmo_isim_sja2(Sysmo_usim): print " * ADF_USIM/EF_MILENAGE_CFG:" print SYSMO_ISIMSJA2_FILE_EF_MILENAGE_CFG(res.apdu) - if self.has_isim: + if self.sim.has_isim: # ADF_ISIM/EF_MILENAGE_CFG: self.sim.select(GSM_SIM_MF) self.sim.card.SELECT_ADF_ISIM() @@ -630,7 +627,7 @@ class Sysmo_isim_sja2(Sysmo_usim): print " * ADF_USIM/EF_USIM_SQN:" print SYSMO_ISIMSJA2_FILE_EF_USIM_SQN(res.apdu) - if self.has_isim: + if self.sim.has_isim: # ADF_USIM/EF_ISIM_SQN: self.sim.select(GSM_SIM_MF) self.sim.card.SELECT_ADF_ISIM() @@ -678,7 +675,7 @@ class Sysmo_isim_sja2(Sysmo_usim): ef.key = ki self.sim.update_binary(ef.encode()) - if self.has_isim: + if self.sim.has_isim: self.__select_xsim_auth_key(isim = True, _2G = False) res = self._read_binary(self.sim.filelen) ef = SYSMO_ISIMSJA2_FILE_EF_USIM_AUTH_KEY(res.apdu) @@ -744,7 +741,7 @@ class Sysmo_isim_sja2(Sysmo_usim): ef.algo = algo_3g self.sim.update_binary(ef.encode()) - if self.has_isim: + if self.sim.has_isim: self.__select_xsim_auth_key(isim = True, _2G = False) res = self._read_binary(self.sim.filelen) ef = SYSMO_ISIMSJA2_FILE_EF_USIM_AUTH_KEY(res.apdu) @@ -797,7 +794,7 @@ class Sysmo_isim_sja2(Sysmo_usim): ef.use_opc = bool(select) self.sim.update_binary(ef.encode()) - if self.has_isim: + if self.sim.has_isim: self.__select_xsim_auth_key(isim = True, _2G = False) res = self._read_binary(self.sim.filelen) ef = SYSMO_ISIMSJA2_FILE_EF_USIM_AUTH_KEY(res.apdu) @@ -827,7 +824,7 @@ class Sysmo_isim_sja2(Sysmo_usim): res = self._read_binary(self.sim.filelen) print SYSMO_ISIMSJA2_FILE_EF_USIM_SQN(res.apdu) - if self.has_isim: + if self.sim.has_isim: print(" * Current SQN Configuration for ADF_ISIM:") self.sim.select(GSM_SIM_MF) self.sim.card.SELECT_ADF_ISIM() @@ -851,7 +848,7 @@ class Sysmo_isim_sja2(Sysmo_usim): ef = SYSMO_ISIMSJA2_FILE_EF_USIM_SQN() self.sim.update_binary(ef.encode()) - if self.has_isim: + if self.sim.has_isim: self.sim.card.SELECT_ADF_ISIM() self.sim.select(SYSMO_ISIMSJA2_EF_USIM_SQN) ef = SYSMO_ISIMSJA2_FILE_EF_USIM_SQN() diff --git a/sysmo_usim.py b/sysmo_usim.py index 137abac..506e471 100644 --- a/sysmo_usim.py +++ b/sysmo_usim.py @@ -40,6 +40,10 @@ class Sysmo_usim: self.sim = Simcard(GSM_USIM, toBytes(atr)) self.sim.card.SELECT_ADF_USIM() print(" * Detected Card IMSI: %s" % self.sim.card.get_imsi()) + if self.sim.has_isim: + print(" ISIM Application installed") + if self.sim.has_usim: + print(" USIM Application installed") print("") def _warn_failed_auth(self, attempts = 3, keytype = "ADM1"): diff --git a/tests/sja2/01_auth.out b/tests/sja2/01_auth.out index 27262c0..7852481 100644 --- a/tests/sja2/01_auth.out +++ b/tests/sja2/01_auth.out @@ -7,6 +7,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sja2/02_algo.out b/tests/sja2/02_algo.out index 127097b..d145c5e 100644 --- a/tests/sja2/02_algo.out +++ b/tests/sja2/02_algo.out @@ -7,6 +7,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -31,6 +33,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -55,6 +59,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -79,6 +85,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -103,6 +111,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -127,6 +137,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -151,6 +163,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -175,6 +189,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -199,6 +215,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -223,6 +241,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -247,6 +267,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -271,6 +293,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -295,6 +319,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -319,6 +345,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -343,6 +371,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -367,6 +397,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -391,6 +423,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -415,6 +449,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -439,6 +475,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -463,6 +501,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -487,6 +527,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -511,6 +553,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -535,6 +579,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -559,6 +605,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -583,6 +631,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -607,6 +657,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -631,6 +683,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -655,6 +709,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -679,6 +735,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -703,6 +761,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sja2/03_milenage_par.out b/tests/sja2/03_milenage_par.out index 4f2cf95..aad7115 100644 --- a/tests/sja2/03_milenage_par.out +++ b/tests/sja2/03_milenage_par.out @@ -7,6 +7,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -39,6 +41,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -71,6 +75,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -103,6 +109,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sja2/04_op_opc.out b/tests/sja2/04_op_opc.out index ad44880..d09cdd8 100644 --- a/tests/sja2/04_op_opc.out +++ b/tests/sja2/04_op_opc.out @@ -7,6 +7,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -30,6 +32,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -53,6 +57,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -76,6 +82,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sja2/05_ki.out b/tests/sja2/05_ki.out index a6c3ffe..c3aaffc 100644 --- a/tests/sja2/05_ki.out +++ b/tests/sja2/05_ki.out @@ -7,6 +7,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -30,6 +32,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -53,6 +57,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -76,6 +82,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sja2/06_seq.out b/tests/sja2/06_seq.out index 4773cff..63baf2a 100644 --- a/tests/sja2/06_seq.out +++ b/tests/sja2/06_seq.out @@ -7,6 +7,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -63,6 +65,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sja2/07_mnclen.out b/tests/sja2/07_mnclen.out index 76e8af5..1169210 100644 --- a/tests/sja2/07_mnclen.out +++ b/tests/sja2/07_mnclen.out @@ -7,6 +7,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -30,6 +32,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -53,6 +57,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -76,6 +82,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -99,6 +107,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -122,6 +132,8 @@ Initializing smartcard terminal... Trying to find card with ATR: 3B 9F 96 80 1F 87 80 31 E0 73 FE 21 1B 67 4A 4C 75 31 33 02 51 B2 Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + ISIM Application installed + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sjs1/01_auth.out b/tests/sjs1/01_auth.out index 13affc9..f5526ab 100644 --- a/tests/sjs1/01_auth.out +++ b/tests/sjs1/01_auth.out @@ -3,6 +3,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sjs1/02_mode_read.out b/tests/sjs1/02_mode_read.out index aee398b..940f692 100644 --- a/tests/sjs1/02_mode_read.out +++ b/tests/sjs1/02_mode_read.out @@ -3,6 +3,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sjs1/03_mode_write.out b/tests/sjs1/03_mode_write.out index 2951aa1..71331de 100644 --- a/tests/sjs1/03_mode_write.out +++ b/tests/sjs1/03_mode_write.out @@ -3,6 +3,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -63,6 +64,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sjs1/04_algo.out b/tests/sjs1/04_algo.out index 21e30fa..6156e46 100644 --- a/tests/sjs1/04_algo.out +++ b/tests/sjs1/04_algo.out @@ -3,6 +3,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -23,6 +24,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -43,6 +45,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -63,6 +66,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -83,6 +87,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -103,6 +108,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -123,6 +129,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -143,6 +150,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -163,6 +171,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -183,6 +192,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -203,6 +213,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -223,6 +234,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -243,6 +255,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -263,6 +276,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -283,6 +297,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -303,6 +318,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -323,6 +339,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -343,6 +360,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -363,6 +381,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -383,6 +402,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -403,6 +423,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -423,6 +444,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -443,6 +465,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -463,6 +486,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -483,6 +507,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -503,6 +528,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -523,6 +549,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -543,6 +570,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -563,6 +591,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -583,6 +612,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -603,6 +633,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -623,6 +654,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -643,6 +675,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -663,6 +696,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sjs1/05_milenage_par.out b/tests/sjs1/05_milenage_par.out index baa3826..81e544c 100644 --- a/tests/sjs1/05_milenage_par.out +++ b/tests/sjs1/05_milenage_par.out @@ -3,6 +3,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -31,6 +32,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -59,6 +61,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -87,6 +90,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sjs1/06_op_opc.out b/tests/sjs1/06_op_opc.out index 783973b..0cc2ec0 100644 --- a/tests/sjs1/06_op_opc.out +++ b/tests/sjs1/06_op_opc.out @@ -3,6 +3,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -22,6 +23,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -41,6 +43,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -60,6 +63,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sjs1/07_ki.out b/tests/sjs1/07_ki.out index 0612cc9..0ee5b24 100644 --- a/tests/sjs1/07_ki.out +++ b/tests/sjs1/07_ki.out @@ -3,6 +3,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -22,6 +23,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -40,6 +42,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -59,6 +62,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sjs1/08_seq.out b/tests/sjs1/08_seq.out index 0741475..a7ca91e 100644 --- a/tests/sjs1/08_seq.out +++ b/tests/sjs1/08_seq.out @@ -3,6 +3,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -63,6 +64,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 diff --git a/tests/sjs1/09_mnclen.out b/tests/sjs1/09_mnclen.out index c1b047d..eaa5b9f 100644 --- a/tests/sjs1/09_mnclen.out +++ b/tests/sjs1/09_mnclen.out @@ -3,6 +3,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -22,6 +23,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -41,6 +43,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -60,6 +63,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -79,6 +83,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3 @@ -98,6 +103,7 @@ Copyright (c)2017-2019 Sysmocom s.f.m.c. GmbH Initializing smartcard terminal... * Detected Card IMSI: 262423203000002 + USIM Application installed Authenticating... * Remaining attempts: 3