mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
make style
This commit is contained in:
parent
5520bdc20f
commit
395d0f9ebf
38 changed files with 305 additions and 301 deletions
|
@ -1202,16 +1202,19 @@ int CmdLFfind(const char *Cmd) {
|
||||||
|
|
||||||
if (IfPm3Hitag()) {
|
if (IfPm3Hitag()) {
|
||||||
if (readHitagUid()) {
|
if (readHitagUid()) {
|
||||||
PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Hitag") "found!"); return PM3_SUCCESS;
|
PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Hitag") "found!");
|
||||||
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (readMotorolaUid()) {
|
if (readMotorolaUid()) {
|
||||||
PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Motorola ID") "found!"); return PM3_SUCCESS;
|
PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("Motorola ID") "found!");
|
||||||
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (readCOTAGUid()) {
|
if (readCOTAGUid()) {
|
||||||
PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("COTAG ID") "found!"); return PM3_SUCCESS;
|
PrintAndLogEx(SUCCESS, "\nValid " _GREEN_("COTAG ID") "found!");
|
||||||
|
return PM3_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
PrintAndLogEx(FAILED, _RED_("No data found!"));
|
PrintAndLogEx(FAILED, _RED_("No data found!"));
|
||||||
|
|
|
@ -1263,7 +1263,8 @@ static int CmdEM4x05Dump(const char *Cmd) {
|
||||||
|
|
||||||
while (param_getchar(Cmd, cmdp) != 0x00) {
|
while (param_getchar(Cmd, cmdp) != 0x00) {
|
||||||
switch (tolower(param_getchar(Cmd, cmdp))) {
|
switch (tolower(param_getchar(Cmd, cmdp))) {
|
||||||
case 'h': return usage_lf_em4x05_dump();
|
case 'h':
|
||||||
|
return usage_lf_em4x05_dump();
|
||||||
break;
|
break;
|
||||||
case 'f': // since f could match in password, lets confirm it is 1 character only for an option
|
case 'f': // since f could match in password, lets confirm it is 1 character only for an option
|
||||||
param_getstr(Cmd, cmdp, optchk, sizeof(optchk));
|
param_getstr(Cmd, cmdp, optchk, sizeof(optchk));
|
||||||
|
@ -1327,8 +1328,7 @@ static int CmdEM4x05Dump(const char *Cmd) {
|
||||||
if (status == PM3_SUCCESS) {
|
if (status == PM3_SUCCESS) {
|
||||||
num_to_bytes(word, 4, bytes);
|
num_to_bytes(word, 4, bytes);
|
||||||
PrintAndLogEx(NORMAL, " %02d | %08X | %s | %c |", addr, word, sprint_ascii(bytes, 4), ((lock_bits >> addr) & 1) ? 'x' : ' ');
|
PrintAndLogEx(NORMAL, " %02d | %08X | %s | %c |", addr, word, sprint_ascii(bytes, 4), ((lock_bits >> addr) & 1) ? 'x' : ' ');
|
||||||
}
|
} else
|
||||||
else
|
|
||||||
PrintAndLogEx(NORMAL, " %02d | | | | " _RED_("Fail"), addr);
|
PrintAndLogEx(NORMAL, " %02d | | | | " _RED_("Fail"), addr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -169,7 +169,8 @@ static int CmdNoralsyClone(const char *Cmd) {
|
||||||
PrintAndLogEx(INFO, "Preparing to clone Noralsy to T55x7 with CardId: %u", id);
|
PrintAndLogEx(INFO, "Preparing to clone Noralsy to T55x7 with CardId: %u", id);
|
||||||
print_blocks(blocks, ARRAYLEN(blocks));
|
print_blocks(blocks, ARRAYLEN(blocks));
|
||||||
|
|
||||||
return clone_t55xx_tag(blocks, ARRAYLEN(blocks));}
|
return clone_t55xx_tag(blocks, ARRAYLEN(blocks));
|
||||||
|
}
|
||||||
|
|
||||||
static int CmdNoralsySim(const char *Cmd) {
|
static int CmdNoralsySim(const char *Cmd) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue