chg: the dot progress is not logged anymore. Force fflush afterwards.

This commit is contained in:
iceman1001 2018-03-05 20:07:29 +01:00
commit 24482211ad
14 changed files with 19 additions and 25 deletions

View file

@ -21,8 +21,8 @@ int mfDarkside(uint8_t blockno, uint8_t key_type, uint64_t *key) {
// message
PrintAndLogEx(NORMAL, "--------------------------------------------------------------------------------\n");
PrintAndLogEx(SUCCESS, "executing Darkside attack. Expected execution time: 25sec on average\n");
PrintAndLogEx(SUCCESS, "press pm3-button on the proxmark3 device to abort both proxmark3 and client.\n");
PrintAndLogEx(NORMAL, "executing Darkside attack. Expected execution time: 25sec on average");
PrintAndLogEx(NORMAL, "press pm3-button on the proxmark3 device to abort both proxmark3 and client.");
PrintAndLogEx(NORMAL, "--------------------------------------------------------------------------------\n");
while (true) {
@ -151,8 +151,7 @@ int mfCheckKeys_fast( uint8_t sectorsCnt, uint8_t firstChunk, uint8_t lastChunk,
while ( !WaitForResponseTimeout(CMD_ACK, &resp, 2000) ) {
timeout++;
PrintAndLogEx(NORMAL, ".");
fflush(stdout);
printf("."); fflush(stdout);
// max timeout for one chunk of 85keys, 60*3sec = 180seconds
// s70 with 40*2 keys to check, 80*85 = 6800 auth.
// takes about 97s, still some margin before abort
@ -915,7 +914,7 @@ int detect_classic_nackbug(bool verbose){
while (true) {
if (term) {
PrintAndLogEx(NORMAL, ".");
printf(".");
} else {
printf(
#if defined(__linux__) || (__APPLE__)