From 2722655658a05f43f5244d1fd6fb4fd0a68f142b Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Mon, 13 Dec 2021 02:58:03 +0100 Subject: [PATCH] fulltext: fix bug triggering session log --- client/src/cmdparser.c | 3 ++- doc/commands.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/cmdparser.c b/client/src/cmdparser.c index 4494babaf..100de37f3 100644 --- a/client/src/cmdparser.c +++ b/client/src/cmdparser.c @@ -181,13 +181,14 @@ void CmdsHelp(const command_t Commands[]) { int i = 0; while (Commands[i].Name) { if (Commands[i].IsAvailable()) { + uint8_t old_printAndLog = g_printAndLog; g_printAndLog = PRINTANDLOG_PRINT; if (Commands[i].Name[0] == '-' || Commands[i].Name[0] == ' ') { PrintAndLogEx(NORMAL, "%-16s %s", Commands[i].Name, Commands[i].Help); } else { PrintAndLogEx(NORMAL, _GREEN_("%-16s")" %s", Commands[i].Name, Commands[i].Help); } - g_printAndLog = PRINTANDLOG_PRINT | PRINTANDLOG_LOG; + g_printAndLog = old_printAndLog; } ++i; } diff --git a/doc/commands.json b/doc/commands.json index 8ab52f271..15431e29b 100644 --- a/doc/commands.json +++ b/doc/commands.json @@ -976,7 +976,7 @@ }, "help": { "command": "help", - "description": "help use ` help` for details of a command prefs { edit client/device preferences... } -------- ----------------------- technology ----------------------- analyse { analyse utils... } data { plot window / data buffer manipulation... } emv { emv iso-14443 / iso-7816... } hf { high frequency commands... } hw { hardware commands... } lf { low frequency commands... } nfc { nfc commands... } reveng { crc calculations from reveng software... } smart { smart card iso-7816 commands... } script { scripting commands... } trace { trace manipulation... } wiegand { wiegand format manipulation... } -------- ----------------------- general ----------------------- clear clear screen hints turn hints on / off msleep add a pause in milliseconds rem add a text line in log file quit exit exit program [=] session log /home/phil/.proxmark3/logs/log_20211212.txt --------------------------------------------------------------------------------------- auto available offline: no run lf search / hf search / data plot / data save", + "description": "help use ` help` for details of a command prefs { edit client/device preferences... } -------- ----------------------- technology ----------------------- analyse { analyse utils... } data { plot window / data buffer manipulation... } emv { emv iso-14443 / iso-7816... } hf { high frequency commands... } hw { hardware commands... } lf { low frequency commands... } nfc { nfc commands... } reveng { crc calculations from reveng software... } smart { smart card iso-7816 commands... } script { scripting commands... } trace { trace manipulation... } wiegand { wiegand format manipulation... } -------- ----------------------- general ----------------------- clear clear screen hints turn hints on / off msleep add a pause in milliseconds rem add a text line in log file quit exit exit program --------------------------------------------------------------------------------------- auto available offline: no run lf search / hf search / data plot / data save", "notes": [ "auto" ], @@ -10041,6 +10041,6 @@ "metadata": { "commands_extracted": 589, "extracted_by": "PM3Help2JSON v1.00", - "extracted_on": "2021-12-12T23:34:36" + "extracted_on": "2021-12-13T01:57:16" } } \ No newline at end of file