mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
Fix CmdT55xxBruteForce infinite loop
This commit is contained in:
parent
abddff513e
commit
ae719c3b05
1 changed files with 5 additions and 3 deletions
|
@ -1701,7 +1701,7 @@ int CmdT55xxBruteForce(const char *Cmd) {
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "Search password range [%08X -> %08X]", start_password, end_password);
|
PrintAndLogEx(INFO, "Search password range [%08X -> %08X]", start_password, end_password);
|
||||||
|
|
||||||
while ( !found || (curr <= end_password)){
|
while ( !found ){
|
||||||
|
|
||||||
printf("."); fflush(stdout);
|
printf("."); fflush(stdout);
|
||||||
|
|
||||||
|
@ -1710,13 +1710,15 @@ int CmdT55xxBruteForce(const char *Cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, true, curr)) {
|
if (!AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, true, curr)) {
|
||||||
PrintAndLogEx(WARNING, "Aquireing data from device failed. Quitting");
|
PrintAndLogEx(WARNING, "Aquiring data from device failed. Quitting");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
found = tryDetectModulation();
|
found = tryDetectModulation();
|
||||||
|
|
||||||
++curr;
|
if (curr == end_password)
|
||||||
|
break;
|
||||||
|
curr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue