]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/scripts/mfkeys.lua
fix: 32bit tick timer based on TC0 and TC1 (#653)
[proxmark3-svn] / client / scripts / mfkeys.lua
index 33027d3147784ed4233f19e7df70e757342361f3..e8abd0b904e411c2e2a2d27ba6ee991f793e7dcb 100644 (file)
@@ -57,7 +57,7 @@ function checkBlock(blockNo, keys, keyType)
        while remaining > 0 do
                local n,data = remaining, nil
                if remaining > 85 then n = 85 end
-               local data = table.concat(keys,"",start,n)
+               local data = table.concat(keys, "", start, start + n - 1)
                --print("data",data)
                --print("data len", #data)
                print(("Testing block %d, keytype %d, with %d keys"):format(blockNo, keyType, n))
@@ -68,7 +68,7 @@ function checkBlock(blockNo, keys, keyType)
                                                                data = data}
                local status = checkCommand(command)
                if status then return status, blockNo end
-               start = start+n+1
+               start = start + n
                remaining = remaining - n
        end
        return nil
Impressum, Datenschutz