mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
FIX: added a break if the device starts acting strange when aquirering data from tag.
This commit is contained in:
parent
060fdaf998
commit
fff6d2a3ba
1 changed files with 9 additions and 2 deletions
|
@ -1399,7 +1399,11 @@ int CmdT55xxBruteForce(const char *Cmd) {
|
||||||
PrintAndLog("Testing %08X", testpwd);
|
PrintAndLog("Testing %08X", testpwd);
|
||||||
|
|
||||||
|
|
||||||
AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, TRUE, testpwd);
|
if ( !AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, TRUE, testpwd)) {
|
||||||
|
PrintAndLog("Aquireing data from device failed. Quitting");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
found = tryDetectModulation();
|
found = tryDetectModulation();
|
||||||
|
|
||||||
if ( found ) {
|
if ( found ) {
|
||||||
|
@ -1425,7 +1429,10 @@ int CmdT55xxBruteForce(const char *Cmd) {
|
||||||
|
|
||||||
while ((!found) && (i <= end_password)){
|
while ((!found) && (i <= end_password)){
|
||||||
|
|
||||||
AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, TRUE, i);
|
if (!AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, TRUE, i)) {
|
||||||
|
PrintAndLog("Aquireing data from device failed. Quitting");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
found = tryDetectModulation();
|
found = tryDetectModulation();
|
||||||
|
|
||||||
if (found)
|
if (found)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue