X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/b946d5f7f9380f6fb4966d675aacb4809b8124ba..2e78fbaa1d62a89689fd12048db7e0b6be696a5e:/client/scripts/hard_autopwn.lua?ds=inline diff --git a/client/scripts/hard_autopwn.lua b/client/scripts/hard_autopwn.lua index 1ba8b512..d320e1a6 100644 --- a/client/scripts/hard_autopwn.lua +++ b/client/scripts/hard_autopwn.lua @@ -127,13 +127,11 @@ function main(args) -- Turn off Debug local cmdSetDbgOff = "hf mf dbg 0" core.console( cmdSetDbgOff) + core.clearCommandBuffer() -- identify tag result, err = lib14a.read1443a(false) - if not result then - return oops(err) - end - core.clearCommandBuffer() - + if not result then return oops(err) end + -- Show tag info print((' Found tag %s'):format(result.name)) @@ -168,7 +166,7 @@ function main(args) -- or actually blockNo and keytype -- just try default for now if sector == 1 and targetkeytype == 0 then - keyA = key + keyA = utils.ConvertHexToAscii(key) else local err, foundkey = core.hardnested(blockno, keytype, key, trgblockno, tostring(targetkeytype), trgkey, 0,0,0,0) foundkey = foundkey or ""