From: iceman1001 Date: Sat, 17 Oct 2015 12:35:04 +0000 (+0200) Subject: FIX: "abort trap 6" error when runing the tnp3sim.lua script was because the CMD_MIF... X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/f14c9bf915f883b5dfa8645dcaf1ded8d5978b90 FIX: "abort trap 6" error when runing the tnp3sim.lua script was because the CMD_MIFARE_EML_MEMSET needs to sent the bytewitdh now with recent changes in code to deal with different sizes in emulatormemory. the third argument should be 16 instead of 0. --- diff --git a/client/scripts/tnp3sim.lua b/client/scripts/tnp3sim.lua index b6821606..11b268dd 100644 --- a/client/scripts/tnp3sim.lua +++ b/client/scripts/tnp3sim.lua @@ -220,11 +220,9 @@ local function LoadEmulator(blocks) end end - cmd = Command:new{cmd = cmds.CMD_MIFARE_EML_MEMSET, arg1 = _ ,arg2 = 1,arg3 = 0, data = blockdata} + cmd = Command:new{cmd = cmds.CMD_MIFARE_EML_MEMSET, arg1 = _ ,arg2 = 1,arg3 = 16, data = blockdata} local err = core.SendCommand(cmd:getBytes()) - if err then - return err - end + if err then return err end end io.write('\n') end