mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 13:00:42 -07:00
fm11rf08s_recovery: get prefs via JSON
This commit is contained in:
parent
0961b01950
commit
c66834f19c
1 changed files with 3 additions and 5 deletions
|
@ -98,11 +98,9 @@ def print_key(sec, key_type, key):
|
||||||
kt = ['A', 'B'][key_type]
|
kt = ['A', 'B'][key_type]
|
||||||
print(f"Sector {sec:2} key{kt} = " + color(key, fg="green"))
|
print(f"Sector {sec:2} key{kt} = " + color(key, fg="green"))
|
||||||
|
|
||||||
save_path = ""
|
p.console("prefs show --json")
|
||||||
p.console("prefs show")
|
prefs = json.loads(p.grabbed_output)
|
||||||
for line in p.grabbed_output.split('\n'):
|
save_path = prefs['file.default.dumppath'] + os.path.sep
|
||||||
if "dump save path" in line:
|
|
||||||
save_path = line[33:] + "/"
|
|
||||||
|
|
||||||
found_keys = [["", ""] for _ in range(NUM_SECTORS + NUM_EXTRA_SECTORS)]
|
found_keys = [["", ""] for _ in range(NUM_SECTORS + NUM_EXTRA_SECTORS)]
|
||||||
if args.init_check:
|
if args.init_check:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue