From a856ad638c718f5e890c305be0bb46bbe9a438a4 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sat, 16 Mar 2019 01:35:34 +0100 Subject: [PATCH] Adjust mifare_autopwn to latest hf mf dump --- client/scripts/mifare_autopwn.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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