]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: on a slow usb connection it seems the pingcmd which stops the bruteforce on...
authoriceman1001 <iceman@iuse.se>
Wed, 10 Aug 2016 14:23:59 +0000 (16:23 +0200)
committericeman1001 <iceman@iuse.se>
Wed, 10 Aug 2016 14:23:59 +0000 (16:23 +0200)
client/cmdlfawid.c

index a304cf7bab6349977ecf3b8ffc5194310a2dd7a6..2334e3e3321ffba7ded59066a8ae37d167f22650 100644 (file)
@@ -104,8 +104,9 @@ static bool sendTry(uint8_t fmtlen, uint32_t fc, uint32_t cn, uint32_t delay, ui
 static int sendPing(){
        UsbCommand resp;
        UsbCommand ping = {CMD_PING};
-       clearCommandBuffer();
-       SendCommand(&ping);
+       clearCommandBuffer(); SendCommand(&ping);
+       clearCommandBuffer(); SendCommand(&ping);
+       clearCommandBuffer(); SendCommand(&ping);
        if (WaitForResponseTimeout(CMD_ACK, &resp, 1000)) {
                PrintAndLog("aborted via keyboard!");
                return 0;
@@ -374,7 +375,7 @@ int CmdAWIDBrute(const char *Cmd){
                
                // Do one down  (if cardnumber is given)
                if ( cn > 1 )
-                       if ( down > 0 )
+                       if ( down > 1 )
                                if ( !sendTry(fmtlen, fc, --down, delay, bs, size)) return 1;
        }
        return 0;
Impressum, Datenschutz