Merge pull request #2450 from bettse/patch-1

Fix length of credential in `hf iclass sam`
This commit is contained in:
Iceman 2024-08-16 12:45:08 +02:00 committed by GitHub
commit 09f097b936
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, "");