mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-09-22 08:16:16 +08:00
some lF commands demod got cliparser
This commit is contained in:
parent
5dd8b3294a
commit
878170f2bd
|
@ -112,7 +112,18 @@ int demodPresco(bool verbose) {
|
|||
}
|
||||
|
||||
static int CmdPrescoDemod(const char *Cmd) {
|
||||
(void)Cmd; // Cmd is not used so far
|
||||
CLIParserContext *ctx;
|
||||
CLIParserInit(&ctx, "lf presco demod",
|
||||
"Try to find presco preamble, if found decode / descramble data",
|
||||
"lf presco demod"
|
||||
);
|
||||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
CLIParserFree(ctx);
|
||||
return demodPresco(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -178,7 +178,18 @@ int demodPyramid(bool verbose) {
|
|||
}
|
||||
|
||||
static int CmdPyramidDemod(const char *Cmd) {
|
||||
(void)Cmd; // Cmd is not used so far
|
||||
CLIParserContext *ctx;
|
||||
CLIParserInit(&ctx, "lf pyramid demod",
|
||||
"Try to find Farpoint/Pyramid preamble, if found decode / descramble data",
|
||||
"lf pyramid demod"
|
||||
);
|
||||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
CLIParserFree(ctx);
|
||||
return demodPyramid(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -114,7 +114,18 @@ int demodSecurakey(bool verbose) {
|
|||
}
|
||||
|
||||
static int CmdSecurakeyDemod(const char *Cmd) {
|
||||
(void)Cmd; // Cmd is not used so far
|
||||
CLIParserContext *ctx;
|
||||
CLIParserInit(&ctx, "lf securakey demod",
|
||||
"Try to find Securakey preamble, if found decode / descramble data",
|
||||
"lf securakey demod"
|
||||
);
|
||||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
CLIParserFree(ctx);
|
||||
return demodSecurakey(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -272,7 +272,18 @@ out:
|
|||
}
|
||||
|
||||
static int CmdTIDemod(const char *Cmd) {
|
||||
(void)Cmd; // Cmd is not used so far
|
||||
CLIParserContext *ctx;
|
||||
CLIParserInit(&ctx, "lf ti demod",
|
||||
"Try to find TI preamble, if found decode / descramble data",
|
||||
"lf ti demod"
|
||||
);
|
||||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
CLIParserFree(ctx);
|
||||
return demodTI(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -54,7 +54,18 @@ int demodViking(bool verbose) {
|
|||
}
|
||||
|
||||
static int CmdVikingDemod(const char *Cmd) {
|
||||
(void)Cmd;
|
||||
CLIParserContext *ctx;
|
||||
CLIParserInit(&ctx, "lf viking demod",
|
||||
"Try to find Viking AM preamble, if found decode / descramble data",
|
||||
"lf viking demod"
|
||||
);
|
||||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
CLIParserFree(ctx);
|
||||
return demodViking(true);
|
||||
}
|
||||
|
||||
|
|
|
@ -133,7 +133,18 @@ int demodVisa2k(bool verbose) {
|
|||
}
|
||||
|
||||
static int CmdVisa2kDemod(const char *Cmd) {
|
||||
(void)Cmd; // Cmd is not used so far
|
||||
CLIParserContext *ctx;
|
||||
CLIParserInit(&ctx, "lf visa2000 demod",
|
||||
"Try to find visa2000 preamble, if found decode / descramble data",
|
||||
"lf visa2000 demod"
|
||||
);
|
||||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
CLIParserFree(ctx);
|
||||
return demodVisa2k(true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue