diff options
author | Supreeth Herle <herlesupreeth@gmail.com> | 2020-03-18 11:38:00 +0100 |
---|---|---|
committer | Supreeth Herle <herlesupreeth@gmail.com> | 2020-03-22 10:17:03 +0100 |
commit | 4c306ab200891837e2a7b729d88495ec78f20540 (patch) | |
tree | f130f168ddf54e9c41483028320b5fd7909cef3f /pysim-testdata | |
parent | e4e98316a8bfabc9b1ce6952c1721d5c093cc9c1 (diff) |
pySim-read.py: Added a common card detection function for both pySim-prog.py and pySim-read.py
This function is used to detect the card type and return Card class/Card subclasses object
if its a know card or else None. Also, an initial step towards refactoring of code.
Change-Id: I71f57c6403dc933bd9d54f90df3d3fe105b4f66f
Diffstat (limited to 'pysim-testdata')
-rw-r--r-- | pysim-testdata/Fairwaves-SIM.ok | 1 | ||||
-rw-r--r-- | pysim-testdata/Wavemobile-SIM.ok | 9 | ||||
-rw-r--r-- | pysim-testdata/fakemagicsim.ok | 1 | ||||
-rw-r--r-- | pysim-testdata/sysmoISIM-SJA2.ok | 1 | ||||
-rw-r--r-- | pysim-testdata/sysmoUSIM-SJS1.ok | 1 | ||||
-rw-r--r-- | pysim-testdata/sysmosim-gr1.ok | 1 |
6 files changed, 10 insertions, 4 deletions
diff --git a/pysim-testdata/Fairwaves-SIM.ok b/pysim-testdata/Fairwaves-SIM.ok index dfcf05d..ffe9c42 100644 --- a/pysim-testdata/Fairwaves-SIM.ok +++ b/pysim-testdata/Fairwaves-SIM.ok @@ -1,5 +1,6 @@ Using PC/SC reader (dev=0) interface Reading ... +Autodetected card type: Fairwaves-SIM ICCID: 8988219000000117833 IMSI: 001010000000111 GID1: ffffffffffffffff diff --git a/pysim-testdata/Wavemobile-SIM.ok b/pysim-testdata/Wavemobile-SIM.ok index 8447023..03191b3 100644 --- a/pysim-testdata/Wavemobile-SIM.ok +++ b/pysim-testdata/Wavemobile-SIM.ok @@ -1,9 +1,10 @@ -Using PC/SC reader (dev=4) interface +Using PC/SC reader (dev=3) interface Reading ... +Autodetected card type: Wavemobile-SIM ICCID: 89445310150011013678 IMSI: 001010000000102 -GID1: Can't read file -- SW match failed! Expected 9000 and got 9404. -GID2: Can't read file -- SW match failed! Expected 9000 and got 9404. +GID1: Can't read file -- SW match failed! Expected 9000 and got 6a82. +GID2: Can't read file -- SW match failed! Expected 9000 and got 6a82. SMSP: e1ffffffffffffffffffffffff0581005155f5ffffffffffff000000ffffffffffffffffffffffffffff SPN: wavemobile Display HPLMN: False @@ -45,7 +46,7 @@ OPLMNwAcT: ffffff0000 # unused ffffff0000 # unused -HPLMNAcT: Can't read file -- SW match failed! Expected 9000 and got 9404. +HPLMNAcT: Can't read file -- SW match failed! Expected 9000 and got 6a82. ACC: abce MSISDN: Not available AD: 00ffff02 diff --git a/pysim-testdata/fakemagicsim.ok b/pysim-testdata/fakemagicsim.ok index 816b3dc..4ee5c7f 100644 --- a/pysim-testdata/fakemagicsim.ok +++ b/pysim-testdata/fakemagicsim.ok @@ -1,5 +1,6 @@ Using PC/SC reader (dev=2) interface Reading ... +Autodetected card type: fakemagicsim ICCID: 1122334455667788990 IMSI: 001010000000102 GID1: Can't read file -- SW match failed! Expected 9000 and got 9404. diff --git a/pysim-testdata/sysmoISIM-SJA2.ok b/pysim-testdata/sysmoISIM-SJA2.ok index ce4ce7c..0ccb8e9 100644 --- a/pysim-testdata/sysmoISIM-SJA2.ok +++ b/pysim-testdata/sysmoISIM-SJA2.ok @@ -1,5 +1,6 @@ Using PC/SC reader (dev=0) interface Reading ... +Autodetected card type: sysmoISIM-SJA2 ICCID: 8988211900000000004 IMSI: 001010000000102 GID1: ffffffffffffffffffff diff --git a/pysim-testdata/sysmoUSIM-SJS1.ok b/pysim-testdata/sysmoUSIM-SJS1.ok index 83a8e9e..0299e3f 100644 --- a/pysim-testdata/sysmoUSIM-SJS1.ok +++ b/pysim-testdata/sysmoUSIM-SJS1.ok @@ -1,5 +1,6 @@ Using PC/SC reader (dev=1) interface Reading ... +Autodetected card type: sysmoUSIM-SJS1 ICCID: 1122334455667788990 IMSI: 001010000000102 GID1: ffffffffffffffffffff diff --git a/pysim-testdata/sysmosim-gr1.ok b/pysim-testdata/sysmosim-gr1.ok index 50f949d..04e4965 100644 --- a/pysim-testdata/sysmosim-gr1.ok +++ b/pysim-testdata/sysmosim-gr1.ok @@ -1,5 +1,6 @@ Using PC/SC reader (dev=3) interface Reading ... +Autodetected card type: sysmosim-gr1 ICCID: 1122334455667788990 IMSI: 001010000000102 GID1: Can't read file -- SW match failed! Expected 9000 and got 9404. |