mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
redundant
This commit is contained in:
parent
8f188a5329
commit
5e4c83cc2f
4 changed files with 11 additions and 11 deletions
|
@ -225,7 +225,7 @@ static int usage_hf_iclass_calc_newkey(void) {
|
||||||
PrintAndLogEx(NORMAL, _YELLOW_("\thf iclass calcnewkey o 1122334455667788 n 2233445566778899"));
|
PrintAndLogEx(NORMAL, _YELLOW_("\thf iclass calcnewkey o 1122334455667788 n 2233445566778899"));
|
||||||
PrintAndLogEx(NORMAL, "\nNOTE: * = required");
|
PrintAndLogEx(NORMAL, "\nNOTE: * = required");
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
return PM3_SUCCESS;;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
static int usage_hf_iclass_managekeys(void) {
|
static int usage_hf_iclass_managekeys(void) {
|
||||||
PrintAndLogEx(NORMAL, "Manage iClass Keys in client memory:\n");
|
PrintAndLogEx(NORMAL, "Manage iClass Keys in client memory:\n");
|
||||||
|
@ -315,7 +315,7 @@ static int usage_hf_iclass_chk(void) {
|
||||||
PrintAndLogEx(NORMAL, _YELLOW_("\thf iclass chk f dictionaries/iclass_default_keys.dic"));
|
PrintAndLogEx(NORMAL, _YELLOW_("\thf iclass chk f dictionaries/iclass_default_keys.dic"));
|
||||||
PrintAndLogEx(NORMAL, _YELLOW_("\thf iclass chk f dictionaries/iclass_default_keys.dic e"));
|
PrintAndLogEx(NORMAL, _YELLOW_("\thf iclass chk f dictionaries/iclass_default_keys.dic e"));
|
||||||
PrintAndLogEx(NORMAL, "");
|
PrintAndLogEx(NORMAL, "");
|
||||||
return PM3_SUCCESS;;
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
static int usage_hf_iclass_lookup(void) {
|
static int usage_hf_iclass_lookup(void) {
|
||||||
PrintAndLogEx(NORMAL, "Lookup keys takes some sniffed trace data and tries to verify what key was used against a dictionary file\n");
|
PrintAndLogEx(NORMAL, "Lookup keys takes some sniffed trace data and tries to verify what key was used against a dictionary file\n");
|
||||||
|
|
|
@ -2921,7 +2921,7 @@ static int CmdHF14AMfChk(const char *Cmd) {
|
||||||
}
|
}
|
||||||
keyBlock = p;
|
keyBlock = p;
|
||||||
}
|
}
|
||||||
PrintAndLogEx(NORMAL, "[%2d] key %s", keycnt, sprint_hex((keyBlock + 6 * keycnt), 6));;
|
PrintAndLogEx(NORMAL, "[%2d] key %s", keycnt, sprint_hex((keyBlock + 6 * keycnt), 6));
|
||||||
keycnt++;
|
keycnt++;
|
||||||
} else if (clen == 1) {
|
} else if (clen == 1) {
|
||||||
if (ctmp == 't') { transferToEml = 1; continue; }
|
if (ctmp == 't') { transferToEml = 1; continue; }
|
||||||
|
|
|
@ -1619,7 +1619,7 @@ static int CmdT55xxWakeUp(const char *Cmd) {
|
||||||
uint32_t password = 0;
|
uint32_t password = 0;
|
||||||
uint8_t cmdp = 0;
|
uint8_t cmdp = 0;
|
||||||
bool errors = false;
|
bool errors = false;
|
||||||
uint8_t downlink_mode = config.downlink_mode;;
|
uint8_t downlink_mode = config.downlink_mode;
|
||||||
|
|
||||||
while (param_getchar(Cmd, cmdp) != 0x00 && !errors) {
|
while (param_getchar(Cmd, cmdp) != 0x00 && !errors) {
|
||||||
switch (tolower(param_getchar(Cmd, cmdp))) {
|
switch (tolower(param_getchar(Cmd, cmdp))) {
|
||||||
|
@ -1675,7 +1675,7 @@ static int CmdT55xxWriteBlock(const char *Cmd) {
|
||||||
bool errors = false;
|
bool errors = false;
|
||||||
bool validate = false;
|
bool validate = false;
|
||||||
uint8_t cmdp = 0;
|
uint8_t cmdp = 0;
|
||||||
uint32_t downlink_mode = config.downlink_mode;;
|
uint32_t downlink_mode = config.downlink_mode;
|
||||||
|
|
||||||
while (param_getchar(Cmd, cmdp) != 0x00 && !errors) {
|
while (param_getchar(Cmd, cmdp) != 0x00 && !errors) {
|
||||||
switch (tolower(param_getchar(Cmd, cmdp))) {
|
switch (tolower(param_getchar(Cmd, cmdp))) {
|
||||||
|
@ -1815,7 +1815,7 @@ static int CmdT55xxDangerousRaw(const char *Cmd) {
|
||||||
static int CmdT55xxReadTrace(const char *Cmd) {
|
static int CmdT55xxReadTrace(const char *Cmd) {
|
||||||
|
|
||||||
bool frombuff = false;
|
bool frombuff = false;
|
||||||
uint8_t downlink_mode = config.downlink_mode;;
|
uint8_t downlink_mode = config.downlink_mode;
|
||||||
uint8_t cmdp = 0;
|
uint8_t cmdp = 0;
|
||||||
bool errors = false;
|
bool errors = false;
|
||||||
|
|
||||||
|
@ -2252,7 +2252,7 @@ static int CmdT55xxDump(const char *Cmd) {
|
||||||
|
|
||||||
uint32_t password = 0;
|
uint32_t password = 0;
|
||||||
uint8_t override = 0;
|
uint8_t override = 0;
|
||||||
uint8_t downlink_mode = config.downlink_mode;;
|
uint8_t downlink_mode = config.downlink_mode;
|
||||||
bool usepwd = false;
|
bool usepwd = false;
|
||||||
bool errors = false;
|
bool errors = false;
|
||||||
uint8_t cmdp = 0;
|
uint8_t cmdp = 0;
|
||||||
|
@ -2455,7 +2455,7 @@ static int CmdT55xxRestore(const char *Cmd) {
|
||||||
|
|
||||||
uint32_t password = 0;
|
uint32_t password = 0;
|
||||||
uint8_t override = 0;
|
uint8_t override = 0;
|
||||||
uint8_t downlink_mode = config.downlink_mode;;
|
uint8_t downlink_mode = config.downlink_mode;
|
||||||
bool usepwd = false;
|
bool usepwd = false;
|
||||||
bool errors = false;
|
bool errors = false;
|
||||||
uint8_t cmdp = 0;
|
uint8_t cmdp = 0;
|
||||||
|
@ -2809,7 +2809,7 @@ static void t55x7_create_config_block(int tagtype) {
|
||||||
|
|
||||||
static int CmdResetRead(const char *Cmd) {
|
static int CmdResetRead(const char *Cmd) {
|
||||||
|
|
||||||
uint8_t downlink_mode = config.downlink_mode;;
|
uint8_t downlink_mode = config.downlink_mode;
|
||||||
uint8_t flags = 0;
|
uint8_t flags = 0;
|
||||||
uint8_t cmdp = 0;
|
uint8_t cmdp = 0;
|
||||||
bool errors = false;
|
bool errors = false;
|
||||||
|
|
|
@ -87,13 +87,13 @@ static int CmdTIDemod(const char *Cmd) {
|
||||||
int convLen = (highLen > lowLen) ? highLen : lowLen;
|
int convLen = (highLen > lowLen) ? highLen : lowLen;
|
||||||
uint16_t crc;
|
uint16_t crc;
|
||||||
int i, j, TagType;
|
int i, j, TagType;
|
||||||
int lowSum = 0, highSum = 0;;
|
int lowSum = 0, highSum = 0;
|
||||||
int lowTot = 0, highTot = 0;
|
int lowTot = 0, highTot = 0;
|
||||||
int retval = PM3_ESOFT;
|
int retval = PM3_ESOFT;
|
||||||
|
|
||||||
for (i = 0; i < GraphTraceLen - convLen; i++) {
|
for (i = 0; i < GraphTraceLen - convLen; i++) {
|
||||||
lowSum = 0;
|
lowSum = 0;
|
||||||
highSum = 0;;
|
highSum = 0;
|
||||||
|
|
||||||
for (j = 0; j < lowLen; j++) {
|
for (j = 0; j < lowLen; j++) {
|
||||||
lowSum += LowTone[j] * GraphBuffer[i + j];
|
lowSum += LowTone[j] * GraphBuffer[i + j];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue