aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2018-01-27 02:09:04 +0900
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2018-01-27 02:09:04 +0900
commit5dfda9fdd7856a99c031dcefec12dc6f4fecd5f9 (patch)
tree460fde2e56864d8c8ef10a752ca77815f3b09c83
parent99b5e321e552ed4aa1192207102c792119a60e0b (diff)
pySim-fairwaves-prog: Read a selected A3/A8 algorithm.fairwaves/sim
-rwxr-xr-xpySim-fairwaves-prog.py7
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