mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
some lF commands demod got cliparser
This commit is contained in:
parent
5dd8b3294a
commit
878170f2bd
6 changed files with 72 additions and 6 deletions
|
@ -112,7 +112,18 @@ int demodPresco(bool verbose) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CmdPrescoDemod(const char *Cmd) {
|
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);
|
return demodPresco(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -178,7 +178,18 @@ int demodPyramid(bool verbose) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CmdPyramidDemod(const char *Cmd) {
|
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);
|
return demodPyramid(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,18 @@ int demodSecurakey(bool verbose) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CmdSecurakeyDemod(const char *Cmd) {
|
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);
|
return demodSecurakey(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -272,7 +272,18 @@ out:
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CmdTIDemod(const char *Cmd) {
|
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);
|
return demodTI(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,18 @@ int demodViking(bool verbose) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CmdVikingDemod(const char *Cmd) {
|
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);
|
return demodViking(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -133,7 +133,18 @@ int demodVisa2k(bool verbose) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static int CmdVisa2kDemod(const char *Cmd) {
|
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);
|
return demodVisa2k(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue