mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
hf mfdes getuid/info/eum - with a default cliparser
This commit is contained in:
parent
eba87bdd4b
commit
e96cfa94b6
2 changed files with 34 additions and 4 deletions
|
@ -2256,7 +2256,17 @@ static int desfire_authenticate(int cmdAuthMode, int cmdAuthAlgo, uint8_t *aid,
|
|||
}
|
||||
|
||||
static int CmdHF14ADesGetUID(const char *Cmd) {
|
||||
(void)Cmd;
|
||||
CLIParserContext *ctx;
|
||||
CLIParserInit(&ctx, "hf mfdes getuid",
|
||||
"Get UID from a MIFARE DESfire tag",
|
||||
"hf mfdes getuid");
|
||||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
CLIParserFree(ctx);
|
||||
|
||||
uint8_t uid[16] = {0};
|
||||
int res = handler_desfire_getuid(uid);
|
||||
|
@ -3438,7 +3448,18 @@ static int CmdHF14ADesFormatPICC(const char *Cmd) {
|
|||
}
|
||||
|
||||
static int CmdHF14ADesInfo(const char *Cmd) {
|
||||
(void)Cmd; // Cmd is not used so far
|
||||
CLIParserContext *ctx;
|
||||
CLIParserInit(&ctx, "hf mfdes info",
|
||||
"Get info from MIFARE DESfire tags",
|
||||
"hf mfdes info");
|
||||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
CLIParserFree(ctx);
|
||||
|
||||
DropFieldDesfire();
|
||||
|
||||
mfdes_info_res_t info;
|
||||
|
@ -3862,8 +3883,18 @@ static int CmdHF14ADesDump(const char *Cmd) {
|
|||
}
|
||||
|
||||
static int CmdHF14ADesEnumApplications(const char *Cmd) {
|
||||
CLIParserContext *ctx;
|
||||
CLIParserInit(&ctx, "hf mfdes enum",
|
||||
"Enumerate all AID's on MIFARE DESfire tag",
|
||||
"hf mfdes enum");
|
||||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
CLIParserFree(ctx);
|
||||
|
||||
(void)Cmd; // Cmd is not used so far
|
||||
DropFieldDesfire();
|
||||
|
||||
uint8_t aid[3] = {0};
|
||||
|
|
|
@ -102,7 +102,6 @@ hf mf gen3uid
|
|||
hf mf gen3blk
|
||||
hf mf gen3freeze
|
||||
hf mf ice
|
||||
hf mfdes getuid
|
||||
lf config
|
||||
lf cmdread
|
||||
lf read
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue