]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: added a break if the device starts acting strange when aquirering data from...
authoriceman1001 <iceman@iuse.se>
Tue, 1 Dec 2015 19:44:12 +0000 (20:44 +0100)
committericeman1001 <iceman@iuse.se>
Tue, 1 Dec 2015 19:44:12 +0000 (20:44 +0100)
client/cmdlft55xx.c

index 91168a025ff721029c0bc897ffb5a420f45cb666..f034ce5a042ab15a67e5a5ff8da79aa32789f0d6 100644 (file)
@@ -1399,7 +1399,11 @@ int CmdT55xxBruteForce(const char *Cmd) {
                        PrintAndLog("Testing %08X", testpwd);\r
                        \r
                        \r
-                       AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, TRUE, testpwd);\r
+                       if ( !AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, TRUE, testpwd)) {\r
+                               PrintAndLog("Aquireing data from device failed. Quitting");\r
+                               return 0;\r
+                       }\r
+                       \r
                        found = tryDetectModulation();\r
 \r
                        if ( found ) {\r
@@ -1425,7 +1429,10 @@ int CmdT55xxBruteForce(const char *Cmd) {
 \r
     while ((!found) && (i <= end_password)){\r
 \r
-               AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, TRUE, i);\r
+               if (!AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, TRUE, i)) {\r
+                       PrintAndLog("Aquireing data from device failed. Quitting");\r
+                       return 0;\r
+               }\r
                found = tryDetectModulation();\r
         \r
                if (found)\r
Impressum, Datenschutz