X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/d8ecc98a8eeebb814c28cd2eb4e21e53a59f6c4f..e6158a48ecc4dbd344604fcb562315931c68d2ff:/client/loclass/elite_crack.c diff --git a/client/loclass/elite_crack.c b/client/loclass/elite_crack.c index cfadcfbc..8fda0fbd 100644 --- a/client/loclass/elite_crack.c +++ b/client/loclass/elite_crack.c @@ -392,7 +392,7 @@ int bruteforceItem(dumpdata item, uint16_t keytable[]) { //Diversify diversifyKey(item.csn, key_sel_p, div_key); //Calc mac - doMAC(item.cc_nr, div_key,calculated_MAC); + doMAC(item.cc_nr, div_key, calculated_MAC); if (memcmp(calculated_MAC, item.mac, 4) == 0) { for (int i = 0; i < numbytes_to_recover; i++) @@ -401,8 +401,7 @@ int bruteforceItem(dumpdata item, uint16_t keytable[]) { break; } brute++; - if((brute & 0xFFFF) == 0) - { + if ((brute & 0xFFFF) == 0) { printf("%d",(brute >> 16) & 0xFF); fflush(stdout); } @@ -420,7 +419,6 @@ int bruteforceItem(dumpdata item, uint16_t keytable[]) { keytable[bytes_to_recover[i]] &= ~BEING_CRACKED; keytable[bytes_to_recover[i]] |= CRACKED; } - } return errors; @@ -508,7 +506,7 @@ int bruteforceDump(uint8_t dump[], size_t dumpsize, uint16_t keytable[]) dumpdata* attack = (dumpdata* ) malloc(itemsize); - for(i = 0 ; i * itemsize < dumpsize ; i++ ) + for (i = 0 ; i * itemsize < dumpsize ; i++ ) { memcpy(attack,dump+i*itemsize, itemsize); errors += bruteforceItem(*attack, keytable);