projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CHG: changed to use BigBuff_Eml memory instead of big_buff_malloc.
[proxmark3-svn]
/
client
/
scripts
/
dumptoemul-mfu.lua
diff --git
a/client/scripts/dumptoemul-mfu.lua
b/client/scripts/dumptoemul-mfu.lua
index b901a2bae8c0abc5689d0fdfcbe327b80c7f19b7..83274935184229e893ff7f6cfbe3c71da7fd166c 100644
(file)
--- 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"
bin = require('bin')
example = "script run dumptoemul-mfu -i dumpdata-foobar.bin"
author = "Martin Holst Swende \n @Marshmellow"
-usage = "script run dumptoemul [-i <file>] [-o <file>]"
+usage = "script run dumptoemul
-mfu
[-i <file>] [-o <file>]"
desc =[[
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 mf
u
dump' and converts it to a format that can be used
by the emulator
Arguments:
by the emulator
Arguments:
@@
-52,10
+52,8
@@
end
local function readdump(infile)
t = infile:read("*all")
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)
len = string.len(t)
local len,hex = bin.unpack(("H%d"):format(len),t)
- --print(len,hex)
return hex
end
return hex
end
@@
-91,7
+89,7
@@
local function main(args)
-- The hex-data is now in ascii-format,
-- But first, check the uid
-- 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
output = output or (uid .. ".eml")
-- Format some linebreaks
Impressum
,
Datenschutz