mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
the change to download the anticollision signal trace to "hf 14b reader" made it slow. Making it optional instead improves performance in "hf search"
This commit is contained in:
parent
6e6fa4270b
commit
5396524dc4
4 changed files with 14 additions and 9 deletions
|
@ -3,6 +3,7 @@ All notable changes to this project will be documented in this file.
|
|||
This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log...
|
||||
|
||||
## [unreleased][unreleased]
|
||||
- Changed `hf 14b reader --plot` - made the anticollision signal trace download optional (@iceman1001)
|
||||
- Added `lf_hitag_crypto.trace` - trace file of a complete read out of a Hitag2 in crypto mode (@iceman1001)
|
||||
- Fix `lf cmdread` - uninitialised memory usage (@iceman1001)
|
||||
- Changed `hf st info` - now tries to check signature if available (@iceman1001)
|
||||
|
|
|
@ -176,7 +176,7 @@ int CmdHFSearch(const char *Cmd) {
|
|||
PROMPT_CLEARLINE;
|
||||
PrintAndLogEx(INPLACE, " Searching for ISO14443-B tag...");
|
||||
if (IfPm3Iso14443b()) {
|
||||
if (readHF14B(false, false) == PM3_SUCCESS) {
|
||||
if (readHF14B(false, false, false) == PM3_SUCCESS) {
|
||||
PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("ISO 14443-B tag") " found\n");
|
||||
success[ISO_14443B] = true;
|
||||
res = PM3_SUCCESS;
|
||||
|
|
|
@ -1503,13 +1503,15 @@ static int CmdHF14BReader(const char *Cmd) {
|
|||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_lit0(NULL, "plot", "show anticollision signal trace in plot window"),
|
||||
arg_lit0("v", "verbose", "verbose output"),
|
||||
arg_lit0("@", NULL, "optional - continuous reader mode"),
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
bool verbose = arg_get_lit(ctx, 1);
|
||||
bool cm = arg_get_lit(ctx, 2);
|
||||
bool read_plot = arg_get_lit(ctx, 1);
|
||||
bool verbose = arg_get_lit(ctx, 2);
|
||||
bool cm = arg_get_lit(ctx, 3);
|
||||
CLIParserFree(ctx);
|
||||
|
||||
if (cm) {
|
||||
|
@ -1518,7 +1520,7 @@ static int CmdHF14BReader(const char *Cmd) {
|
|||
|
||||
clear_trace_14b();
|
||||
|
||||
return readHF14B(cm, verbose);
|
||||
return readHF14B(cm, verbose, read_plot);
|
||||
}
|
||||
|
||||
// Read SRI512|SRIX4K block
|
||||
|
@ -2928,7 +2930,7 @@ int infoHF14B(bool verbose, bool do_aid_search) {
|
|||
}
|
||||
|
||||
// get and print general info about all known 14b chips
|
||||
int readHF14B(bool loop, bool verbose) {
|
||||
int readHF14B(bool loop, bool verbose, bool read_plot) {
|
||||
bool found = false;
|
||||
int res = PM3_SUCCESS;
|
||||
do {
|
||||
|
@ -2960,10 +2962,12 @@ int readHF14B(bool loop, bool verbose) {
|
|||
if (found)
|
||||
goto plot;
|
||||
plot:
|
||||
if (read_plot) {
|
||||
res = handle_hf_plot(verbose);
|
||||
if (res != PM3_SUCCESS) {
|
||||
PrintAndLogEx(DEBUG, "plot failed");
|
||||
}
|
||||
}
|
||||
|
||||
} while (loop && kbd_enter_pressed() == false);
|
||||
|
||||
|
|
|
@ -30,5 +30,5 @@ int exchange_14b_apdu(uint8_t *datain, int datainlen, bool activate_field, bool
|
|||
int select_card_14443b_4(bool disconnect, iso14b_card_select_t *card);
|
||||
|
||||
int infoHF14B(bool verbose, bool do_aid_search);
|
||||
int readHF14B(bool loop, bool verbose);
|
||||
int readHF14B(bool loop, bool verbose, bool read_plot);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue