From 72f6ed45eb3adfbe89ee49e30d667e83f9f93505 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 22 Jul 2017 14:00:54 +0200 Subject: [PATCH] FIX: 'script run formatMifare' https://github.com/Proxmark/proxmark3/pull/362 bad comparision value --- client/scripts/formatMifare.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scripts/formatMifare.lua b/client/scripts/formatMifare.lua index 66a61fba..a14c6b78 100644 --- a/client/scripts/formatMifare.lua +++ b/client/scripts/formatMifare.lua @@ -92,7 +92,7 @@ function GetCardInfo() numSectors = 5 elseif 0x10 == result.sak then -- NXP MIFARE Plus 2k numSectors = 32 - elseif 0x01 == sak then -- NXP MIFARE TNP3xxx 1K + elseif 0x01 == result.sak then -- NXP MIFARE TNP3xxx 1K numSectors = 16 else print("I don't know how many sectors there are on this type of card, defaulting to 16")