mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 22:23:38 -07:00
nested. fix some debug messages
This commit is contained in:
parent
d65158d7b6
commit
8f4f619b95
1 changed files with 6 additions and 5 deletions
|
@ -755,6 +755,10 @@ int CmdHF14AMfNested(const char *Cmd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// print nested statistic
|
||||||
|
PrintAndLog("\n\n-----------------------------------------------\nNested statistic:\nIterations count: %d", iterations);
|
||||||
|
PrintAndLog("Time in nested: %1.3f (%1.3f sec per key)", ((float)(msclock() - msclock1))/1000.0, ((float)(msclock() - msclock1))/iterations/1000.0);
|
||||||
|
|
||||||
// check if we have unrecognized keys
|
// check if we have unrecognized keys
|
||||||
bool notFoundKeys = false;
|
bool notFoundKeys = false;
|
||||||
for (i = 0; i < SectorsCnt; i++) {
|
for (i = 0; i < SectorsCnt; i++) {
|
||||||
|
@ -768,7 +772,7 @@ int CmdHF14AMfNested(const char *Cmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (notFoundKeys) {
|
if (notFoundKeys) {
|
||||||
PrintAndLog("\n\n-----------------------------------------------\n");
|
PrintAndLog("-----------------------------------------------\n");
|
||||||
PrintAndLog("We have unrecognized keys. Trying to check if we have this keys on key buffer...");
|
PrintAndLog("We have unrecognized keys. Trying to check if we have this keys on key buffer...");
|
||||||
|
|
||||||
// fill keyBlock with known keys
|
// fill keyBlock with known keys
|
||||||
|
@ -799,7 +803,7 @@ int CmdHF14AMfNested(const char *Cmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
// try to auth with known keys to not recognized sectors keys
|
// try to auth with known keys to not recognized sectors keys
|
||||||
PrintAndLog("Testing keys. Sector count=%d keys count:%d", SectorsCnt, cnt);
|
PrintAndLog("Testing keys. Sector count=%d known keys count:%d", SectorsCnt, cnt);
|
||||||
for (i = 0; i < SectorsCnt; i++) {
|
for (i = 0; i < SectorsCnt; i++) {
|
||||||
for (j = 0; j < 2; j++) {
|
for (j = 0; j < 2; j++) {
|
||||||
if (e_sector[i].foundKey[j]) continue;
|
if (e_sector[i].foundKey[j]) continue;
|
||||||
|
@ -816,9 +820,6 @@ int CmdHF14AMfNested(const char *Cmd)
|
||||||
} // if (notFoundKeys)
|
} // if (notFoundKeys)
|
||||||
|
|
||||||
// print result
|
// print result
|
||||||
PrintAndLog("-----------------------------------------------\nIterations count: %d", iterations);
|
|
||||||
printf("Time in nested: %1.3f (%1.3f sec per key)\n\n\n", ((float)(msclock() - msclock1))/1000.0, ((float)(msclock() - msclock1))/iterations/1000.0);
|
|
||||||
//print them
|
|
||||||
PrintAndLog("|---|----------------|---|----------------|---|");
|
PrintAndLog("|---|----------------|---|----------------|---|");
|
||||||
PrintAndLog("|sec|key A |res|key B |res|");
|
PrintAndLog("|sec|key A |res|key B |res|");
|
||||||
PrintAndLog("|---|----------------|---|----------------|---|");
|
PrintAndLog("|---|----------------|---|----------------|---|");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue