X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/d1e197e9ec44affdf3ad9ef0ea6a221d0c30aa6d..966c111e8c8e45e624465502d0ee405ebda9a39c:/client/scripts/hard.lua diff --git a/client/scripts/hard.lua b/client/scripts/hard.lua index 93d07a72..1d817772 100644 --- a/client/scripts/hard.lua +++ b/client/scripts/hard.lua @@ -156,11 +156,11 @@ function main(args) local succB = 1 local errA, keyA = core.hardnested(blockno, keytype, key, trgblockno, '0', trgkey, 0,0,0,0) keyA = keyA or "" - if errA > 0 then succA = 0 end + if errA == nil or errA > 0 then succA = 0 end local errB, keyB = core.hardnested(blockno, keytype, key, trgblockno, '1', trgkey, 0,0,0,0) keyB = keyB or "" - if errB > 0 then succB = 0 end + if errB == nil or errB > 0 then succB = 0 end result[sector] = { succA, succB, utils.ConvertAsciiToHex(keyA), utils.ConvertAsciiToHex(keyB) } -- Check if user aborted