mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
chg: some more fflush...
This commit is contained in:
parent
97452c056c
commit
d8c72242a2
2 changed files with 4 additions and 6 deletions
|
@ -1226,7 +1226,7 @@ int CmdLegicWipe(const char *Cmd){
|
||||||
UsbCommand resp;
|
UsbCommand resp;
|
||||||
for(size_t i = 7; i < card.cardsize; i += USB_CMD_DATA_SIZE) {
|
for(size_t i = 7; i < card.cardsize; i += USB_CMD_DATA_SIZE) {
|
||||||
|
|
||||||
printf(".");
|
printf("."); fflush(stdout);
|
||||||
len = MIN((card.cardsize - i), USB_CMD_DATA_SIZE);
|
len = MIN((card.cardsize - i), USB_CMD_DATA_SIZE);
|
||||||
c.arg[0] = i; // offset
|
c.arg[0] = i; // offset
|
||||||
c.arg[1] = len; // number of bytes
|
c.arg[1] = len; // number of bytes
|
||||||
|
|
|
@ -1317,8 +1317,7 @@ int CmdHF14AMfChk(const char *Cmd) {
|
||||||
if (e_sector[i].foundKey[trgKeyType]) continue;
|
if (e_sector[i].foundKey[trgKeyType]) continue;
|
||||||
|
|
||||||
for (uint32_t c = 0; c < keycnt; c += max_keys) {
|
for (uint32_t c = 0; c < keycnt; c += max_keys) {
|
||||||
printf(".");
|
printf("."); fflush(stdout);
|
||||||
fflush(stdout);
|
|
||||||
uint32_t size = keycnt-c > max_keys ? max_keys : keycnt-c;
|
uint32_t size = keycnt-c > max_keys ? max_keys : keycnt-c;
|
||||||
|
|
||||||
res = mfCheckKeys(b, trgKeyType, true, size, &keyBlock[6*c], &key64);
|
res = mfCheckKeys(b, trgKeyType, true, size, &keyBlock[6*c], &key64);
|
||||||
|
@ -1612,8 +1611,7 @@ int CmdHF14AMfSniff(const char *Cmd){
|
||||||
|
|
||||||
// wait cycle
|
// wait cycle
|
||||||
while (true) {
|
while (true) {
|
||||||
printf(".");
|
printf("."); fflush(stdout);
|
||||||
fflush(stdout);
|
|
||||||
if (ukbhit()) {
|
if (ukbhit()) {
|
||||||
int gc = getchar(); (void)gc;
|
int gc = getchar(); (void)gc;
|
||||||
printf("\naborted via keyboard!\n");
|
printf("\naborted via keyboard!\n");
|
||||||
|
@ -2220,7 +2218,7 @@ int CmdHF14AMfCLoad(const char *Cmd) {
|
||||||
fclose(f);
|
fclose(f);
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
printf(".");
|
printf("."); fflush(stdout);
|
||||||
blockNum++;
|
blockNum++;
|
||||||
|
|
||||||
if (blockNum >= 16 * 4) break; // magic card type - mifare 1K
|
if (blockNum >= 16 * 4) break; // magic card type - mifare 1K
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue