mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
chg: lf t55xx brute / lf t55xx chk / lf t55xx recoverpwd - now shows help when called without params
This commit is contained in:
parent
e2e34cad93
commit
9cbfe5481b
1 changed files with 6 additions and 7 deletions
|
@ -2644,7 +2644,7 @@ static int CmdT55xxChkPwds(const char *Cmd) {
|
|||
}
|
||||
}
|
||||
|
||||
if (errors) return usage_t55xx_chk();
|
||||
if (errors || cmdp == 0) return usage_t55xx_chk();
|
||||
|
||||
/*
|
||||
// block 7, page1 = false, usepwd = false, override = false, pwd = 00000000
|
||||
|
@ -2788,11 +2788,11 @@ static int CmdT55xxBruteForce(const char *Cmd) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (start_password >= end_password) {
|
||||
return usage_t55xx_bruteforce();
|
||||
}
|
||||
|
||||
if (errors) return usage_t55xx_bruteforce();
|
||||
if (start_password >= end_password)
|
||||
errors = true;
|
||||
|
||||
if (errors || cmdp == 0) return usage_t55xx_bruteforce();
|
||||
|
||||
uint64_t t1 = msclock();
|
||||
|
||||
|
@ -2891,8 +2891,7 @@ static int CmdT55xxRecoverPW(const char *Cmd) {
|
|||
}
|
||||
}
|
||||
|
||||
if (errors) return usage_t55xx_recoverpw();
|
||||
|
||||
if (errors || cmdp == 0) return usage_t55xx_recoverpw();
|
||||
|
||||
// first try fliping each bit in the expected password
|
||||
while (bit < 32) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue