Fix length of credential in hf iclass sam

Signed-off-by: Eric Betts <bettse@fastmail.fm>
This commit is contained in:
Eric Betts 2024-08-15 21:19:16 -07:00 committed by GitHub
commit e9ff568833
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4990,7 +4990,7 @@ static int CmdHFiClassSAM(const char *Cmd) {
PrintAndLogEx(NORMAL, "");
PrintAndLogEx(INFO, "Wiegand decode");
wiegand_message_t packed = initialize_message_object(top, mid, bot, 0);
wiegand_message_t packed = initialize_message_object(top, mid, bot, strlen(binstr));
HIDTryUnpack(&packed);
PrintAndLogEx(NORMAL, "");