mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
chg: 'sc raw' - print response bytes
This commit is contained in:
parent
5bd300bb59
commit
c84f81de76
1 changed files with 10 additions and 1 deletions
|
@ -499,7 +499,7 @@ static int CmdSmartRaw(const char *Cmd) {
|
||||||
data[4] = buf[1];
|
data[4] = buf[1];
|
||||||
|
|
||||||
clearCommandBuffer();
|
clearCommandBuffer();
|
||||||
SendCommandOLD(CMD_SMART_RAW, 0, hexlen, 0, data, hexlen);
|
SendCommandMIX(CMD_SMART_RAW, 0, hexlen, 0, data, hexlen);
|
||||||
len = smart_response(buf);
|
len = smart_response(buf);
|
||||||
|
|
||||||
data[4] = 0;
|
data[4] = 0;
|
||||||
|
@ -507,6 +507,15 @@ static int CmdSmartRaw(const char *Cmd) {
|
||||||
|
|
||||||
if (decodeTLV && len > 4)
|
if (decodeTLV && len > 4)
|
||||||
TLVPrintFromBuffer(buf, len - 2);
|
TLVPrintFromBuffer(buf, len - 2);
|
||||||
|
else {
|
||||||
|
if (len > 16) {
|
||||||
|
for (int i=0; i<len; i += 16) {
|
||||||
|
PrintAndLogEx(SUCCESS, "%s", sprint_hex_ascii(buf + i, 16)) ;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
PrintAndLogEx(SUCCESS, "%s", sprint_hex_ascii(buf, len)) ;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
free(buf);
|
free(buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue