From 88050f36fec21a2f4e526d9454aa5045ed190a54 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 26 Sep 2020 14:54:34 +0200 Subject: [PATCH] hf mfu dump - added some hints --- client/src/cmdhfmfu.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhfmfu.c b/client/src/cmdhfmfu.c index 0fcbe1796..4097ce081 100644 --- a/client/src/cmdhfmfu.c +++ b/client/src/cmdhfmfu.c @@ -1461,12 +1461,20 @@ static int CmdHF14AMfUInfo(const char *Cmd) { if (ul_auth_select(&card, tagtype, hasAuthKey, authkeyptr, pack, sizeof(pack)) == PM3_ESOFT) return PM3_ESOFT; } } - if (len < 1) PrintAndLogEx(WARNING, _YELLOW_("password not known")); + if (len < 1) { + PrintAndLogEx(WARNING, _YELLOW_("password not known")); + PrintAndLogEx(HINT, "Hint: try " _YELLOW_("`hf mfu pwdgen r`") " to get see known pwd gen algo suggestions"); + } + } else { + PrintAndLogEx(HINT, "Hint: try " _YELLOW_("`hf mfu pwdgen r`") " to get see known pwd gen algo suggestions"); } } out: DropField(); - if (locked) PrintAndLogEx(FAILED, "\nTag appears to be locked, try using the key to get more info"); + if (locked) { + PrintAndLogEx(INFO, "\nTag appears to be locked, try using the key to get more info"); + PrintAndLogEx(HINT, "Hint: try " _YELLOW_("`hf mfu pwdgen r`") " to get see known pwd gen algo suggestions"); + } PrintAndLogEx(NORMAL, ""); return PM3_SUCCESS; }