Update swu_emulator.py

This commit is contained in:
Fabricio 2022-10-28 12:00:29 +01:00 committed by GitHub
parent a8d7364d40
commit 241a2e775e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2314,7 +2314,7 @@ class swu():
if (RAND is not None and AUTN is not None) or (VECTOR is not None and ENCR_DATA is not None):
if RAND is not None and AUTN is not None:
if self.sqn is not None:
if self.sqn is not None and retry == False:
auts = return_auts(toHex(RAND), toHex(AUTN),self.ki,self.op,self.opc, self.sqn)
eap_payload_response = bytes([2]) + bytes([self.eap_identifier]) + fromHex('0018170400000404') + auts
self.eap_payload_response = eap_payload_response