mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 06:13:51 -07:00
mf restore: foolproof, else it may end with broken anticol
This commit is contained in:
parent
405c9d5d94
commit
c09e47594d
1 changed files with 9 additions and 0 deletions
|
@ -944,6 +944,15 @@ static int CmdHF14AMfRestore(const char *Cmd) {
|
||||||
m1 = true;
|
m1 = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(datafnlen > 4 && !strcmp(datafilename + strlen(datafilename) - 4, ".eml")) {
|
||||||
|
PrintAndLogEx(WARNING, "File must be a binary dump, not a .eml");
|
||||||
|
return PM3_EINVARG;
|
||||||
|
}
|
||||||
|
if(datafnlen > 5 && !strcmp(datafilename + strlen(datafilename) - 5, ".json")) {
|
||||||
|
PrintAndLogEx(WARNING, "File must be a binary dump, not a .json");
|
||||||
|
return PM3_EINVARG;
|
||||||
|
}
|
||||||
|
|
||||||
uint8_t sectors = MIFARE_1K_MAXSECTOR;
|
uint8_t sectors = MIFARE_1K_MAXSECTOR;
|
||||||
|
|
||||||
if (m0) {
|
if (m0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue