started to add touch nd go keygen algo from metrodroid

This commit is contained in:
iceman1001
2021-02-04 22:02:07 +01:00
parent 2a17cb5545
commit 63739b25d3
3 changed files with 25 additions and 1 deletions

View File

@@ -13,6 +13,7 @@
#include <string.h>
#include <ctype.h> // tolower
#include <math.h>
#include <inttypes.h> // PRIx64 macro
#include "commonutil.h" // reflect...
#include "comms.h" // clearCommandBuffer
#include "cmdparser.h" // command_t
@@ -550,6 +551,13 @@ static int CmdAnalyseA(const char *Cmd) {
PrintAndLogEx(FAILED, "Error parsing bytes");
return PM3_EINVARG;
}
uint64_t key = 0;
res = mfc_algo_touch_one(data, 0, 0, &key);
if (res == PM3_SUCCESS) {
PrintAndLogEx(SUCCESS, "KEY A | %012" PRIx64, key);
}
CLIParserFree(ctx);
return PM3_SUCCESS;