diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2018-01-10 14:10:17 +0900 |
---|---|---|
committer | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2018-01-10 17:12:10 +0900 |
commit | 47c73abd041d8dd7dabe237fb1d4c49e028f42c0 (patch) | |
tree | 33b65cb0ecdc73284353d854ac0b9fce917d0d14 | |
parent | a51592e1807c1d13f88b32275aa4a8a77d7d3b40 (diff) |
pySim-prog: Replace magic numbers with a readable EF file name.
Change-Id: Ibda7d5a4132971e884f6d760baf20cd33025a2af
-rwxr-xr-x | pySim-prog.py | 2 |
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 |