text
This commit is contained in:
1 parent
ac809c4a9f
commit
12e38cdfff
3 files changed
+12
-23
No files matched your search
+2
-15
@@ -2791,7 +2791,7 @@ static int CmdAsn1Decoder(const char *Cmd) {
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_str0("d", NULL, "<hex>", "ASN1 encoded byte array"),
|
||||
arg_lit0("t", "test", "perform selftest"),
|
||||
arg_lit0("t", "test", "perform self test"),
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
||||
@@ -2820,17 +2820,14 @@ static int CmdDiff(const char *Cmd) {
|
||||
"data diff -w 4 -a hf-mfu-01020304.bin -b hf-mfu-04030201.bin\n"
|
||||
"data diff -a fileA -b fileB\n"
|
||||
"data diff -a fileA --eb\n"
|
||||
// "data diff -a fileA --cb\n"
|
||||
"data diff --fa fileA -b fileB\n"
|
||||
"data diff --fa fileA --fb fileB\n"
|
||||
// "data diff --ea --cb\n"
|
||||
);
|
||||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_str0("a", NULL, "<fn>", "input file name A"),
|
||||
arg_str0("b", NULL, "<fn>", "input file name B"),
|
||||
// arg_lit0(NULL, "cb", "magic gen1 <hf mf csave>"),
|
||||
arg_lit0(NULL, "eb", "emulator memory <hf mf esave>"),
|
||||
arg_str0(NULL, "fa", "<fn>", "input spiffs file A"),
|
||||
arg_str0(NULL, "fb", "<fn>", "input spiffs file B"),
|
||||
@@ -2847,7 +2844,6 @@ static int CmdDiff(const char *Cmd) {
|
||||
char filenameB[FILE_PATH_SIZE] = {0};
|
||||
CLIParamStrToBuf(arg_get_str(ctx, 2), (uint8_t *)filenameB, FILE_PATH_SIZE, &fnlenB);
|
||||
|
||||
// bool use_c = arg_get_lit(ctx, 3);
|
||||
bool use_e = arg_get_lit(ctx, 3);
|
||||
|
||||
// SPIFFS filename A
|
||||
@@ -2952,14 +2948,6 @@ static int CmdDiff(const char *Cmd) {
|
||||
}
|
||||
}
|
||||
|
||||
// dump magic card memory
|
||||
/*
|
||||
if (use_c) {
|
||||
PrintAndLogEx(INFO, " To be implemented, feel free to contribute!");
|
||||
return PM3_ENOTIMPL;
|
||||
}
|
||||
*/
|
||||
|
||||
size_t biggest = (datalenA > datalenB) ? datalenA : datalenB;
|
||||
PrintAndLogEx(DEBUG, "data len: %zu A %zu B %zu", biggest, datalenA, datalenB);
|
||||
|
||||
@@ -2971,7 +2959,6 @@ static int CmdDiff(const char *Cmd) {
|
||||
PrintAndLogEx(INFO, "inB null");
|
||||
}
|
||||
|
||||
|
||||
char hdr0[400] = {0};
|
||||
|
||||
int hdr_sln = (width * 4) + 2;
|
||||
@@ -3417,7 +3404,7 @@ static int CmdAtrLookup(const char *Cmd) {
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_str0("d", NULL, "<hex>", "ASN1 encoded byte array"),
|
||||
// arg_lit0("t", "test", "perform selftest"),
|
||||
// arg_lit0("t", "test", "perform self test"),
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
||||
|
||||
Reference in new issue
Block a user