aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-read.py
diff options
context:
space:
mode:
authorSupreeth Herle <herlesupreeth@gmail.com>2020-03-05 15:33:00 +0100
committerherlesupreeth <herlesupreeth@gmail.com>2020-03-13 07:44:45 +0000
commit0e90e6c3c6d182466900f5b94b9a856d345effd2 (patch)
tree2f24c55f4ddbccf795180da542486ef7348a1fb1 /pySim-read.py
parentab46d625fc67cb15e26f40822238ccc34a7f4649 (diff)
pySim-read.py: support for reading GID2 from SIM
Diffstat (limited to 'pySim-read.py')
-rwxr-xr-xpySim-read.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/pySim-read.py b/pySim-read.py
index 44e7dae..55b43d7 100755
--- a/pySim-read.py
+++ b/pySim-read.py
@@ -118,6 +118,16 @@ if __name__ == '__main__':
except Exception as e:
print("GID1: Can't read file -- %s" % (str(e),))
+ # EF.GID2
+ try:
+ (res, sw) = scc.read_binary(EF['GID2'])
+ if sw == '9000':
+ print("GID2: %s" % (res,))
+ else:
+ print("GID2: Can't read, response code = %s" % (sw,))
+ except Exception as e:
+ print("GID2: Can't read file -- %s" % (str(e),))
+
# EF.SMSP
(res, sw) = scc.read_record(['3f00', '7f10', '6f42'], 1)
if sw == '9000':