mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-10-23 21:44:50 +00:00
CHG: 'hf 15 findafi' - added the possibility to cancel loop with buttonpress
This commit is contained in:
1 parent
e69d070596
commit
2c1e2a9f3a
3 files changed
+8
-3
No files matched your search
+6
-1
@@ -1056,9 +1056,14 @@ void BruteforceIso15693Afi(uint32_t speed) {
|
||||
if (recvlen >= 12) {
|
||||
Dbprintf("AFI = %i UID = %s", i, sprintUID(NULL, buf + 2) );
|
||||
}
|
||||
|
||||
if (BUTTON_PRESS) {
|
||||
DbpString("button pressed, aborting..");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Dbprintf("AFI Bruteforcing done.");
|
||||
DbpString("AFI Bruteforcing done.");
|
||||
switch_off();
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -99,7 +99,7 @@ int DemodPCF7931(uint8_t **outBlocks) {
|
||||
warnings++;
|
||||
if (warnings > 10)
|
||||
{
|
||||
Dbprintf("Error: too many detection errors, aborting.");
|
||||
Dbprintf("Error: too many detection errors, aborting...");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -685,7 +685,7 @@ static bool select_only(uint8_t *CSN, uint8_t *CCNR, bool use_credit_key, bool v
|
||||
}
|
||||
|
||||
if(isOK <= 1){
|
||||
PrintAndLog("Failed to obtain CC! Aborting");
|
||||
PrintAndLog("Failed to obtain CC! Aborting...");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user