mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-13 13:20:45 +08:00
FIX: the check for formatlen was wrong.
Still missing the other formats, only 26bit in this one.
This commit is contained in:
parent
ffa306de61
commit
7aa24806f4
1 changed files with 4 additions and 1 deletions
|
@ -428,12 +428,15 @@ int CmdHIDBrute(const char *Cmd){
|
||||||
case 'A':
|
case 'A':
|
||||||
fmtlen = param_get8(Cmd, cmdp+1);
|
fmtlen = param_get8(Cmd, cmdp+1);
|
||||||
cmdp += 2;
|
cmdp += 2;
|
||||||
|
bool is_ftm_ok = FALSE;
|
||||||
uint8_t ftms[] = {26,33,34,35,37};
|
uint8_t ftms[] = {26,33,34,35,37};
|
||||||
for ( uint8_t i = 0; i < sizeof(ftms); i++){
|
for ( uint8_t i = 0; i < sizeof(ftms); i++){
|
||||||
if ( ftms[i] == fmtlen ) {
|
if ( ftms[i] == fmtlen ) {
|
||||||
errors = FALSE;
|
is_ftm_ok = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// negated
|
||||||
|
errors = !is_ftm_ok;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
PrintAndLog("Unknown parameter '%c'", param_getchar(Cmd, cmdp));
|
PrintAndLog("Unknown parameter '%c'", param_getchar(Cmd, cmdp));
|
||||||
|
|
Loading…
Reference in a new issue