diff --git a/client/scripts/mifare_autopwn.lua b/client/scripts/mifare_autopwn.lua index b99488d96..9a94b7a98 100644 --- a/client/scripts/mifare_autopwn.lua +++ b/client/scripts/mifare_autopwn.lua @@ -107,7 +107,7 @@ local function dump(uid, numsectors) if utils.confirm('Do you wish to create a memory dump of tag?') then - local dumpfile = 'hf-mf-'..uid..'-data.bin' + local dumpfile = 'hf-mf-'..uid..'-data' local dmp = ('hf mf dump %s f %s'):format(typ, dumpfile) core.console(dmp) @@ -115,14 +115,10 @@ local function dump(uid, numsectors) -- Save the global args, those are *our* arguments local myargs = args -- Set the arguments for htmldump script - args =('-i %s -o %s.html'):format(dumpfile, uid) + args =('-i %s.bin -o %s.html'):format(dumpfile, dumpfile) -- call it require('htmldump') - -- dump to emulator - args =('-i %s -o %s.eml'):format(dumpfile, uid) - require('dumptoemul') - -- Set back args. Not that it's used, just for the karma... args = myargs end