mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
Minor hf iclass configcard fixes
Fixed error messaging that was swapped between card key and keyroll key
This commit is contained in:
parent
a6c2535e88
commit
480b632528
1 changed files with 2 additions and 2 deletions
|
@ -5044,7 +5044,7 @@ static int CmdHFiClassConfigCard(const char *Cmd) {
|
||||||
memcpy(card_key, iClass_Key_Table[card_kidx], 8);
|
memcpy(card_key, iClass_Key_Table[card_kidx], 8);
|
||||||
PrintAndLogEx(SUCCESS, "Using card key[%d] " _GREEN_("%s"), card_kidx, sprint_hex(iClass_Key_Table[card_kidx], 8));
|
PrintAndLogEx(SUCCESS, "Using card key[%d] " _GREEN_("%s"), card_kidx, sprint_hex(iClass_Key_Table[card_kidx], 8));
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(ERR, "--krki number is invalid");
|
PrintAndLogEx(ERR, "--ki number is invalid");
|
||||||
return PM3_EINVARG;
|
return PM3_EINVARG;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5057,7 +5057,7 @@ static int CmdHFiClassConfigCard(const char *Cmd) {
|
||||||
memcpy(keyroll_key, iClass_Key_Table[kidx], 8);
|
memcpy(keyroll_key, iClass_Key_Table[kidx], 8);
|
||||||
PrintAndLogEx(SUCCESS, "Using keyroll key[%d] " _GREEN_("%s"), kidx, sprint_hex(iClass_Key_Table[kidx], 8));
|
PrintAndLogEx(SUCCESS, "Using keyroll key[%d] " _GREEN_("%s"), kidx, sprint_hex(iClass_Key_Table[kidx], 8));
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(ERR, "--ki number is invalid");
|
PrintAndLogEx(ERR, "--krki number is invalid");
|
||||||
return PM3_EINVARG;
|
return PM3_EINVARG;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue