added a new command to format a MFC tag as NFC with NDEF empty message

This commit is contained in:
iceman1001 committed 2022-10-16 17:45:46 +02:00
1 parent 250fdedeac
commit 885a43aadb
5 files changed
+238 -22

No files matched your search

+4
View File
@@ -21,6 +21,7 @@
#include "common.h"
#define MFKEY_SIZE 6
#define MFBLOCK_SIZE 16
static const uint64_t g_mifare_default_keys[] = {
@@ -70,7 +71,10 @@ static const uint64_t g_mifare_default_keys[] = {
0x199404281998, // NSP B
};
static const uint8_t g_mifare_default_key[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
static const uint8_t g_mifare_mad_key[] = {0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5};
static const uint8_t g_mifare_mad_key_b[] = {0x89, 0xEC, 0xA9, 0x7F, 0x8C, 0x2A};
static const uint8_t g_mifare_ndef_key[] = {0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7};
static const uint8_t g_mifarep_mad_key[] = {0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7};
static const uint8_t g_mifarep_ndef_key[] = {0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7, 0xd3, 0xf7};