mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
lf em 4x05 view is a new command to view dump files. lf em 4x05 view got detailed breakdown of config word bits. protection bits are guarded by verbose flag and identifcation got better generic instead of an wrongly absolut match
This commit is contained in:
parent
55702e6e86
commit
98e44176a9
3 changed files with 721 additions and 356 deletions
|
@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
|
|||
This project uses the changelog in accordance with [keepchangelog](http://keepachangelog.com/). Please use this to write notable changes, which is not the same as git commit log...
|
||||
|
||||
## [unreleased][unreleased]
|
||||
- Change `lf em 4x05 info` - use `-v` verbose flag to see protection bits (@iceman1001)
|
||||
- Changed `lf em 4x05 info` - output now shows detailed bits (@iceman1001)
|
||||
- Added `lf em 4x05 view` - now supports viewing of dump files (@iceman1001)
|
||||
- Changed `hf 15 eview/view` - now supports the `-z` flag for dense output (@iceman1001)
|
||||
- Changed `hf mf cload` - now supports specifying tag size (@augustozanellato)
|
||||
- Added `hf 14b raw --pico` - now supports picopass anticollision over ISO14443-B (@iceman1001)
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -565,18 +565,18 @@ char *sprint_breakdown_bin(color_t color, const char* bs, int width, int padn, i
|
|||
}
|
||||
|
||||
const char *prepad = " ";
|
||||
const char *postmarker = "................................";
|
||||
const char *postmarker = " ................................";
|
||||
static char buf[32 + 120] = {0};
|
||||
memset(buf, 0, sizeof(buf));
|
||||
|
||||
int8_t end = (width - padn - 1 - bits);
|
||||
int8_t end = (width - padn - bits);
|
||||
if (end < 0) {
|
||||
end = 0;
|
||||
}
|
||||
|
||||
switch (color) {
|
||||
case C_GREEN: {
|
||||
snprintf(buf, sizeof(buf), "%.*s" _GREEN_("%.*s") " %.*s - " _GREEN_("%s")
|
||||
snprintf(buf, sizeof(buf), "%.*s" _GREEN_("%.*s") "%.*s - " _GREEN_("%s")
|
||||
, padn, prepad
|
||||
, bits, bs + padn
|
||||
, end, postmarker
|
||||
|
@ -585,7 +585,7 @@ char *sprint_breakdown_bin(color_t color, const char* bs, int width, int padn, i
|
|||
break;
|
||||
}
|
||||
case C_RED: {
|
||||
snprintf(buf, sizeof(buf), "%.*s" _RED_("%.*s") " %.*s - " _RED_("%s")
|
||||
snprintf(buf, sizeof(buf), "%.*s" _RED_("%.*s") "%.*s - " _RED_("%s")
|
||||
, padn, prepad
|
||||
, bits, bs + padn
|
||||
, end, postmarker
|
||||
|
@ -594,7 +594,7 @@ char *sprint_breakdown_bin(color_t color, const char* bs, int width, int padn, i
|
|||
break;
|
||||
}
|
||||
case C_YELLOW: {
|
||||
snprintf(buf, sizeof(buf), "%.*s" _YELLOW_("%.*s") " %.*s - " _YELLOW_("%s")
|
||||
snprintf(buf, sizeof(buf), "%.*s" _YELLOW_("%.*s") "%.*s - " _YELLOW_("%s")
|
||||
, padn, prepad
|
||||
, bits, bs + padn
|
||||
, end, postmarker
|
||||
|
@ -604,7 +604,7 @@ char *sprint_breakdown_bin(color_t color, const char* bs, int width, int padn, i
|
|||
}
|
||||
case C_NONE:
|
||||
default: {
|
||||
snprintf(buf, sizeof(buf), "%.*s%.*s %.*s - %s"
|
||||
snprintf(buf, sizeof(buf), "%.*s%.*s%.*s - %s"
|
||||
, padn, prepad
|
||||
, bits, bs + padn
|
||||
, end, postmarker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue