mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-30 19:40:37 -07:00
Add examples to fetch prefs from Lua & Python scripts
This commit is contained in:
parent
57d3de2af6
commit
7fa1a204f4
4 changed files with 40 additions and 0 deletions
|
@ -12,3 +12,11 @@ for line in p.grabbed_output.split('\n'):
|
|||
print(line)
|
||||
print("Device:", p.name)
|
||||
p.console("Rem passthru remark! :coffee:", True)
|
||||
|
||||
import json
|
||||
print("Fetching prefs:")
|
||||
p.console("prefs show --json")
|
||||
prefs = json.loads(p.grabbed_output)
|
||||
print("Save path: ", prefs['file.default.savepath'])
|
||||
print("Dump path: ", prefs['file.default.dumppath'])
|
||||
print("Trace path:", prefs['file.default.tracepath'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue