From e069d740e376914c9d639630e04898e28918f1ff Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 25 Jan 2017 08:40:55 +0100 Subject: [PATCH] still wrong... --- client/scripts/hard_autopwn.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/client/scripts/hard_autopwn.lua b/client/scripts/hard_autopwn.lua index 3f2ed870..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 = tonumber(key,16) + keyA = utils.ConvertHexToAscii(key) else local err, foundkey = core.hardnested(blockno, keytype, key, trgblockno, tostring(targetkeytype), trgkey, 0,0,0,0) foundkey = foundkey or "" -- 2.39.5