mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
style
This commit is contained in:
parent
fc3a518f28
commit
123ef14667
9 changed files with 819 additions and 806 deletions
|
@ -790,17 +790,17 @@ static int NxpSysInfo(uint8_t *uid) {
|
|||
PrintAndLogEx(INFO, "--- " _CYAN_("NXP Sysinfo"));
|
||||
PrintAndLogEx(INFO, " raw... %s", sprint_hex(recv, 8));
|
||||
PrintAndLogEx(INFO, " " _CYAN_("Password protection configuration:"));
|
||||
PrintAndLogEx(INFO, " * Page L read%s password protected", ((recv[2] & 0x01) ? "" : _GREEN_(" not")));
|
||||
PrintAndLogEx(INFO, " * Page L read%s password protected", ((recv[2] & 0x01) ? "" : _GREEN_(" not")));
|
||||
PrintAndLogEx(INFO, " * Page L write%s password protected", ((recv[2] & 0x02) ? "" : _GREEN_(" not")));
|
||||
PrintAndLogEx(INFO, " * Page H read%s password protected", ((recv[2] & 0x10) ? "" : _GREEN_(" not")));
|
||||
PrintAndLogEx(INFO, " * Page H read%s password protected", ((recv[2] & 0x10) ? "" : _GREEN_(" not")));
|
||||
PrintAndLogEx(INFO, " * Page H write%s password protected", ((recv[2] & 0x20) ? "" : _GREEN_(" not")));
|
||||
|
||||
PrintAndLogEx(INFO, " " _CYAN_("Lock bits:"));
|
||||
// AFI lock bit
|
||||
PrintAndLogEx(INFO, " * AFI%s locked", ((recv[3] & 0x01) ? "" : _GREEN_(" not")));
|
||||
PrintAndLogEx(INFO, " * AFI%s locked", ((recv[3] & 0x01) ? "" : _GREEN_(" not")));
|
||||
|
||||
// EAS lock bit
|
||||
PrintAndLogEx(INFO, " * EAS%s locked", ((recv[3] & 0x02) ? "" : _GREEN_(" not")));
|
||||
PrintAndLogEx(INFO, " * EAS%s locked", ((recv[3] & 0x02) ? "" : _GREEN_(" not")));
|
||||
|
||||
// DSFID lock bit
|
||||
PrintAndLogEx(INFO, " * DSFID%s locked", ((recv[3] & 0x03) ? "" : _GREEN_(" not")));
|
||||
|
|
|
@ -1082,7 +1082,7 @@ static int CmdHFiClassELoad(const char *Cmd) {
|
|||
} else {
|
||||
dump = newdump;
|
||||
}
|
||||
|
||||
|
||||
if (verbose) {
|
||||
print_picopass_header((picopass_hdr_t *) dump);
|
||||
print_picopass_info((picopass_hdr_t *) dump);
|
||||
|
@ -1094,7 +1094,7 @@ static int CmdHFiClassELoad(const char *Cmd) {
|
|||
uint16_t bytes_sent = 0;
|
||||
iclass_upload_emul(dump, bytes_read, &bytes_sent);
|
||||
free(dump);
|
||||
PrintAndLogEx(SUCCESS, "uploaded " _YELLOW_("%d") " bytes to emulator memory", bytes_sent);
|
||||
PrintAndLogEx(SUCCESS, "uploaded " _YELLOW_("%d") " bytes to emulator memory", bytes_sent);
|
||||
PrintAndLogEx(HINT, "You are ready to simulate. See " _YELLOW_("`hf iclass sim -h`"));
|
||||
PrintAndLogEx(INFO, "Done!");
|
||||
return PM3_SUCCESS;
|
||||
|
|
|
@ -1479,10 +1479,10 @@ static int CmdHF14AMfRestore(const char *Cmd) {
|
|||
}
|
||||
|
||||
PrintAndLogEx(INFO, " %3d | %s| ( " _RED_("fail") " ) key " _YELLOW_("%c"),
|
||||
blockno,
|
||||
sprint_hex(bldata, sizeof(bldata)),
|
||||
(kt == MF_KEY_A) ? 'A' : 'B'
|
||||
);
|
||||
blockno,
|
||||
sprint_hex(bldata, sizeof(bldata)),
|
||||
(kt == MF_KEY_A) ? 'A' : 'B'
|
||||
);
|
||||
} // end loop key types
|
||||
} // end loop B
|
||||
} // end loop S
|
||||
|
@ -4352,7 +4352,7 @@ int CmdHF14AMfELoad(const char *Cmd) {
|
|||
}
|
||||
|
||||
// ICEMAN: bug. if device has been using ICLASS commands,
|
||||
// the device needs to load the HF fpga image. It takes 1.5 second.
|
||||
// the device needs to load the HF fpga image. It takes 1.5 second.
|
||||
set_fpga_mode(2);
|
||||
|
||||
uint8_t *data = NULL;
|
||||
|
@ -7925,7 +7925,7 @@ static int CmdHF14AGen4Save(const char *Cmd) {
|
|||
CLIParserFree(ctx);
|
||||
|
||||
// ICEMAN: bug. if device has been using ICLASS commands,
|
||||
// the device needs to load the HF fpga image. It takes 1.5 second.
|
||||
// the device needs to load the HF fpga image. It takes 1.5 second.
|
||||
set_fpga_mode(2);
|
||||
|
||||
// validations
|
||||
|
@ -8008,7 +8008,7 @@ static int CmdHF14AGen4Save(const char *Cmd) {
|
|||
|
||||
int res = mfG4GetBlock(pwd, i, dump + (i * MFBLOCK_SIZE), flags);
|
||||
if (res != PM3_SUCCESS) {
|
||||
PrintAndLogEx(NORMAL,"");
|
||||
PrintAndLogEx(NORMAL, "");
|
||||
PrintAndLogEx(WARNING, "Can't get magic card block: %u. error=%d", i, res);
|
||||
PrintAndLogEx(HINT, "Verify your card size, and try again or try another tag position");
|
||||
free(dump);
|
||||
|
|
|
@ -1096,7 +1096,7 @@ int set_fpga_mode(uint8_t mode) {
|
|||
return PM3_ETIMEOUT;
|
||||
}
|
||||
if (resp.status != PM3_SUCCESS) {
|
||||
PrintAndLogEx(ERR, "failed to set FPGA mode");
|
||||
PrintAndLogEx(ERR, "failed to set FPGA mode");
|
||||
}
|
||||
return resp.status;
|
||||
}
|
||||
|
|
|
@ -215,7 +215,7 @@ int CmdEM4x50ELoad(const char *Cmd) {
|
|||
|
||||
// upload to emulator memory
|
||||
em4x50_seteml(data, 0, DUMP_FILESIZE);
|
||||
PrintAndLogEx(HINT, "You are ready to simulate. See " _YELLOW_("`lf em 4x50 sim -h`"));
|
||||
PrintAndLogEx(HINT, "You are ready to simulate. See " _YELLOW_("`lf em 4x50 sim -h`"));
|
||||
PrintAndLogEx(INFO, "Done!");
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue