mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 06:13:51 -07:00
lf t55xx wipe - better handling of wrong length pwd
This commit is contained in:
parent
92b1ccc935
commit
ff98bb047d
1 changed files with 3 additions and 2 deletions
|
@ -2895,9 +2895,10 @@ static int CmdT55xxWipe(const char *Cmd) {
|
||||||
res = arg_get_u32_hexstr_def(ctx, 2, 0x51243648, &password);
|
res = arg_get_u32_hexstr_def(ctx, 2, 0x51243648, &password);
|
||||||
if (res) {
|
if (res) {
|
||||||
usepwd = true;
|
usepwd = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (usepwd && res == 2)
|
if (res == 2) {
|
||||||
PrintAndLogEx(WARNING, "Password should be 4 bytes, using default pwd");
|
PrintAndLogEx(WARNING, "Password should be 4 bytes, using default pwd");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Q5 = arg_get_lit(ctx, 3);
|
bool Q5 = arg_get_lit(ctx, 3);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue