Skip to content

Commit

Permalink
hf mfu info: fix strong mod bit parsing
Browse files Browse the repository at this point in the history
"2" was probably referring to bit 2 == 0x04
I checked the following datasheets and STRG_MOD_EN is always at 0x04:
- UL EV1
- NTAG 213/215/216
- NTAG 213_F/216_F
  • Loading branch information
doegox committed Jan 16, 2025
1 parent 22c7ac0 commit 9c05f2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/src/cmdhfmfu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1142,8 +1142,7 @@ static int ulev1_print_configuration(uint64_t tagtype, uint8_t *data, uint8_t st
PrintAndLogEx(NORMAL, "");
PrintAndLogEx(INFO, "--- " _CYAN_("Tag Configuration"));

bool strg_mod_en = (data[0] & 2);

bool strg_mod_en = (data[0] & 0x04);
uint8_t authlim = (data[4] & 0x07);
bool nfc_cnf_prot_pwd = ((data[4] & 0x08) == 0x08);
bool nfc_cnf_en = ((data[4] & 0x10) == 0x10);
Expand Down

0 comments on commit 9c05f2c

Please sign in to comment.