From 416770c17052d39ad46688ab2f907a3550228c4e Mon Sep 17 00:00:00 2001 From: Piotr Rzeszut Date: Mon, 2 Dec 2024 22:43:05 +0100 Subject: [PATCH] Remove support for 2k MIFARE tags, as it will be better to add this together with other variants of MIFARE Plus in the future --- client/luascripts/hf_mf_ultimatecard.lua | 30 +++--------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/client/luascripts/hf_mf_ultimatecard.lua b/client/luascripts/hf_mf_ultimatecard.lua index 4e65f1942..e3529e366 100644 --- a/client/luascripts/hf_mf_ultimatecard.lua +++ b/client/luascripts/hf_mf_ultimatecard.lua @@ -61,9 +61,9 @@ arguments = [[ 9 = Mifare 4k S70 10-byte | 23 = NTAG I2C 2K PLUS *** 10 = UL - NOT WORKING FULLY | 24 = NTAG 213F *** 11 = UL-C - NOT WORKING FULLY | 25 = NTAG 216F - 12 = UL EV1 48b | 26 = Mifare 2k S50 4-byte - 13 = UL EV1 128b | 27 = Mifare 2k S50 7-byte - *** 14 = UL Plus - NOT WORKING YET | 28 = Mifare 2k S50 10-byte + 12 = UL EV1 48b | + 13 = UL EV1 128b | + *** 14 = UL Plus - NOT WORKING YET | -p NTAG password (8 hexsymbols), set NTAG password on tag. -a NTAG pack ( 4 hexsymbols), set NTAG pack on tag. @@ -717,30 +717,6 @@ local function set_type(tagtype) lib14a.disconnect() write_uid('04112233445566778899') write_maxRWblk('3F') - -- Setting Mifare 2k S50 4-byte - elseif tagtype == 26 then - print('Setting: Ultimate Magic card to Mifare 2k S50 4-byte') - connect() - send("CF".._key.."F000000000000002000978009102DABC19101011121314151604000800") - lib14a.disconnect() - write_uid('04112233') - write_maxRWblk('7F') - -- Setting Mifare 2k S50 7-byte - elseif tagtype == 27 then - print('Setting: Ultimate Magic card to Mifare 2k S50 7-byte') - connect() - send("CF".._key.."F000010000000002000978009102DABC19101011121314151644000800") - lib14a.disconnect() - write_uid('04112233445566') - write_maxRWblk('7F') - -- Setting Mifare 2k S50 10-byte - elseif tagtype == 28 then - print('Setting: Ultimate Magic card to Mifare 2k S50 10-byte') - connect() - send("CF".._key.."F000020000000002000978009102DABC19101011121314151684000800") - lib14a.disconnect() - write_uid('04112233445566778899') - write_maxRWblk('7F') -- Setting Mifare 4k S70 4-byte elseif tagtype == 7 then print('Setting: Ultimate Magic card to Mifare 4k S70 4-byte')