mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-04 20:50:37 -08:00
23 lines
589 B
Python
Executable File
23 lines
589 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import pm3
|
|
p=pm3.pm3()
|
|
|
|
p.console("hw status")
|
|
p.console("hw version")
|
|
for line in p.grabbed_output.split('\n'):
|
|
if "Unique ID" in line:
|
|
print(line)
|
|
if "uC:" in line:
|
|
print(line)
|
|
print("Device:", p.name)
|
|
p.console("Rem passthru remark! :coffee:", capture=False, quiet=False)
|
|
|
|
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'])
|