mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-22 06:13:27 -07:00
flag --extract works
This commit is contained in:
parent
a0af1061c9
commit
7ad6ec7a69
1 changed files with 12 additions and 3 deletions
|
@ -1489,7 +1489,10 @@ int CmdHFEMVScan(const char *cmd) {
|
||||||
TLVPrintFromBuffer(buf, len);
|
TLVPrintFromBuffer(buf, len);
|
||||||
|
|
||||||
struct tlvdb *fci = tlvdb_parse_multi(buf, len);
|
struct tlvdb *fci = tlvdb_parse_multi(buf, len);
|
||||||
|
if (extractTLVElements)
|
||||||
JsonSaveTLVTree(root, root, "$.Application.FCITemplate", fci);
|
JsonSaveTLVTree(root, root, "$.Application.FCITemplate", fci);
|
||||||
|
else
|
||||||
|
JsonSaveTLVTreeElm(root, "$.Application.FCITemplate", fci, true, true, false);
|
||||||
tlvdb_free(fci);
|
tlvdb_free(fci);
|
||||||
|
|
||||||
// create transaction parameters
|
// create transaction parameters
|
||||||
|
@ -1552,7 +1555,10 @@ int CmdHFEMVScan(const char *cmd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
struct tlvdb *gpofci = tlvdb_parse_multi(buf, len);
|
struct tlvdb *gpofci = tlvdb_parse_multi(buf, len);
|
||||||
|
if (extractTLVElements)
|
||||||
JsonSaveTLVTree(root, root, "$.Application.GPO", gpofci);
|
JsonSaveTLVTree(root, root, "$.Application.GPO", gpofci);
|
||||||
|
else
|
||||||
|
JsonSaveTLVTreeElm(root, "$.Application.GPO", gpofci, true, true, false);
|
||||||
|
|
||||||
JsonSaveTLVValue(root, "$.ApplicationData.AIP", tlvdb_find_full(gpofci, 0x82));
|
JsonSaveTLVValue(root, "$.ApplicationData.AIP", tlvdb_find_full(gpofci, 0x82));
|
||||||
JsonSaveTLVValue(root, "$.ApplicationData.AFL", tlvdb_find_full(gpofci, 0x94));
|
JsonSaveTLVValue(root, "$.ApplicationData.AFL", tlvdb_find_full(gpofci, 0x94));
|
||||||
|
@ -1613,7 +1619,10 @@ int CmdHFEMVScan(const char *cmd) {
|
||||||
JsonSaveHex(jsonelm, "Offline", SFIoffline, 1);
|
JsonSaveHex(jsonelm, "Offline", SFIoffline, 1);
|
||||||
|
|
||||||
struct tlvdb *rsfi = tlvdb_parse_multi(buf, len);
|
struct tlvdb *rsfi = tlvdb_parse_multi(buf, len);
|
||||||
|
if (extractTLVElements)
|
||||||
JsonSaveTLVTree(root, jsonelm, "$.Data", rsfi);
|
JsonSaveTLVTree(root, jsonelm, "$.Data", rsfi);
|
||||||
|
else
|
||||||
|
JsonSaveTLVTreeElm(jsonelm, "$.Data", rsfi, true, true, false);
|
||||||
tlvdb_free(rsfi);
|
tlvdb_free(rsfi);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue