fix typos and regenerate command list
This commit is contained in:
1 parent
e3a6ab7b4f
commit
ef0cf93a5d
9 files changed
+85
-56
No files matched your search
@@ -40,10 +40,10 @@
|
||||
static int CmdHelp(const char *Cmd);
|
||||
|
||||
static uint8_t calculateLRC(const uint8_t *d, uint8_t n) {
|
||||
uint8_t lcr = 0;
|
||||
uint8_t lrc = 0;
|
||||
for (uint8_t i = 0; i < n; i++)
|
||||
lcr ^= d[i];
|
||||
return lcr;
|
||||
lrc ^= d[i];
|
||||
return lrc;
|
||||
}
|
||||
/*
|
||||
static uint16_t matrixadd ( uint8_t* bytes, uint8_t len){
|
||||
@@ -242,17 +242,17 @@ static int CmdAnalyseLfsr(const char *Cmd) {
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
static int CmdAnalyseLCR(const char *Cmd) {
|
||||
static int CmdAnalyseLRC(const char *Cmd) {
|
||||
CLIParserContext *ctx;
|
||||
CLIParserInit(&ctx, "analyse lcr",
|
||||
CLIParserInit(&ctx, "analyse lrc",
|
||||
"Specifying the bytes of a UID with a known LRC will find the last byte value\n"
|
||||
"needed to generate that LRC with a rolling XOR. All bytes should be specified in HEX.",
|
||||
"analyse lcr -d 04008064BA -> Target (BA) requires final LRC XOR byte value: 5A"
|
||||
"analyse lrc -d 04008064BA -> Target (BA) requires final LRC XOR byte value: 5A"
|
||||
);
|
||||
|
||||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_str1("d", "data", "<hex>", "bytes to calc missing XOR in a LCR"),
|
||||
arg_str1("d", "data", "<hex>", "bytes to calc missing XOR in a LRC"),
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||
@@ -1171,7 +1171,7 @@ static int CmdAnalyseUnits(const char *Cmd) {
|
||||
|
||||
static command_t CommandTable[] = {
|
||||
{"help", CmdHelp, AlwaysAvailable, "This help"},
|
||||
{"lcr", CmdAnalyseLCR, AlwaysAvailable, "Generate final byte for XOR LRC"},
|
||||
{"lrc", CmdAnalyseLRC, AlwaysAvailable, "Generate final byte for XOR LRC"},
|
||||
{"crc", CmdAnalyseCRC, AlwaysAvailable, "Stub method for CRC evaluations"},
|
||||
{"chksum", CmdAnalyseCHKSUM, AlwaysAvailable, "Checksum with adding, masking and one's complement"},
|
||||
{"dates", CmdAnalyseDates, AlwaysAvailable, "Look for datestamps in a given array of bytes"},
|
||||
|
||||
@@ -63,7 +63,7 @@ const static vocabulary_t vocabulary[] = {
|
||||
{ 1, "prefs set output" },
|
||||
{ 1, "prefs set plotsliders" },
|
||||
{ 1, "analyse help" },
|
||||
{ 1, "analyse lcr" },
|
||||
{ 1, "analyse lrc" },
|
||||
{ 1, "analyse crc" },
|
||||
{ 1, "analyse chksum" },
|
||||
{ 1, "analyse dates" },
|
||||
@@ -267,6 +267,7 @@ const static vocabulary_t vocabulary[] = {
|
||||
{ 0, "hf gallagher delete" },
|
||||
{ 1, "hf gallagher diversifykey" },
|
||||
{ 1, "hf gallagher decode" },
|
||||
{ 1, "hf gallagher encode" },
|
||||
{ 1, "hf iclass help" },
|
||||
{ 1, "hf iclass list" },
|
||||
{ 0, "hf iclass dump" },
|
||||
|
||||
Reference in new issue
Block a user