mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-24 08:05:13 +08:00
make hf 14a apdufind less verbose in default output
This commit is contained in:
parent
8ccda0ea91
commit
d4f5e729a1
1 changed files with 18 additions and 7 deletions
|
@ -2395,11 +2395,13 @@ static int CmdHf14AFindapdu(const char *Cmd) {
|
|||
param_gethex_to_eol("00a404000aa000000440000101000100", 0, aSELECT_AID, sizeof(aSELECT_AID), &aSELECT_AID_n);
|
||||
int res = ExchangeAPDU14a(aSELECT_AID, aSELECT_AID_n, true, false, response, sizeof(response), &response_n);
|
||||
if (res != PM3_SUCCESS) {
|
||||
PrintAndLogEx(FAILED, "Tag did not respond to a test APDU (select file command). Aborting");
|
||||
PrintAndLogEx(FAILED, "Tag did not respond to a test APDU (select file command). Aborting...");
|
||||
return res;
|
||||
}
|
||||
PrintAndLogEx(SUCCESS, "Got response. Starting the APDU finder [ CLA " _GREEN_("%02X") " INS " _GREEN_("%02X") " P1 " _GREEN_("%02X") " P2 " _GREEN_("%02X") " ]", cla, ins, p1, p2);
|
||||
|
||||
PrintAndLogEx(INFO, "Press " _GREEN_("<Enter>") " to exit");
|
||||
PrintAndLogEx(NORMAL, "");
|
||||
PrintAndLogEx(SUCCESS, "Starting the APDU finder [ CLA " _GREEN_("%02X") " INS " _GREEN_("%02X") " P1 " _GREEN_("%02X") " P2 " _GREEN_("%02X") " ]", cla, ins, p1, p2);
|
||||
|
||||
bool inc_p1 = true;
|
||||
bool skip_ins = false;
|
||||
|
@ -2455,11 +2457,20 @@ retry_ins:
|
|||
if (sw == 0x9000) {
|
||||
log_level = SUCCESS;
|
||||
}
|
||||
PrintAndLogEx(log_level, "Got response for APDU \"%s\": %04X (%s)", sprint_hex_inrow(command, command_n + i),
|
||||
sw, GetAPDUCodeDescription(sw >> 8, sw & 0xff));
|
||||
if (response_n > 2) {
|
||||
PrintAndLogEx(SUCCESS, "Response data is: %s | %s", sprint_hex_inrow(response, response_n - 2),
|
||||
sprint_ascii(response, response_n - 2));
|
||||
|
||||
if (verbose == true || sw != 0x6e00) {
|
||||
PrintAndLogEx(log_level, "Got response for APDU \"%s\": %04X (%s)",
|
||||
sprint_hex_inrow(command, command_n + i),
|
||||
sw,
|
||||
GetAPDUCodeDescription(sw >> 8, sw & 0xff)
|
||||
);
|
||||
|
||||
if (response_n > 2) {
|
||||
PrintAndLogEx(SUCCESS, "Response data is: %s | %s",
|
||||
sprint_hex_inrow(response, response_n - 2),
|
||||
sprint_ascii(response, response_n - 2)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue