Skip to content

Commit

Permalink
fixes ntag424
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman1001 committed Oct 30, 2023
1 parent d22d6c4 commit b0ee6ae
Show file tree
Hide file tree
Showing 6 changed files with 192 additions and 224 deletions.
5 changes: 4 additions & 1 deletion client/src/cmdhfmf.c
Original file line number Diff line number Diff line change
Expand Up @@ -3990,7 +3990,10 @@ static int CmdHF14AMfKeyBrute(const char *Cmd) {
if (cmdp == 'b') keytype = MF_KEY_B;
// key
if (param_gethex(Cmd, 2, key, 12)) return usage_hf14_keybrute();
int keylen = 0;
if (param_gethex_ex(Cmd, 2, key, &keylen) && (keylen != 12)) {
return usage_hf14_keybrute();
}
uint64_t t1 = msclock();
Expand Down
Loading

0 comments on commit b0ee6ae

Please sign in to comment.