X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/0de8e3874d6524379550a50a4d9c29faf2d239ea..6648776f2acd426647fa3d1e8c95a5ab1432c434:/client/scripts/dumptoemul-mfu.lua diff --git a/client/scripts/dumptoemul-mfu.lua b/client/scripts/dumptoemul-mfu.lua index bdcc667b..1236f173 100644 --- a/client/scripts/dumptoemul-mfu.lua +++ b/client/scripts/dumptoemul-mfu.lua @@ -2,12 +2,11 @@ -- Have a look there for further details getopt = require('getopt') bin = require('bin') - -example = "script run dumptoemul -i dumpdata-foobar.bin" -author = "Martin Holst Swende" -usage = "script run dumptoemul [-i ] [-o ]" +example = "script run dumptoemul-mfu -i dumpdata-foobar.bin" +author = "Martin Holst Swende \n @Marshmellow" +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: @@ -16,11 +15,6 @@ Arguments: -o Specifies the output file. If omitted, .eml is used. ]] - -------------------------------- --- Some utilities -------------------------------- - --- -- A debug printout-function function dbg(args) @@ -34,11 +28,11 @@ function oops(err) print("ERROR: ",err) end - --- -- Usage help function help() print(desc) + print(author) print("Example usage") print(example) end @@ -97,7 +91,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