From b149fdc67bf9b3162f6176313904646f36bb4581 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 24 Jul 2017 13:00:40 +0200 Subject: [PATCH] FIX: 'script run mifare_autopwn' some print statements FIX: 'script run mfkeys' correct author, added copyright --- client/scripts/mfkeys.lua | 3 +-- client/scripts/mifare_autopwn.lua | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/client/scripts/mfkeys.lua b/client/scripts/mfkeys.lua index a8d40a50d..9c2b3dbad 100644 --- a/client/scripts/mfkeys.lua +++ b/client/scripts/mfkeys.lua @@ -20,7 +20,7 @@ local utils = require('utils') example =[[ script run mfkeys ]] -author = "Iceman" +author = "Holiman" usage = "script run mfkeys" desc = ("This script implements Mifare check keys. It utilises a large list of default keys (currently %d keys).\ If you want to add more, just put them inside /lualibs/mf_default_keys.lua\n"):format(#keylist) .. @@ -101,7 +101,6 @@ local function checkBlock(blockno, testkeys, keytype) end -- A function to display the results --- TODO: iceman 2016, still screws up output when a key is not found. local function display_results(keys) local sector, keyA, keyB, succA, succB print('') diff --git a/client/scripts/mifare_autopwn.lua b/client/scripts/mifare_autopwn.lua index eb93669c7..098578b62 100644 --- a/client/scripts/mifare_autopwn.lua +++ b/client/scripts/mifare_autopwn.lua @@ -6,7 +6,7 @@ example = "script run mifare_autopwn" author = "Martin Holst Swende" desc = [[ -This is a which automates cracking and dumping mifare classic cards. It sets itself into +This is a script which automates cracking and dumping mifare classic cards. It sets itself into 'listening'-mode, after which it cracks and dumps any mifare classic card that you place by the device. @@ -149,9 +149,9 @@ end function nested(key,sak) local typ = 1 - if 0x18 == sak then --NXP MIFARE Classic 4k | Plus 4k + if 0x18 == sak then --NXP MIFARE Classic 4k | Plus 4k | Ev1 4k typ = 4 - elseif 0x08 == sak then -- NXP MIFARE CLASSIC 1k | Plus 2k + elseif 0x08 == sak then -- NXP MIFARE CLASSIC 1k | Plus 2k | Ev1 1K typ= 1 elseif 0x09 == sak then -- NXP MIFARE Mini 0.3k typ = 0 @@ -186,7 +186,7 @@ end -- The main entry point function main(args) - local verbose, exit,res,uid,err,_,sak + local verbose, exit, res, uid, err, _, sak local seen_uids = {} local print_message = true -- Read the parameters