diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2018-01-27 02:09:04 +0900 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2018-01-27 02:09:04 +0900 |
commit | 5dfda9fdd7856a99c031dcefec12dc6f4fecd5f9 (patch) | |
tree | 460fde2e56864d8c8ef10a752ca77815f3b09c83 | |
parent | 99b5e321e552ed4aa1192207102c792119a60e0b (diff) |
pySim-fairwaves-prog: Read a selected A3/A8 algorithm.fairwaves/sim
Change-Id: I757ea725bd5616dbd6ef329ea5981063fd780761
-rwxr-xr-x | pySim-fairwaves-prog.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pySim-fairwaves-prog.py b/pySim-fairwaves-prog.py index d9922cf..64edf94 100755 --- a/pySim-fairwaves-prog.py +++ b/pySim-fairwaves-prog.py @@ -104,6 +104,13 @@ def program_sim_card(card, sim_db, opts): else: print("Ki: Can't read, response code = %s" % (sw,)) + # Read EF.A3A8 + (a3a8, sw) = card.read_a3a8() + if sw == '9000': + print("A3/A8: %s" % (a3a8,)) + else: + print("A3/A8: Can't read, response code = %s" % (sw,)) + print("Programming...") # Update SPN |