mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
chg: next batch of scripts
This commit is contained in:
parent
a5ba5a99e8
commit
02c2ea5a15
8 changed files with 184 additions and 135 deletions
|
@ -235,7 +235,6 @@ local function LoadEmulator(uid, blocks)
|
|||
local key = md5.sumhexa(baseStr)
|
||||
local enc = core.aes128_encrypt(key, blockdata)
|
||||
blockdata = utils.ConvertAsciiToHex(enc)
|
||||
io.write( _..',')
|
||||
end
|
||||
else
|
||||
-- add keys if not existing..
|
||||
|
@ -243,6 +242,9 @@ local function LoadEmulator(uid, blocks)
|
|||
blockdata = AddKey(keys, _, blockdata)
|
||||
end
|
||||
end
|
||||
|
||||
io.write( _..',')
|
||||
io.flush()
|
||||
core.clearCommandBuffer()
|
||||
cmd = Command:newMIX{cmd = cmds.CMD_MIFARE_EML_MEMSET, arg1 = _ ,arg2 = 1,arg3 = 16, data = blockdata}
|
||||
local err, msg = cmd:sendMIX(true)
|
||||
|
@ -368,6 +370,7 @@ local function main(args)
|
|||
-- Turn off Debug
|
||||
local cmdSetDbgOff = 'hf mf dbg 0'
|
||||
core.console( cmdSetDbgOff)
|
||||
utils.Sleep(0.5)
|
||||
|
||||
-- Load dump.bin file
|
||||
print( ('Load data from %s'):format(inputTemplate))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue