mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 06:13:51 -07:00
hf xxx - uses cliparser and textual
This commit is contained in:
parent
246ee8b2d7
commit
8bb7e4ed8b
1 changed files with 12 additions and 14 deletions
|
@ -46,21 +46,19 @@
|
||||||
|
|
||||||
static int CmdHelp(const char *Cmd);
|
static int CmdHelp(const char *Cmd);
|
||||||
|
|
||||||
static int usage_hf_search(void) {
|
|
||||||
PrintAndLogEx(NORMAL, "Usage: hf search");
|
|
||||||
PrintAndLogEx(NORMAL, "Will try to find a HF read out of the unknown tag.");
|
|
||||||
PrintAndLogEx(NORMAL, "Continues to search for all different HF protocols");
|
|
||||||
PrintAndLogEx(NORMAL, "Options:");
|
|
||||||
PrintAndLogEx(NORMAL, " h - This help");
|
|
||||||
PrintAndLogEx(NORMAL, "");
|
|
||||||
return PM3_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
int CmdHFSearch(const char *Cmd) {
|
int CmdHFSearch(const char *Cmd) {
|
||||||
|
|
||||||
char cmdp = tolower(param_getchar(Cmd, 0));
|
CLIParserContext *ctx;
|
||||||
if (cmdp == 'h') return usage_hf_search();
|
CLIParserInit(&ctx, "hf search",
|
||||||
|
"Will try to find a HF read out of the unknown tag.\n"
|
||||||
|
"Continues to search for all different HF protocols.",
|
||||||
|
"hf sniff"
|
||||||
|
);
|
||||||
|
void *argtable[] = {
|
||||||
|
arg_param_begin,
|
||||||
|
arg_param_end
|
||||||
|
};
|
||||||
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
int res = PM3_ESOFT;
|
int res = PM3_ESOFT;
|
||||||
|
|
||||||
PROMPT_CLEARLINE;
|
PROMPT_CLEARLINE;
|
||||||
|
@ -271,7 +269,7 @@ int CmdHFSniff(const char *Cmd) {
|
||||||
|
|
||||||
CLIParserContext *ctx;
|
CLIParserContext *ctx;
|
||||||
CLIParserInit(&ctx, "hf sniff",
|
CLIParserInit(&ctx, "hf sniff",
|
||||||
"The high frequency sniffer will assign all available memory on device for sniffed data.s\n"
|
"The high frequency sniffer will assign all available memory on device for sniffed data.\n"
|
||||||
"Use `data samples` to download from device and `data plot` to visualize it.\n"
|
"Use `data samples` to download from device and `data plot` to visualize it.\n"
|
||||||
"Press button to quit the sniffing.",
|
"Press button to quit the sniffing.",
|
||||||
"hf sniff\n"
|
"hf sniff\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue