mirror of
https://github.com/srlabs/blue-merle.git
synced 2025-01-03 03:20:52 -05:00
python: only get the IMSI when in deterministic mode
We don't need the IMSI otherwise so let's not spend the time obtaining it.
This commit is contained in:
parent
4a16277ac2
commit
53bf156fd0
@ -180,10 +180,12 @@ def validate_imei(imei):
|
||||
|
||||
if __name__ == '__main__':
|
||||
args = ap.parse_args()
|
||||
imsi_d = None
|
||||
if args.verbose:
|
||||
verbose = args.verbose
|
||||
if args.deterministic:
|
||||
mode = Modes.DETERMINISTIC
|
||||
imsi_d = get_imsi()
|
||||
if args.random:
|
||||
mode = Modes.RANDOM
|
||||
if args.static is not None:
|
||||
@ -196,7 +198,6 @@ if __name__ == '__main__':
|
||||
else:
|
||||
exit(-1)
|
||||
else:
|
||||
imsi_d = get_imsi()
|
||||
imei = generate_imei(imei_prefix, imsi_d)
|
||||
if (verbose):
|
||||
print(f"Generated new IMEI: {imei}")
|
||||
|
Loading…
Reference in New Issue
Block a user