From 7f6e3a7cfccea432b3f86d386a2a5c3c3f777619 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 5 Nov 2020 12:02:54 +0100 Subject: [PATCH] textual --- armsrc/iso14443a.c | 2 +- client/src/cmdlfhid.c | 3 +++ client/src/wiegand_formats.c | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index 8d91e9742..0ca42c9ee 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -161,7 +161,7 @@ void printHf14aConfig(void) { ); Dbprintf(" [r] RATS override.......%i %s%s%s", hf14aconfig.forcerats, - (hf14aconfig.forcerats == 0) ? "( " _GREEN_("No") " q follow standard " : "", + (hf14aconfig.forcerats == 0) ? "( " _GREEN_("No") " ) follow standard " : "", (hf14aconfig.forcerats == 1) ? "( " _RED_("Yes") " ) always do RATS" : "", (hf14aconfig.forcerats == 2) ? "( " _RED_("Yes") " ) always skip RATS" : "" ); diff --git a/client/src/cmdlfhid.c b/client/src/cmdlfhid.c index 5eed3a426..5757c7775 100644 --- a/client/src/cmdlfhid.c +++ b/client/src/cmdlfhid.c @@ -138,11 +138,14 @@ int demodHID(bool verbose) { wiegand_message_t packed = initialize_message_object(hi2, hi, lo); if ( HIDTryUnpack(&packed, false) == false) { + PrintAndLogEx(INFO, "raw: " _GREEN_("%08x%08x%08x"), hi2, hi, lo); printDemodBuff(0, false, false, true); } PrintAndLogEx(DEBUG, "DEBUG: HID idx: %d, Len: %zu, Printing Demod Buffer: ", idx, size); if (g_debugMode) { + PrintAndLogEx(DEBUG, "raw: " _GREEN_("%08x%08x%08x"), hi2, hi, lo); + printDemodBuff(0, false, false, false); } diff --git a/client/src/wiegand_formats.c b/client/src/wiegand_formats.c index 2e629cbb9..4e00bbfcd 100644 --- a/client/src/wiegand_formats.c +++ b/client/src/wiegand_formats.c @@ -945,7 +945,8 @@ bool HIDTryUnpack(wiegand_message_t *packed, bool ignore_parity) { ++i; } if (result == false && packed->Length) { - PrintAndLogEx(SUCCESS, "Unknown. Bit len %d", packed->Length); + PrintAndLogEx(SUCCESS, "(wiegand unpack) unknown bit len %d", packed->Length); + PrintAndLogEx(HINT, "Try 0xFFFF's http://cardinfo.barkweb.com.au/"); } return result;