mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 02:34:48 +08:00
CHG: 'hf mf fchk' - textual
This commit is contained in:
parent
6e281a08ed
commit
e3f4ef498f
3 changed files with 5 additions and 6 deletions
|
@ -1604,15 +1604,14 @@ int CmdHF14AMfChk_fast(const char *Cmd) {
|
|||
uint64_t t1 = msclock();
|
||||
|
||||
if ( use_flashmemory ) {
|
||||
mfCheckKeys_fast( sectorsCnt, true, true, 1, 0, keyBlock, e_sector, use_flashmemory);
|
||||
PrintAndLogEx(SUCCESS, "Using dictionary in flash memory");
|
||||
mfCheckKeys_fast( sectorsCnt, true, true, 1, 0, keyBlock, e_sector, use_flashmemory);
|
||||
} else {
|
||||
|
||||
// strategys. 1= deep first on sector 0 AB, 2= width first on all sectors
|
||||
for (uint8_t strategy = 1; strategy < 3; strategy++) {
|
||||
PrintAndLogEx(SUCCESS, "Running strategy %u", strategy);
|
||||
|
||||
|
||||
|
||||
// main keychunk loop
|
||||
for (uint32_t i = 0; i < keycnt; i += chunksize) {
|
||||
|
||||
|
|
|
@ -166,7 +166,7 @@ int mfCheckKeys_fast( uint8_t sectorsCnt, uint8_t firstChunk, uint8_t lastChunk,
|
|||
// time to convert the returned data.
|
||||
uint8_t curr_keys = resp.arg[0];
|
||||
|
||||
PrintAndLogEx(NORMAL, "\n[-] Chunk: %.1fs | found %u/%u keys (%u)", (float)(t2/1000.0), curr_keys, (sectorsCnt<<1), size);
|
||||
PrintAndLogEx(SUCCESS, "\nChunk: %.1fs | found %u/%u keys (%u)", (float)(t2/1000.0), curr_keys, (sectorsCnt<<1), size);
|
||||
|
||||
// all keys?
|
||||
if ( curr_keys == sectorsCnt*2 || lastChunk ) {
|
||||
|
|
|
@ -68,9 +68,9 @@ end
|
|||
---
|
||||
-- This is only meant to be used when errors occur
|
||||
local function oops(err)
|
||||
print("ERROR: ",err)
|
||||
print("ERROR: ", err)
|
||||
calypso_switch_off_field()
|
||||
return nil,err
|
||||
return nil, err
|
||||
end
|
||||
---
|
||||
-- Usage help
|
||||
|
|
Loading…
Reference in a new issue