mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-10 17:49:32 +08:00
Remove debug messages from the info command
This commit is contained in:
parent
ebe9d72cc2
commit
784e11021e
1 changed files with 10 additions and 1 deletions
|
@ -39,6 +39,7 @@
|
|||
#include "cmdhw.h" // set_fpga_mode
|
||||
#include "loclass/cipherutils.h" // BitstreamOut_t
|
||||
#include "proxendian.h"
|
||||
#include "preferences.h"
|
||||
#include "mifare/gen4.h"
|
||||
|
||||
static int CmdHelp(const char *Cmd);
|
||||
|
@ -8816,6 +8817,10 @@ static int CmdHF14AMfInfo(const char *Cmd) {
|
|||
bool verbose = arg_get_lit(ctx, 3);
|
||||
CLIParserFree(ctx);
|
||||
|
||||
uint8_t dbg_curr = DBG_NONE;
|
||||
if (getDeviceDebugLevel(&dbg_curr) != PM3_SUCCESS)
|
||||
return PM3_EFAILED;
|
||||
|
||||
clearCommandBuffer();
|
||||
SendCommandMIX(CMD_HF_ISO14443A_READER, ISO14A_CONNECT, 0, 0, NULL, 0);
|
||||
PacketResponseNG resp;
|
||||
|
@ -8855,6 +8860,9 @@ static int CmdHF14AMfInfo(const char *Cmd) {
|
|||
PrintAndLogEx(SUCCESS, "ATQA: " _GREEN_("%02X %02X"), card.atqa[1], card.atqa[0]);
|
||||
PrintAndLogEx(SUCCESS, " SAK: " _GREEN_("%02X [%" PRIu64 "]"), card.sak, resp.oldarg[0]);
|
||||
|
||||
if (setDeviceDebugLevel(DBG_NONE, false) != PM3_SUCCESS)
|
||||
return PM3_EFAILED;
|
||||
|
||||
PrintAndLogEx(INFO, "--- " _CYAN_("RNG Information") "---------------------");
|
||||
|
||||
int res = detect_classic_static_nonce();
|
||||
|
@ -8938,7 +8946,8 @@ static int CmdHF14AMfInfo(const char *Cmd) {
|
|||
mfc_ev1_print_signature(card.uid, card.uidlen, signature, sizeof(signature));
|
||||
}
|
||||
|
||||
|
||||
if (setDeviceDebugLevel(dbg_curr, false) != PM3_SUCCESS)
|
||||
return PM3_EFAILED;
|
||||
|
||||
PrintAndLogEx(NORMAL, "done...");
|
||||
return PM3_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue