adapt magic detection and textual output. Hf mf info - now uses found keys to send for magic detection

This commit is contained in:
iceman1001 2023-12-30 23:08:58 +01:00
commit 1f4f5febae
7 changed files with 122 additions and 115 deletions

View file

@ -1732,8 +1732,14 @@ static void PacketReceived(PacketCommandNG *packet) {
break;
}
case CMD_HF_MIFARE_CIDENT: {
bool is_mfc = packet->data.asBytes[0];
MifareCIdent(is_mfc);
struct p {
uint8_t is_mfc;
uint8_t key[6];
} PACKED;
struct p *payload = (struct p *) packet->data.asBytes;
MifareCIdent(payload->is_mfc, payload->key);
break;
}
// Gen 3 magic cards