mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
hf mf autopwn - moved generate filename call
This commit is contained in:
parent
e10333e21a
commit
e03d7e3894
1 changed files with 3 additions and 1 deletions
|
@ -2052,6 +2052,9 @@ static int CmdHF14AMfAutoPWN(const char *Cmd) {
|
||||||
return PM3_EMALLOC;
|
return PM3_EMALLOC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// read uid to generate a filename for the key file
|
||||||
|
char *fptr = GenerateFilename("hf-mf-", "-key.bin");
|
||||||
|
|
||||||
// card prng type (weak=1 / hard=0 / select/card comm error = negative value)
|
// card prng type (weak=1 / hard=0 / select/card comm error = negative value)
|
||||||
prng_type = detect_classic_prng();
|
prng_type = detect_classic_prng();
|
||||||
if (prng_type < 0) {
|
if (prng_type < 0) {
|
||||||
|
@ -2582,7 +2585,6 @@ all_found:
|
||||||
// Dump the keys
|
// Dump the keys
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
|
|
||||||
char *fptr = GenerateFilename("hf-mf-", "-key.bin");
|
|
||||||
if (createMfcKeyDump(fptr, sectors_cnt, e_sector) != PM3_SUCCESS) {
|
if (createMfcKeyDump(fptr, sectors_cnt, e_sector) != PM3_SUCCESS) {
|
||||||
PrintAndLogEx(ERR, "Failed to save keys to file");
|
PrintAndLogEx(ERR, "Failed to save keys to file");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue