X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/f3cfe428f819157da31e4fd41e8a23c838d8a574..8b2a5d400a4b49fa5a62d5eb5af62fb4ff78f502:/client/scripts/dumptoemul-mfu.lua diff --git a/client/scripts/dumptoemul-mfu.lua b/client/scripts/dumptoemul-mfu.lua index b901a2ba..83274935 100644 --- a/client/scripts/dumptoemul-mfu.lua +++ b/client/scripts/dumptoemul-mfu.lua @@ -4,9 +4,9 @@ getopt = require('getopt') bin = require('bin') example = "script run dumptoemul-mfu -i dumpdata-foobar.bin" author = "Martin Holst Swende \n @Marshmellow" -usage = "script run dumptoemul [-i ] [-o ]" +usage = "script run dumptoemul-mfu [-i ] [-o ]" desc =[[ -This script takes a dumpfile from 'hf mf dump' and converts it to a format that can be used +This script takes a dumpfile from 'hf mfu dump' and converts it to a format that can be used by the emulator Arguments: @@ -52,10 +52,8 @@ end local function readdump(infile) t = infile:read("*all") - --print(string.len(t)) len = string.len(t) local len,hex = bin.unpack(("H%d"):format(len),t) - --print(len,hex) return hex end @@ -91,7 +89,7 @@ local function main(args) -- The hex-data is now in ascii-format, -- But first, check the uid - local uid = string.sub(dumpdata,1,8) + local uid = string.sub(dumpdata,1+48,8) output = output or (uid .. ".eml") -- Format some linebreaks