mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-23 06:35:38 -07:00
no printf
This commit is contained in:
parent
cbd35c49a6
commit
110a173e6d
1 changed files with 8 additions and 8 deletions
|
@ -58,8 +58,8 @@ int mfDarkside(uint8_t blockno, uint8_t key_type, uint64_t *key) {
|
||||||
|
|
||||||
// wait cycle
|
// wait cycle
|
||||||
while (true) {
|
while (true) {
|
||||||
printf(".");
|
PrintAndLogEx(NORMAL, "." NOLF);
|
||||||
fflush(stdout);
|
|
||||||
if (kbd_enter_pressed()) {
|
if (kbd_enter_pressed()) {
|
||||||
return PM3_EOPABORTED;
|
return PM3_EOPABORTED;
|
||||||
}
|
}
|
||||||
|
@ -206,8 +206,7 @@ int mfCheckKeys_fast(uint8_t sectorsCnt, uint8_t firstChunk, uint8_t lastChunk,
|
||||||
|
|
||||||
while (!WaitForResponseTimeout(CMD_ACK, &resp, 2000)) {
|
while (!WaitForResponseTimeout(CMD_ACK, &resp, 2000)) {
|
||||||
timeout++;
|
timeout++;
|
||||||
printf(".");
|
PrintAndLogEx(NORMAL, "." NOLF);
|
||||||
fflush(stdout);
|
|
||||||
// max timeout for one chunk of 85keys, 60*3sec = 180seconds
|
// max timeout for one chunk of 85keys, 60*3sec = 180seconds
|
||||||
// s70 with 40*2 keys to check, 80*85 = 6800 auth.
|
// s70 with 40*2 keys to check, 80*85 = 6800 auth.
|
||||||
// takes about 97s, still some margin before abort
|
// takes about 97s, still some margin before abort
|
||||||
|
@ -1037,14 +1036,16 @@ int detect_classic_nackbug(bool verbose) {
|
||||||
PrintAndLogEx(SUCCESS, "press pm3-button on the Proxmark3 device to abort both Proxmark3 and client.\n");
|
PrintAndLogEx(SUCCESS, "press pm3-button on the Proxmark3 device to abort both Proxmark3 and client.\n");
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
printf(".");
|
|
||||||
fflush(stdout);
|
PrintAndLogEx(NORMAL, "." NOLF);
|
||||||
if (kbd_enter_pressed()) {
|
if (kbd_enter_pressed()) {
|
||||||
return PM3_EOPABORTED;
|
return PM3_EOPABORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (WaitForResponseTimeout(CMD_HF_MIFARE_NACK_DETECT, &resp, 500)) {
|
if (WaitForResponseTimeout(CMD_HF_MIFARE_NACK_DETECT, &resp, 500)) {
|
||||||
|
|
||||||
|
PrintAndLogEx(NORMAL, "");
|
||||||
|
|
||||||
if (resp.status == PM3_EOPABORTED) {
|
if (resp.status == PM3_EOPABORTED) {
|
||||||
PrintAndLogEx(WARNING, "button pressed. Aborted.");
|
PrintAndLogEx(WARNING, "button pressed. Aborted.");
|
||||||
return PM3_EOPABORTED;
|
return PM3_EOPABORTED;
|
||||||
|
@ -1053,7 +1054,6 @@ int detect_classic_nackbug(bool verbose) {
|
||||||
uint8_t ok = resp.data.asBytes[0];
|
uint8_t ok = resp.data.asBytes[0];
|
||||||
uint8_t nacks = resp.data.asBytes[1];
|
uint8_t nacks = resp.data.asBytes[1];
|
||||||
uint16_t auths = bytes_to_num(resp.data.asBytes + 2, 2);
|
uint16_t auths = bytes_to_num(resp.data.asBytes + 2, 2);
|
||||||
PrintAndLogEx(NORMAL, "");
|
|
||||||
|
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
PrintAndLogEx(SUCCESS, "num of auth requests : %u", auths);
|
PrintAndLogEx(SUCCESS, "num of auth requests : %u", auths);
|
||||||
|
@ -1070,7 +1070,7 @@ int detect_classic_nackbug(bool verbose) {
|
||||||
case 97 : {
|
case 97 : {
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
PrintAndLogEx(FAILED, "card random number generator seems to be based on the well-known generating polynomial");
|
PrintAndLogEx(FAILED, "card random number generator seems to be based on the well-known generating polynomial");
|
||||||
PrintAndLogEx(NORMAL, "[- ]with 16 effective bits only, but shows unexpected behavior, try again.");
|
PrintAndLogEx(FAILED, "with 16 effective bits only, but shows unexpected behavior, try again.");
|
||||||
}
|
}
|
||||||
return PM3_SUCCESS;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue