aboutsummaryrefslogtreecommitdiffstats
path: root/pySim-prog.py
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2018-01-10 14:10:17 +0900
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2018-01-10 17:12:10 +0900
commit47c73abd041d8dd7dabe237fb1d4c49e028f42c0 (patch)
tree33b65cb0ecdc73284353d854ac0b9fce917d0d14 /pySim-prog.py
parenta51592e1807c1d13f88b32275aa4a8a77d7d3b40 (diff)
pySim-prog: Replace magic numbers with a readable EF file name.
Diffstat (limited to 'pySim-prog.py')
-rwxr-xr-xpySim-prog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pySim-prog.py b/pySim-prog.py
index 2177d8c..44ca1fd 100755
--- a/pySim-prog.py
+++ b/pySim-prog.py
@@ -618,7 +618,7 @@ if __name__ == '__main__':
# Connect transport
print "Insert card now (or CTRL-C to cancel)"
sl.wait_for_card(newcardonly=not first)
- (res,_) = scc.read_binary(['3f00', '7f20', '6f07'])
+ (res,_) = scc.read_binary(EF['IMSI'])
imsi = swap_nibbles(res)[3:]
else:
imsi = opts.imsi