mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 10:11:58 +08:00
hf mf restore accepts 4,7,10 hex bytes UID
This commit is contained in:
parent
7d7b608485
commit
f59f8dd528
1 changed files with 2 additions and 2 deletions
|
@ -962,7 +962,7 @@ static int CmdHF14AMfRestore(const char *Cmd) {
|
|||
arg_lit0(NULL, "1k", "MIFARE Classic 1k / S50 (def)"),
|
||||
arg_lit0(NULL, "2k", "MIFARE Classic/Plus 2k"),
|
||||
arg_lit0(NULL, "4k", "MIFARE Classic 4k / S70"),
|
||||
arg_str0("u", "uid", "<hex>", "uid, 6 hex bytes"),
|
||||
arg_str0("u", "uid", "<hex>", "uid, (4|7|10 hex bytes)"),
|
||||
arg_str0("f", "file", "<fn>", "specify dump filename (bin/eml/json)"),
|
||||
arg_str0("k", "kfn", "<fn>", "key filename"),
|
||||
arg_lit0(NULL, "ka", "use specified keyfile to authenticate"),
|
||||
|
@ -976,7 +976,7 @@ static int CmdHF14AMfRestore(const char *Cmd) {
|
|||
bool m4 = arg_get_lit(ctx, 4);
|
||||
|
||||
int uidlen = 0;
|
||||
char uid[14] = {0};
|
||||
char uid[20] = {0};
|
||||
CLIParamStrToBuf(arg_get_str(ctx, 5), (uint8_t *)uid, sizeof(uid), &uidlen);
|
||||
|
||||
int datafnlen = 0;
|
||||
|
|
Loading…
Reference in a new issue