-- 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))
-- 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 ""