diff --git a/client/mifarehost.c b/client/mifarehost.c index 692abfa36..dcb1f8e27 100644 --- a/client/mifarehost.c +++ b/client/mifarehost.c @@ -484,8 +484,9 @@ int mfCGetBlock(uint8_t blockNo, uint8_t *data, uint8_t params) { UsbCommand resp; if (WaitForResponseTimeout(CMD_ACK, &resp, 1500)) { isOK = resp.arg[0] & 0xff; + if (!isOK) + return 2; memcpy(data, resp.d.asBytes, 16); - if (!isOK) return 2; } else { PrintAndLog("Command execute timeout"); return 1; diff --git a/client/proxmark3.c b/client/proxmark3.c index 7f67cfef4..d25dd5088 100644 --- a/client/proxmark3.c +++ b/client/proxmark3.c @@ -65,12 +65,12 @@ byte_t* prx = rx; #if defined(__linux__) static void showBanner(void){ printf("\n\n"); - printf("██████╗ ███╗ ███╗ ████╗ ...Iceman fork\n"); - printf("██╔══██╗████╗ ████║ ══█║\n"); - printf("██████╔╝██╔████╔██║ ████╔╝\n"); - printf("██╔═══╝ ██║╚██╔╝██║ ══█║ iceman@icesql.net\n"); - printf("██║ ██║ ╚═╝ ██║ ████╔╝ https://github.com/iceman1001/proxmark3\n"); - printf("╚═╝ ╚═╝ ╚═╝ ╚═══╝v3.0.0\n"); + printf("\e[34m██████╗ ███╗ ███╗ ████╗\e[0m ...iceman fork\n"); + printf("\e[34m██╔══██╗████╗ ████║ ══█║\e[0m\n"); + printf("\e[34m██████╔╝██╔████╔██║ ████╔╝\e[0m\n"); + printf("\e[34m██╔═══╝ ██║╚██╔╝██║ ══█║\e[0m iceman@icesql.net\n"); + printf("\e[34m██║ ██║ ╚═╝ ██║ ████╔╝\e[0m https://github.com/iceman1001/proxmark3\n"); + printf("\e[34m╚═╝ ╚═╝ ╚═╝ ╚═══╝\e[0m v3.0.0\n"); printf("\nKeep icemanfork alive, do please donate, https://paypal.me/iceman1001/"); printf("\n\n"); }