From fff6d2a3ba4bd387517df9c3aaef14ec823e552e Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 1 Dec 2015 20:44:12 +0100 Subject: [PATCH] FIX: added a break if the device starts acting strange when aquirering data from tag. --- client/cmdlft55xx.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/client/cmdlft55xx.c b/client/cmdlft55xx.c index 91168a02..f034ce5a 100644 --- a/client/cmdlft55xx.c +++ b/client/cmdlft55xx.c @@ -1399,7 +1399,11 @@ int CmdT55xxBruteForce(const char *Cmd) { 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(); if ( found ) { @@ -1425,7 +1429,10 @@ int CmdT55xxBruteForce(const char *Cmd) { 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(); if (found) -- 2.39.5