mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Update cmdlfem4x.c
em 4x05_dump did not output data
This commit is contained in:
parent
a1eb992fa8
commit
3a9087d2a1
1 changed files with 13 additions and 5 deletions
|
@ -1213,19 +1213,27 @@ static int CmdEM4x05Dump(const char *Cmd) {
|
||||||
usePwd = true;
|
usePwd = true;
|
||||||
|
|
||||||
int success = PM3_SUCCESS;
|
int success = PM3_SUCCESS;
|
||||||
|
int status;
|
||||||
uint32_t word = 0;
|
uint32_t word = 0;
|
||||||
PrintAndLogEx(NORMAL, "Addr | data | ascii");
|
PrintAndLogEx(NORMAL, "Addr | data | info");
|
||||||
PrintAndLogEx(NORMAL, "-----+--------+------");
|
PrintAndLogEx(NORMAL, "-----+----------+-------");
|
||||||
for (; addr < 16; addr++) {
|
for (; addr < 16; addr++) {
|
||||||
|
|
||||||
if (addr == 2) {
|
if (addr == 2) {
|
||||||
if (usePwd) {
|
if (usePwd) {
|
||||||
PrintAndLogEx(NORMAL, " %02u | %08X", addr, pwd, word);
|
PrintAndLogEx(NORMAL, " %02u | %08X |", addr, pwd, word);
|
||||||
} else {
|
} else {
|
||||||
PrintAndLogEx(NORMAL, " 02 | " _RED_("cannot read"));
|
PrintAndLogEx(NORMAL, " 02 | | " _RED_("cannot read"));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
success &= EM4x05ReadWord_ext(addr, pwd, usePwd, &word);
|
// success &= EM4x05ReadWord_ext(addr, pwd, usePwd, &word);
|
||||||
|
status = EM4x05ReadWord_ext(addr, pwd, usePwd, &word); // Get status for single read
|
||||||
|
success &= status; // Update status to match previous return
|
||||||
|
|
||||||
|
if (status == PM3_SUCCESS)
|
||||||
|
PrintAndLogEx(NORMAL, " %02d | %08X | %s", addr, word, (addr > 13) ? "Lock" : "");
|
||||||
|
else
|
||||||
|
PrintAndLogEx(NORMAL, " %02d | " _RED_("Fail"), addr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue