Renaming some variables

This commit is contained in:
noproto 2024-08-19 07:37:21 -04:00
parent 0af28fb221
commit 08ca794b7d
2 changed files with 12 additions and 12 deletions

View file

@ -8,8 +8,8 @@ extern "C" {
#define MF_CLASSIC_CMD_AUTH_KEY_A (0x60U)
#define MF_CLASSIC_CMD_AUTH_KEY_B (0x61U)
#define MF_CLASSIC_CMD_SE_BACKDOOR_AUTH_KEY_A (0x64U)
#define MF_CLASSIC_CMD_SE_BACKDOOR_AUTH_KEY_B (0x65U)
#define MF_CLASSIC_CMD_BACKDOOR_AUTH_KEY_A (0x64U)
#define MF_CLASSIC_CMD_BACKDOOR_AUTH_KEY_B (0x65U)
#define MF_CLASSIC_CMD_READ_BLOCK (0x30U)
#define MF_CLASSIC_CMD_WRITE_BLOCK (0xA0U)
#define MF_CLASSIC_CMD_VALUE_DEC (0xC0U)

View file

@ -939,8 +939,8 @@ NfcCommand mf_classic_poller_handler_nested_analyze_backdoor(MfClassicPoller* in
// Step 2: Attempt backdoor authentication
uint8_t auth_type = (dict_attack_ctx->current_key_type == MfClassicKeyTypeB) ?
MF_CLASSIC_CMD_SE_BACKDOOR_AUTH_KEY_B :
MF_CLASSIC_CMD_SE_BACKDOOR_AUTH_KEY_A;
MF_CLASSIC_CMD_BACKDOOR_AUTH_KEY_B :
MF_CLASSIC_CMD_BACKDOOR_AUTH_KEY_A;
uint8_t auth_cmd[2] = {auth_type, block};
bit_buffer_copy_bytes(instance->tx_plain_buffer, auth_cmd, sizeof(auth_cmd));
iso14443_crc_append(Iso14443CrcTypeA, instance->tx_plain_buffer);