From 64d08de6a63c0ccd174f58bac8d21198a0911fb0 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 11 Dec 2019 15:56:36 +0100 Subject: [PATCH] textual --- client/cmdhw.c | 24 +++++++++++------------- client/proxmark3.c | 5 ++--- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/client/cmdhw.c b/client/cmdhw.c index 5eb6c7100..3c5e65f17 100644 --- a/client/cmdhw.c +++ b/client/cmdhw.c @@ -86,7 +86,7 @@ static void lookupChipID(uint32_t iChipID, uint32_t mem_used) { char asBuff[120]; memset(asBuff, 0, sizeof(asBuff)); uint32_t mem_avail = 0; - PrintAndLogEx(NORMAL, "\n [ Hardware ] "); + PrintAndLogEx(NORMAL, "\n " _YELLOW_("[ Hardware ]")); switch (iChipID) { case 0x270B0A40: @@ -447,13 +447,13 @@ static int CmdSetDivisor(const char *Cmd) { uint8_t arg = param_get8ex(Cmd, 0, 95, 10); if (arg < 19) { - PrintAndLogEx(ERR, "divisor must be between 19 and 255"); + PrintAndLogEx(ERR, "divisor must be between" _YELLOW_("19") " and " _YELLOW_("255") ); return PM3_EINVARG; } // 12 000 000 (12MHz) clearCommandBuffer(); SendCommandNG(CMD_LF_SET_DIVISOR, (uint8_t *)&arg, sizeof(arg)); - PrintAndLogEx(SUCCESS, "Divisor set, expected %.1f kHz", ((double)12000 / (arg + 1))); + PrintAndLogEx(SUCCESS, "Divisor set, expected " _YELLOW_("%.1f")" kHz", ((double)12000 / (arg + 1))); return PM3_SUCCESS; } @@ -514,11 +514,11 @@ static int CmdStatus(const char *Cmd) { static int CmdTia(const char *Cmd) { (void)Cmd; // Cmd is not used so far clearCommandBuffer(); - PrintAndLogEx(INFO, "Triggering new Timing Interval Acquisition..."); + PrintAndLogEx(INFO, "Triggering new Timing Interval Acquisition (TIA)..."); PacketResponseNG resp; SendCommandNG(CMD_TIA, NULL, 0); if (WaitForResponseTimeout(CMD_TIA, &resp, 2000) == false) - PrintAndLogEx(WARNING, "Tia command failed. You probably need to unplug the Proxmark3."); + PrintAndLogEx(WARNING, "TIA command failed. You probably need to unplug the Proxmark3."); PrintAndLogEx(INFO, "TIA done."); return PM3_SUCCESS; } @@ -528,7 +528,7 @@ static int CmdPing(const char *Cmd) { if (len > PM3_CMD_DATA_SIZE) len = PM3_CMD_DATA_SIZE; if (len) { - PrintAndLogEx(INFO, "Ping sent with payload len=%d", len); + PrintAndLogEx(INFO, "Ping sent with payload len = %d", len); } else { PrintAndLogEx(INFO, "Ping sent"); } @@ -702,26 +702,24 @@ void pm3_version(bool verbose, bool oneliner) { SendCommandNG(CMD_VERSION, NULL, 0); if (WaitForResponseTimeout(CMD_VERSION, &resp, 1000)) { - PrintAndLogEx(NORMAL, "\n" _BLUE_(" [ Proxmark3 RFID instrument ]") "\n"); - PrintAndLogEx(NORMAL, "\n [ CLIENT ]"); + PrintAndLogEx(NORMAL, "\n " _YELLOW_("[ Proxmark3 RFID instrument ]")); + PrintAndLogEx(NORMAL, "\n " _YELLOW_("[ CLIENT ]")); PrintAndLogEx(NORMAL, " client: RRG/Iceman"); // TODO version info? PrintAndLogEx(NORMAL, " compiled with " PM3CLIENTCOMPILER __VERSION__ PM3HOSTOS PM3HOSTARCH); -//#if PLATFORM == PM3RDV4 if (IfPm3Flash() == false && IfPm3Smartcard() == false && IfPm3FpcUsartHost() == false) { - PrintAndLogEx(NORMAL, "\n [ PROXMARK3 ]"); + PrintAndLogEx(NORMAL, "\n " _YELLOW_("[ PROXMARK3 ]")); } else { - PrintAndLogEx(NORMAL, "\n [ PROXMARK3 RDV4 ]"); + PrintAndLogEx(NORMAL, "\n " _YELLOW_("[ PROXMARK3 RDV4 ]")); PrintAndLogEx(NORMAL, " external flash: %s", IfPm3Flash() ? _GREEN_("present") : _YELLOW_("absent")); PrintAndLogEx(NORMAL, " smartcard reader: %s", IfPm3Smartcard() ? _GREEN_("present") : _YELLOW_("absent")); - PrintAndLogEx(NORMAL, "\n [ PROXMARK3 RDV4 Extras ]"); + PrintAndLogEx(NORMAL, "\n " _YELLOW_("[ PROXMARK3 RDV4 Extras ]")); PrintAndLogEx(NORMAL, " FPC USART for BT add-on support: %s", IfPm3FpcUsartHost() ? _GREEN_("present") : _YELLOW_("absent")); if (IfPm3FpcUsartDevFromUsb()) { PrintAndLogEx(NORMAL, " FPC USART for developer support: %s", _GREEN_("present")); } } -//#endif PrintAndLogEx(NORMAL, ""); diff --git a/client/proxmark3.c b/client/proxmark3.c index 7cefc6638..c28a93396 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -33,14 +33,14 @@ static void showBanner(void) { PrintAndLogEx(NORMAL, "\n"); #if defined(__linux__) || (__APPLE__) || (_WIN32) - PrintAndLogEx(NORMAL, " " _BLUE_("██████╗ ███╗ ███╗ ████╗ ") " ...iceman repo"); + PrintAndLogEx(NORMAL, " " _BLUE_("██████╗ ███╗ ███╗ ████╗ ")); PrintAndLogEx(NORMAL, " " _BLUE_("██╔══██╗████╗ ████║ ══█║")); PrintAndLogEx(NORMAL, " " _BLUE_("██████╔╝██╔████╔██║ ████╔╝")); PrintAndLogEx(NORMAL, " " _BLUE_("██╔═══╝ ██║╚██╔╝██║ ══█║") " iceman@icesql.net"); PrintAndLogEx(NORMAL, " " _BLUE_("██║ ██║ ╚═╝ ██║ ████╔╝") " https://github.com/rfidresearchgroup/proxmark3/"); PrintAndLogEx(NORMAL, " " _BLUE_("╚═╝ ╚═╝ ╚═╝ ╚═══╝ ") "pre-release v4.0"); #else - PrintAndLogEx(NORMAL, " ======. ===. ===. ====. ...iceman repo"); + PrintAndLogEx(NORMAL, " ======. ===. ===. ====."); PrintAndLogEx(NORMAL, " ==...==.====. ====. ..=."); PrintAndLogEx(NORMAL, " ======..==.====.==. ====.."); PrintAndLogEx(NORMAL, " ==..... ==..==..==. ..=. iceman@icesql.net"); @@ -52,7 +52,6 @@ static void showBanner(void) { // printf("\nMonero: 43mNJLpgBVaTvyZmX9ajcohpvVkaRy1kbZPm8tqAb7itZgfuYecgkRF36rXrKFUkwEGeZedPsASRxgv4HPBHvJwyJdyvQuP"); PrintAndLogEx(NORMAL, ""); fflush(stdout); - g_printAndLog = PRINTANDLOG_PRINT | PRINTANDLOG_LOG; }