X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/ab7fdfcbed90cb96f281b13c079741df099ce6d2..8bdb6043b09a32998a2ea16e8aa14bdc815ca7ca:/client/scripts/formatMifare.lua?ds=inline diff --git a/client/scripts/formatMifare.lua b/client/scripts/formatMifare.lua index 66a61fba..56397acd 100644 --- a/client/scripts/formatMifare.lua +++ b/client/scripts/formatMifare.lua @@ -71,7 +71,7 @@ end -- -- Read information from a card function GetCardInfo() - result, err = lib14a.read1443a(false) + result, err = lib14a.read1443a(false, true) if not result then print(err) return @@ -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")