mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
FIX: 'dumptoemul.lua' doesn't add the last newline in generated eml file.
FIX: 'dumptoemul-mfu.lua' doesn't add the last newline in generated eml file. FIX: 'dumptoemul-mfu.lua' correctly gets the UID from bin file, previously took wrong data.
This commit is contained in:
parent
8980e0ab66
commit
ed54dc8e17
2 changed files with 15 additions and 11 deletions
|
@ -68,10 +68,9 @@ local function convert_to_emulform(hexdata)
|
|||
end
|
||||
local ascii,i = "";
|
||||
for i = 1, string.len(hexdata),32 do
|
||||
ascii = ascii ..string.sub(hexdata,i,i+31).."\n"
|
||||
ascii = ascii..string.sub(hexdata,i,i+31).."\n"
|
||||
end
|
||||
|
||||
return string.sub(ascii,1,-1)
|
||||
return string.sub(ascii, 1, -2)
|
||||
end
|
||||
|
||||
local function main(args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue