deleted client call of reset function
This commit is contained in:
@@ -660,7 +660,6 @@ static command_t CommandTable[] = {
|
||||
{"4x50_wipe", CmdEM4x50Wipe, IfPm3EM4x50, "wipe EM4x50 tag"},
|
||||
{"4x50_brute", CmdEM4x50Brute, IfPm3EM4x50, "guess password of EM4x50"},
|
||||
{"4x50_login", CmdEM4x50Login, IfPm3EM4x50, "login into EM4x50"},
|
||||
{"4x50_reset", CmdEM4x50Reset, IfPm3EM4x50, "reset EM4x50"},
|
||||
{"4x50_restore",CmdEM4x50Restore, IfPm3EM4x50, "restore EM4x50 dump to tag"},
|
||||
{"4x50_sim", CmdEM4x50Sim, IfPm3EM4x50, "simulate EM4x50 tag"},
|
||||
{"4x50_reader", CmdEM4x50Reader, IfPm3EM4x50, "show standard read mode data of EM4x50"},
|
||||
|
||||
@@ -562,42 +562,6 @@ int CmdEM4x50Chk(const char *Cmd) {
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// reset functions
|
||||
//==============================================================================
|
||||
|
||||
int CmdEM4x50Reset(const char *Cmd) {
|
||||
|
||||
PacketResponseNG resp;
|
||||
|
||||
CLIParserContext *ctx;
|
||||
CLIParserInit(&ctx, "lf em 4x50_reset",
|
||||
"Reseta EM4x50 tag.",
|
||||
"lf em 4x50_reset\n"
|
||||
);
|
||||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_param_end
|
||||
};
|
||||
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
CLIParserFree(ctx);
|
||||
|
||||
// start
|
||||
clearCommandBuffer();
|
||||
SendCommandNG(CMD_LF_EM4X50_RESET, 0, 0);
|
||||
WaitForResponse(CMD_LF_EM4X50_RESET, &resp);
|
||||
|
||||
// print response
|
||||
if (resp.status == PM3_SUCCESS)
|
||||
PrintAndLogEx(SUCCESS, "Reset " _GREEN_("ok"));
|
||||
else
|
||||
PrintAndLogEx(FAILED, "Reset " _RED_("failed"));
|
||||
|
||||
return resp.status;
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// read functions
|
||||
//==============================================================================
|
||||
|
||||
@@ -25,7 +25,6 @@ int CmdEM4x50Dump(const char *Cmd);
|
||||
int CmdEM4x50Wipe(const char *Cmd);
|
||||
int CmdEM4x50Brute(const char *Cmd);
|
||||
int CmdEM4x50Login(const char *Cmd);
|
||||
int CmdEM4x50Reset(const char *Cmd);
|
||||
int CmdEM4x50Restore(const char *Cmd);
|
||||
int CmdEM4x50Sim(const char *Cmd);
|
||||
int CmdEM4x50Reader(const char *Cmd);
|
||||
|
||||
Reference in New Issue
Block a user