Merge pull request #172 from McEloff/hfmfu

UL/NTAG new dump file format. Added counters support, simulation
This commit is contained in:
Iceman 2019-04-25 16:10:03 +02:00 committed by GitHub
commit f227041932
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 216 additions and 93 deletions

View file

@ -2590,6 +2590,16 @@ int CmdHF14AMfELoad(const char *Cmd) {
return 2;
}
// convert old mfu format to new
if (blockWidth == 4) {
res = convertOldMfuDump(&data, &datalen);
if (res) {
PrintAndLogEx(FAILED, "Failed convert on load to new Ultralight/NTAG format");
free(data);
return res;
}
}
PrintAndLogEx(INFO, "Copying to emulator memory");
blockNum = 0;