mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
clear trace log before starting to run hf iclass tear
This commit is contained in:
parent
428ee718d3
commit
4b92118f1f
2 changed files with 6 additions and 2 deletions
|
@ -121,7 +121,7 @@ void BigBuf_Clear_ext(bool verbose) {
|
||||||
memset(BigBuf, 0, s_bigbuf_size);
|
memset(BigBuf, 0, s_bigbuf_size);
|
||||||
clear_trace();
|
clear_trace();
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
Dbprintf("Buffer cleared (%i bytes)", s_bigbuf_size);
|
if (g_dbglevel >= DBG_ERROR) Dbprintf("Buffer cleared (%i bytes)", s_bigbuf_size);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3172,9 +3172,12 @@ static int CmdHFiClass_TearBlock(const char *Cmd) {
|
||||||
return PM3_EFAILED;
|
return PM3_EFAILED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// clear trace log
|
||||||
|
SendCommandNG(CMD_BUFF_CLEAR, NULL, 0);
|
||||||
|
|
||||||
PrintAndLogEx(INFO, "---------------------------------------");
|
PrintAndLogEx(INFO, "---------------------------------------");
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
PrintAndLogEx(INFO, "Press " _GREEN_("<Enter>'") " to exit");
|
PrintAndLogEx(INFO, "Press " _GREEN_("<Enter>") " to exit");
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
PrintAndLogEx(INFO, "--------------- " _CYAN_("start") " -----------------\n");
|
PrintAndLogEx(INFO, "--------------- " _CYAN_("start") " -----------------\n");
|
||||||
// Main loop
|
// Main loop
|
||||||
|
@ -3223,6 +3226,7 @@ static int CmdHFiClass_TearBlock(const char *Cmd) {
|
||||||
if (blockno == 1){
|
if (blockno == 1){
|
||||||
read_auth = false;
|
read_auth = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = iclass_read_block_ex(key, blockno, keyType, elite, rawkey, use_replay, verbose, read_auth, shallow_mod, data_read, false);
|
res = iclass_read_block_ex(key, blockno, keyType, elite, rawkey, use_replay, verbose, read_auth, shallow_mod, data_read, false);
|
||||||
if (res == PM3_SUCCESS && !reread) {
|
if (res == PM3_SUCCESS && !reread) {
|
||||||
if (memcmp(data_read, zeros, 8) == 0) {
|
if (memcmp(data_read, zeros, 8) == 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue