hf legic: rename repeat fill to fill

This commit is contained in:
YoungJules
2026-07-25 19:39:23 +02:00
parent 1793a2e9b9
commit 862a338feb
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -818,13 +818,13 @@ static int CmdLegicWrbl(const char *Cmd) {
"Write data to a LEGIC Prime tag. It autodetects tagsize to ensure proper write",
"hf legic wrbl -o 0 -d 11223344 -> Write 0x11223344 starting from offset 0)\n"
"hf legic wrbl -o 10 -d DEADBEEF -> Write 0xdeadbeef starting from offset 10\n"
"hf legic wrbl -o 35 --repeat 00 -> Repeat 0x00 from offset 35 to end");
"hf legic wrbl -o 35 --fill 00 -> Fill 0x00 from offset 35 to end");
void *argtable[] = {
arg_param_begin,
arg_int1("o", "offset", "<dec>", "offset in data array to start writing"),
arg_str0("d", "data", "<hex>", "data to write"),
arg_str0("r", "repeat", "<hex>", "repeat byte to write from offset to end of card"),
arg_str0(NULL, "fill", "<hex>", "fill byte to write from offset to end of card"),
arg_lit0(NULL, "danger", "Auto-confirm dangerous operations"),
arg_param_end
};
@@ -858,12 +858,12 @@ static int CmdLegicWrbl(const char *Cmd) {
CLIParserFree(ctx);
if (has_data && has_fill) {
PrintAndLogEx(WARNING, "Use either --data or --repeat, not both");
PrintAndLogEx(WARNING, "Use either --data or --fill, not both");
return PM3_EINVARG;
}
if (!has_data && !has_fill) {
PrintAndLogEx(WARNING, "Either --data or --repeat is required");
PrintAndLogEx(WARNING, "Either --data or --fill is required");
return PM3_EINVARG;
}
+1 -1
View File
@@ -592,7 +592,7 @@ Check column "offline" for their availability.
|`hf legic clone `|N |`Clone a LEGIC Prime dump to a new MCC or different tag`
|`hf legic migrate `|N |`Clone a LEGIC Prime dump to a tag; DCF stays opt-in`
|`hf legic wipe `|N |`Wipe a LEGIC Prime tag`
|`hf legic wrbl `|N |`Write data to a LEGIC Prime tag (supports --repeat fill)`
|`hf legic wrbl `|N |`Write data to a LEGIC Prime tag (supports --fill)`
|`hf legic sim `|N |`Start tag simulator`
|`hf legic eload `|N |`Upload file into emulator memory`
|`hf legic esave `|N |`Save emulator memory to file`