mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-24 23:25:40 -07:00
clearning variable before each call to hardnested
This commit is contained in:
parent
f5e93c0a1c
commit
31b01fff5a
1 changed files with 3 additions and 1 deletions
|
@ -2841,7 +2841,7 @@ tryNested:
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PM3_ESTATIC_NONCE:
|
case PM3_ESTATIC_NONCE: {
|
||||||
PrintAndLogEx(ERR, "Error: Static encrypted nonce detected. Aborted\n");
|
PrintAndLogEx(ERR, "Error: Static encrypted nonce detected. Aborted\n");
|
||||||
|
|
||||||
e_sector[current_sector_i].Key[current_key_type_i] = 0xffffffffffff;;
|
e_sector[current_sector_i].Key[current_key_type_i] = 0xffffffffffff;;
|
||||||
|
@ -2854,6 +2854,7 @@ tryNested:
|
||||||
free(e_sector);
|
free(e_sector);
|
||||||
free(fptr);
|
free(fptr);
|
||||||
return isOK;
|
return isOK;
|
||||||
|
}
|
||||||
case PM3_SUCCESS: {
|
case PM3_SUCCESS: {
|
||||||
calibrate = false;
|
calibrate = false;
|
||||||
e_sector[current_sector_i].Key[current_key_type_i] = bytes_to_num(tmp_key, 6);
|
e_sector[current_sector_i].Key[current_key_type_i] = bytes_to_num(tmp_key, 6);
|
||||||
|
@ -2878,6 +2879,7 @@ tryHardnested: // If the nested attack fails then we try the hardnested attack
|
||||||
slow ? "Yes" : "No");
|
slow ? "Yes" : "No");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foundkey = 0;
|
||||||
isOK = mfnestedhard(mfFirstBlockOfSector(sectorno), keytype, key, mfFirstBlockOfSector(current_sector_i), current_key_type_i, NULL, false, false, slow, 0, &foundkey, NULL);
|
isOK = mfnestedhard(mfFirstBlockOfSector(sectorno), keytype, key, mfFirstBlockOfSector(current_sector_i), current_key_type_i, NULL, false, false, slow, 0, &foundkey, NULL);
|
||||||
DropField();
|
DropField();
|
||||||
if (isOK) {
|
if (isOK) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue