loclass, print helptxt

This commit is contained in:
iceman1001 2020-07-15 11:35:03 +02:00
commit d9571d8df7

View file

@ -2018,9 +2018,6 @@ static int CmdHFiClass_loclass(const char *Cmd) {
char fileName[FILE_PATH_SIZE] = {0}; char fileName[FILE_PATH_SIZE] = {0};
if (param_getstr(Cmd, 1, fileName, sizeof(fileName)) > 0) { if (param_getstr(Cmd, 1, fileName, sizeof(fileName)) > 0) {
return bruteforceFileNoKeys(fileName); return bruteforceFileNoKeys(fileName);
} else {
PrintAndLogEx(WARNING, "You must specify a filename");
return PM3_EFILE;
} }
} else if (opt == 't') { } else if (opt == 't') {
char opt2 = tolower(param_getchar(Cmd, 1)); char opt2 = tolower(param_getchar(Cmd, 1));
@ -2035,7 +2032,8 @@ static int CmdHFiClass_loclass(const char *Cmd) {
return PM3_ESOFT; return PM3_ESOFT;
} }
return PM3_SUCCESS;
return usage_hf_iclass_loclass();
} }
void printIclassDumpContents(uint8_t *iclass_dump, uint8_t startblock, uint8_t endblock, size_t filesize) { void printIclassDumpContents(uint8_t *iclass_dump, uint8_t startblock, uint8_t endblock, size_t filesize) {