mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-16 10:03:04 -07:00
hf 15 findafi, client side now breaks when finished
This commit is contained in:
parent
871820f8f7
commit
ac0ad24bfe
1 changed files with 10 additions and 11 deletions
|
@ -1145,7 +1145,8 @@ static int CmdHF15Sim(const char *Cmd) {
|
||||||
static int CmdHF15FindAfi(const char *Cmd) {
|
static int CmdHF15FindAfi(const char *Cmd) {
|
||||||
CLIParserContext *ctx;
|
CLIParserContext *ctx;
|
||||||
CLIParserInit(&ctx, "hf 15 findafi",
|
CLIParserInit(&ctx, "hf 15 findafi",
|
||||||
"This command attempts to brute force AFI of an ISO15693 tag\n",
|
"This command attempts to brute force AFI of an ISO15693 tag\n"
|
||||||
|
"Estimated execution time is around 2 minutes",
|
||||||
"hf 15 findafi");
|
"hf 15 findafi");
|
||||||
|
|
||||||
void *argtable[] = {
|
void *argtable[] = {
|
||||||
|
@ -1173,18 +1174,16 @@ static int CmdHF15FindAfi(const char *Cmd) {
|
||||||
if (WaitForResponseTimeout(CMD_HF_ISO15693_FINDAFI, &resp, 2000)){
|
if (WaitForResponseTimeout(CMD_HF_ISO15693_FINDAFI, &resp, 2000)){
|
||||||
if (resp.status == PM3_EOPABORTED) {
|
if (resp.status == PM3_EOPABORTED) {
|
||||||
PrintAndLogEx(DEBUG, "Button pressed, user aborted");
|
PrintAndLogEx(DEBUG, "Button pressed, user aborted");
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
} else {
|
break;
|
||||||
timeout++;
|
|
||||||
|
|
||||||
// should be done in about 2 minutes
|
|
||||||
if (timeout > 180) {
|
|
||||||
PrintAndLogEx(WARNING, "\nNo response from Proxmark3. Aborting...");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// should be done in about 2 minutes
|
||||||
|
if (timeout > 180) {
|
||||||
|
PrintAndLogEx(WARNING, "\nNo response from Proxmark3. Aborting...");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
timeout++;
|
||||||
}
|
}
|
||||||
|
|
||||||
DropField();
|
DropField();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue