mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Apply same logic to hf mf fchk
This commit is contained in:
parent
c5fcb97bc1
commit
e77fbc092c
1 changed files with 7 additions and 1 deletions
|
@ -3397,6 +3397,12 @@ static int CmdHF14AMfChk_fast(const char *Cmd) {
|
||||||
|
|
||||||
uint8_t *keyBlock = NULL;
|
uint8_t *keyBlock = NULL;
|
||||||
uint32_t keycnt = 0;
|
uint32_t keycnt = 0;
|
||||||
|
|
||||||
|
// If we use the dictionary in flash memory, we don't want to load keys
|
||||||
|
// from hard drive dictionary as it could exceed BigBuf capacity
|
||||||
|
if (use_flashmemory) {
|
||||||
|
fnlen = 0;
|
||||||
|
}
|
||||||
int ret = mf_load_keys(&keyBlock, &keycnt, key, keylen, filename, fnlen, load_default);
|
int ret = mf_load_keys(&keyBlock, &keycnt, key, keylen, filename, fnlen, load_default);
|
||||||
if (ret != PM3_SUCCESS) {
|
if (ret != PM3_SUCCESS) {
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -3423,7 +3429,7 @@ static int CmdHF14AMfChk_fast(const char *Cmd) {
|
||||||
}
|
}
|
||||||
if (use_flashmemory) {
|
if (use_flashmemory) {
|
||||||
PrintAndLogEx(SUCCESS, "Using dictionary in flash memory");
|
PrintAndLogEx(SUCCESS, "Using dictionary in flash memory");
|
||||||
mf_check_keys_fast_ex(sectorsCnt, true, true, 1, 0, keyBlock, e_sector, use_flashmemory, false, false, singleSectorParams);
|
mf_check_keys_fast_ex(sectorsCnt, true, true, 1, keycnt, keyBlock, e_sector, use_flashmemory, false, false, singleSectorParams);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// strategies. 1= deep first on sector 0 AB, 2= width first on all sectors
|
// strategies. 1= deep first on sector 0 AB, 2= width first on all sectors
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue