mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
lf em 4x05 view -vv - to see config bit decode
This commit is contained in:
parent
3ccfd5835c
commit
f48d495565
1 changed files with 6 additions and 2 deletions
|
@ -2482,7 +2482,7 @@ static int CmdEM4x05View(const char *Cmd) {
|
|||
void *argtable[] = {
|
||||
arg_param_begin,
|
||||
arg_str1("f", "file", "<fn>", "Specify a filename for dump file"),
|
||||
arg_lit0("v", "verbose", "Verbose output"),
|
||||
arg_litn("v", "verbose", 0, 2, "Verbose output"),
|
||||
arg_param_end
|
||||
};
|
||||
CLIExecWithReturn(ctx, Cmd, argtable, false);
|
||||
|
@ -2490,6 +2490,7 @@ static int CmdEM4x05View(const char *Cmd) {
|
|||
char filename[FILE_PATH_SIZE];
|
||||
CLIParamStrToBuf(arg_get_str(ctx, 1), (uint8_t *)filename, FILE_PATH_SIZE, &fnlen);
|
||||
bool verbose = arg_get_lit(ctx, 2);
|
||||
bool verbose2 = arg_get_lit(ctx, 2) > 1;
|
||||
CLIParserFree(ctx);
|
||||
|
||||
// read dump file
|
||||
|
@ -2514,8 +2515,11 @@ static int CmdEM4x05View(const char *Cmd) {
|
|||
uint32_t serial = bytes_to_num(dump + EM4X05_BLOCK_SIZE, EM4X05_BLOCK_SIZE);
|
||||
uint32_t config = bytes_to_num(dump + (EM_CONFIG_BLOCK * EM4X05_BLOCK_SIZE), EM4X05_BLOCK_SIZE);
|
||||
printEM4x05info(block0, serial);
|
||||
|
||||
if (verbose2) {
|
||||
printEM4x05config(cardtype, config);
|
||||
}
|
||||
}
|
||||
|
||||
em4x05_print_hdr();
|
||||
em4x05_print_blocks(cardtype, dump, bytes_read);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue