proxmark3/client/experimental_lib/example_py/test_grab.py

14 lines
277 B
Python
Raw Normal View History

2020-11-11 08:28:45 +08:00
#!/usr/bin/env python3
import pm3
from output_grabber import OutputGrabber
out = OutputGrabber()
2021-04-20 18:06:53 +08:00
p=pm3.pm3("/dev/ttyACM0")
2020-11-11 08:28:45 +08:00
print("Device:", p.name)
with out:
p.console("hw status")
for line in out.capturedtext.split('\n'):
if "Unique ID" in line:
print(line)