pySim-prog: Replace magic numbers with a readable EF file name.

Change-Id: Ibda7d5a4132971e884f6d760baf20cd33025a2af
This commit is contained in:
Alexander Chemeris
2018-01-10 14:10:17 +09:00
parent a51592e180
commit 47c73abd04

View File

@@ -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