X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/1e1de234ac2b8d337d36ba67367d8a2b447db038..810f53792ea438c1b70eaa1f934db1e5c96220cb:/client/cmdhfepa.c diff --git a/client/cmdhfepa.c b/client/cmdhfepa.c index e9c63f20..ecd1ec3a 100644 --- a/client/cmdhfepa.c +++ b/client/cmdhfepa.c @@ -58,13 +58,13 @@ int CmdHFEPACollectPACENonces(const char *Cmd) } // print nonce PrintAndLog("Length: %d, Nonce: %s", nonce_length, nonce); + free(nonce); } if (i < n - 1) { sleep(d); } } PrintAndLog("End: %u", time(NULL)); - return 1; } @@ -178,8 +178,7 @@ int CmdHFEPAPACEReplay(const char *Cmd) // UI-related stuff -static const command_t CommandTable[] = -{ +static const command_t CommandTable[] = { {"help", CmdHelp, 1, "This help"}, {"cnonces", CmdHFEPACollectPACENonces, 0, " Acquire n>0 encrypted PACE nonces of size m>0 with d sec pauses"}, @@ -188,18 +187,16 @@ static const command_t CommandTable[] = {NULL, NULL, 0, NULL} }; -int CmdHelp(const char *Cmd) -{ +int CmdHelp(const char *Cmd) { CmdsHelp(CommandTable); return 0; } -int CmdHFEPA(const char *Cmd) -{ +int CmdHFEPA(const char *Cmd) { // flush - WaitForResponseTimeout(CMD_ACK,NULL,100); - + clearCommandBuffer(); + //WaitForResponseTimeout(CMD_ACK,NULL,100); // parse - CmdsParse(CommandTable, Cmd); - return 0; + CmdsParse(CommandTable, Cmd); + return 0; }