chg: next batch of scripts

This commit is contained in:
iceman1001
2019-04-28 19:26:26 +02:00
parent a5ba5a99e8
commit 02c2ea5a15
8 changed files with 184 additions and 135 deletions

View File

@@ -131,7 +131,8 @@ local function main(args)
-- Turn off Debug
local cmdSetDbgOff = "hf mf dbg 0"
core.console( cmdSetDbgOff)
utils.Sleep(0.5)
result, err = lib14a.read(false, true)
if not result then return oops(err) end
@@ -166,7 +167,7 @@ local function main(args)
local block0, block1
-- Read block 0
dbg('Reading block 0')
cmd = Command:newMIX{cmd = cmds.CMD_MIFARE_READBL, data = keyA}
cmd = Command:newMIX{cmd = cmds.CMD_MIFARE_READBL, arg1 = 0, data = keyA}
block0, err = getblockdata(cmd:sendMIX(false))
if not block0 then return oops(err) end