mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 02:34:48 +08:00
fixed the read B key features error handling.
This commit is contained in:
parent
c9a02adc70
commit
42d58cbced
1 changed files with 3 additions and 2 deletions
|
@ -1998,9 +1998,9 @@ noValidKeyFound:
|
|||
SendCommandNG(CMD_HF_MIFARE_READBL, (uint8_t *)&payload, sizeof(mf_readblock_t));
|
||||
|
||||
PacketResponseNG resp;
|
||||
if (!WaitForResponseTimeout(CMD_HF_MIFARE_READBL, &resp, 1500)) continue;
|
||||
if (!WaitForResponseTimeout(CMD_HF_MIFARE_READBL, &resp, 1500)) goto skipReadBKey;
|
||||
|
||||
if (resp.status != PM3_SUCCESS) continue;
|
||||
if (resp.status != PM3_SUCCESS) goto skipReadBKey;
|
||||
|
||||
uint8_t *data = resp.data.asBytes;
|
||||
key64 = bytes_to_num(data + 10, 6);
|
||||
|
@ -2021,6 +2021,7 @@ noValidKeyFound:
|
|||
}
|
||||
|
||||
// Use the nested / hardnested attack
|
||||
skipReadBKey:
|
||||
if (e_sector[current_sector_i].foundKey[current_key_type_i] == 0) {
|
||||
if (prng_type && (! nested_failed)) {
|
||||
uint8_t retries = 0;
|
||||
|
|
Loading…
Reference in a new issue