mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
refactoring + make dictionary works
This commit is contained in:
parent
131730e7db
commit
94eb741a4f
3 changed files with 14 additions and 11 deletions
|
@ -842,8 +842,10 @@ static int CmdHFMFPChk(const char *cmd) {
|
|||
// dictionary mode
|
||||
if (dict_filenamelen) {
|
||||
size_t endFilePosition = 0;
|
||||
res = loadFileDICTIONARYEx((char *)dict_filename, keyList, sizeof(keyList), &keyListLen, 16, NULL, 0, &endFilePosition);
|
||||
printf("---endFilePosition %d", endFilePosition);
|
||||
uint16_t keycnt = 0;
|
||||
res = loadFileDICTIONARYEx((char *)dict_filename, keyList, sizeof(keyList), NULL, 16, &keycnt, 0, &endFilePosition);
|
||||
keyListLen = keycnt;
|
||||
printf("---endFilePosition %d\n", endFilePosition);
|
||||
}
|
||||
|
||||
if (keyListLen == 0) {
|
||||
|
@ -870,6 +872,8 @@ static int CmdHFMFPChk(const char *cmd) {
|
|||
Fill2bPattern(keyList, &keyListLen, &startPattern);
|
||||
continue;
|
||||
}
|
||||
if (dict_filenamelen) {
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue