From: AnthraX1 Date: Fri, 30 Mar 2018 15:54:45 +0000 (+1100) Subject: Fix empty key list bug in mfkeys.lua (#579) X-Git-Tag: v3.1.0~61 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/53c7a7053d06af60388507c7d38252af1b96696a?hp=3316fc1d115ef81d039a0d3760bbc71942775ac9 Fix empty key list bug in mfkeys.lua (#579) When input key list size is greater than 85, table.concat() returns empty because the last parameter is the end offset not the increment value. --- diff --git a/client/scripts/mfkeys.lua b/client/scripts/mfkeys.lua index 33027d31..671ce03d 100644 --- a/client/scripts/mfkeys.lua +++ b/client/scripts/mfkeys.lua @@ -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))