mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
replaced blue color by green or yellow
This commit is contained in:
parent
d684347429
commit
25b0c2e1eb
1 changed files with 9 additions and 9 deletions
|
@ -217,19 +217,19 @@ static void print_result(const em4x50_word_t *words, int fwr, int lwr) {
|
||||||
print_bit_table(words[i]);
|
print_bit_table(words[i]);
|
||||||
|
|
||||||
// final result
|
// final result
|
||||||
sprintf(pstring, "\n word[%i] msb: " _BLUE_("0x"), i);
|
sprintf(pstring, "\n word[%i] msb: " _GREEN_("0x"), i);
|
||||||
strcat(string, pstring);
|
strcat(string, pstring);
|
||||||
|
|
||||||
for (int j = 0; j < 4; j++) {
|
for (int j = 0; j < 4; j++) {
|
||||||
sprintf(pstring, _BLUE_("%02x"), words[i].byte[j]);
|
sprintf(pstring, _GREEN_("%02x"), words[i].byte[j]);
|
||||||
strcat(string, pstring);
|
strcat(string, pstring);
|
||||||
}
|
}
|
||||||
|
|
||||||
sprintf(pstring, "\n word[%i] lsb: " _BLUE_("0x"), i);
|
sprintf(pstring, "\n word[%i] lsb: " _GREEN_("0x"), i);
|
||||||
strcat(string, pstring);
|
strcat(string, pstring);
|
||||||
|
|
||||||
for (int j = 0; j < 4; j++) {
|
for (int j = 0; j < 4; j++) {
|
||||||
sprintf(pstring, _BLUE_("%02x"), msb2lsb(words[i].byte[3-j]));
|
sprintf(pstring, _GREEN_("%02x"), msb2lsb(words[i].byte[3-j]));
|
||||||
strcat(string, pstring);
|
strcat(string, pstring);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -287,19 +287,19 @@ static void print_info_result(PacketResponseNG *resp, const em4x50_data_t *etd,
|
||||||
|
|
||||||
switch(i) {
|
switch(i) {
|
||||||
case 0:
|
case 0:
|
||||||
sprintf(pstring, _BLUE_(" password, write only"));
|
sprintf(pstring, _YELLOW_(" password, write only"));
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
sprintf(pstring, _BLUE_(" protection word, write inhibited"));
|
sprintf(pstring, _YELLOW_(" protection word, write inhibited"));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
sprintf(pstring, _BLUE_(" control word, write inhibited"));
|
sprintf(pstring, _YELLOW_(" control word, write inhibited"));
|
||||||
break;
|
break;
|
||||||
case 32:
|
case 32:
|
||||||
sprintf(pstring, _BLUE_(" device serial number, read only"));
|
sprintf(pstring, _YELLOW_(" device serial number, read only"));
|
||||||
break;
|
break;
|
||||||
case 33:
|
case 33:
|
||||||
sprintf(pstring, _BLUE_(" device identification, read only"));
|
sprintf(pstring, _YELLOW_(" device identification, read only"));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
sprintf(pstring, " user data");
|
sprintf(pstring, " user data");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue