From 8fbea682956072d396383c0a90913b8c4c35d3fe Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 10 Dec 2017 09:25:26 +0100 Subject: [PATCH] fix: 'script run mifare_autopwn' - out of context,... --- client/scripts/mifare_autopwn.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scripts/mifare_autopwn.lua b/client/scripts/mifare_autopwn.lua index 4f8ae1c1c..7454d62bf 100644 --- a/client/scripts/mifare_autopwn.lua +++ b/client/scripts/mifare_autopwn.lua @@ -158,7 +158,7 @@ local function main(args) print("Using key: "..key); else -- Crack it - local key, cnt + local cnt err, res = core.mfDarkside() if err == -1 then return oops("Button pressed. Aborted.") elseif err == -2 then return oops("Card is not vulnerable to Darkside attack (doesn't send NACK on authentication requests).")