mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
mfkey64: abort if key recovery failed
This commit is contained in:
parent
febaa64b4d
commit
17bfed94da
1 changed files with 5 additions and 0 deletions
|
@ -73,6 +73,11 @@ int main(int argc, char *argv[]) {
|
|||
printf(" ks3: %08x\n", ks3);
|
||||
|
||||
revstate = lfsr_recovery64(ks2, ks3);
|
||||
if ((revstate->odd == 0) && (revstate->even == 0)) {
|
||||
printf("\nKey not found :(\n\n");
|
||||
crypto1_destroy(revstate);
|
||||
return -1;
|
||||
}
|
||||
|
||||
// Decrypting communication using keystream if presented
|
||||
if (argc > 6) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue