mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-04-17 03:00:16 -04:00
mfkey64: abort if key recovery failed
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user