From c2f3e4b2f3439292a9540832001805205d597f23 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sun, 15 Sep 2019 20:51:23 +0200 Subject: [PATCH] encourage.. --- client/cmdlfpac.c | 28 ++++++++++++++++++---------- client/cmdlfpac.h | 6 ++++++ client/cmdlfparadox.c | 6 +++++- 3 files changed, 29 insertions(+), 11 deletions(-) diff --git a/client/cmdlfpac.c b/client/cmdlfpac.c index 864506089..6ea0af7d6 100644 --- a/client/cmdlfpac.c +++ b/client/cmdlfpac.c @@ -9,13 +9,6 @@ //----------------------------------------------------------------------------- #include "cmdlfpac.h" -#include "cmdparser.h" // command_t -#include "comms.h" -#include "ui.h" -#include "cmddata.h" -#include "cmdlf.h" -#include "lfdemod.h" // preamble test - static int CmdHelp(const char *Cmd); //see NRZDemod for what args are accepted @@ -63,10 +56,25 @@ static int CmdPacRead(const char *Cmd) { return CmdPacDemod(Cmd); } +static int CmdPacClone(const char *Cmd) { + // possible to raw hex and clone + PrintAndLogEx(INFO, " To be implemented, feel free to contribute!"); + return PM3_SUCCESS; +} + +static int CmdPacSim(const char *Cmd) { + + // NRZ sim. + PrintAndLogEx(INFO, " To be implemented, feel free to contribute!"); + return PM3_SUCCESS; +} + static command_t CommandTable[] = { - {"help", CmdHelp, AlwaysAvailable, "This help"}, - {"demod", CmdPacDemod, AlwaysAvailable, "Demodulate an PAC tag from the GraphBuffer"}, - {"read", CmdPacRead, IfPm3Lf, "Attempt to read and extract tag data from the antenna"}, + {"help", CmdHelp, AlwaysAvailable, "This help"}, + {"demod", CmdPacDemod, AlwaysAvailable, "Demodulate an PAC tag from the GraphBuffer"}, + {"read", CmdPacRead, IfPm3Lf, "Attempt to read and extract tag data from the antenna"}, + {"clone", CmdPacClone, IfPm3Lf, "clone PAC tag"}, + {"sim", CmdPacSim, IfPm3Lf, "simulate PAC tag"}, {NULL, NULL, NULL, NULL} }; diff --git a/client/cmdlfpac.h b/client/cmdlfpac.h index 3c9c4fbda..edb05b7a5 100644 --- a/client/cmdlfpac.h +++ b/client/cmdlfpac.h @@ -10,6 +10,12 @@ #define CMDLFPAC_H__ #include "common.h" +#include "cmdparser.h" // command_t +#include "comms.h" +#include "ui.h" +#include "cmddata.h" +#include "cmdlf.h" +#include "lfdemod.h" // preamble test int CmdLFPac(const char *Cmd); diff --git a/client/cmdlfparadox.c b/client/cmdlfparadox.c index 4cb0d484f..440f47ced 100644 --- a/client/cmdlfparadox.c +++ b/client/cmdlfparadox.c @@ -112,6 +112,10 @@ static int CmdParadoxRead(const char *Cmd) { return CmdParadoxDemod(Cmd); } +static int CmdParadoxClone(const char *Cmd) { + PrintAndLogEx(INFO, " To be implemented, feel free to contribute!"); + return PM3_SUCCESS; +} static int CmdParadoxSim(const char *Cmd) { PrintAndLogEx(INFO, " To be implemented, feel free to contribute!"); @@ -165,7 +169,7 @@ static command_t CommandTable[] = { {"help", CmdHelp, AlwaysAvailable, "This help"}, {"demod", CmdParadoxDemod, AlwaysAvailable, "Demodulate a Paradox FSK tag from the GraphBuffer"}, {"read", CmdParadoxRead, IfPm3Lf, "Attempt to read and Extract tag data from the antenna"}, -// {"clone", CmdParadoxClone, IfPm3Lf, "clone paradox tag"}, + {"clone", CmdParadoxClone, IfPm3Lf, "clone paradox tag"}, {"sim", CmdParadoxSim, IfPm3Lf, "simulate paradox tag"}, {NULL, NULL, NULL, NULL} };