mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
Streamlined the naming conventen and types.
This commit is contained in:
parent
7eb79732ff
commit
e259b26d60
4 changed files with 14 additions and 10 deletions
|
@ -1786,7 +1786,7 @@ static int CmdHF14AMfAutoPWN(const char *Cmd) {
|
|||
|
||||
// Load the dictionary
|
||||
if (strlen(filename) != 0) {
|
||||
int res = loadFileDICTIONARY_safe(filename, &keyBlock, 6, &key_cnt);
|
||||
int res = loadFileDICTIONARY_safe(filename, (void**) &keyBlock, 6, &key_cnt);
|
||||
if (res != PM3_SUCCESS || key_cnt <= 0 || keyBlock == NULL) {
|
||||
PrintAndLogEx(FAILED, "An error occurred while loading the dictionary! (we will use the default keys now)");
|
||||
if (keyBlock != NULL) free(keyBlock);
|
||||
|
@ -1806,6 +1806,10 @@ useDefaultKeys:
|
|||
key_cnt = ARRAYLEN(g_mifare_default_keys);
|
||||
}
|
||||
|
||||
for (int k = 0; k < key_cnt; k++) {
|
||||
PrintAndLogEx(SUCCESS, "ID: %d KEY: %s", k, sprint_hex((keyBlock + (6 * k)), sizeof(key)));
|
||||
}
|
||||
|
||||
// Use the dictionary to find sector keys on the card
|
||||
PrintAndLogEx(INFO, "Enter dictionary run...");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue