mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
Added native output grabbing for Python and Lua: less hacky than output_grabber.py, should work on ProxSpace as well
This commit is contained in:
parent
83f6e2b56b
commit
369c5bb5db
23 changed files with 387 additions and 198 deletions
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
PYTHONPATH=../../pyscripts ipython3 -i ./test_grab.py
|
|
@ -2,5 +2,13 @@
|
|||
|
||||
import pm3
|
||||
p=pm3.pm3("/dev/ttyACM0")
|
||||
|
||||
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:", True)
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import pm3
|
||||
from output_grabber import OutputGrabber
|
||||
|
||||
out = OutputGrabber()
|
||||
p=pm3.pm3("/dev/ttyACM0")
|
||||
print("Device:", p.name)
|
||||
with out:
|
||||
p.console("hw status")
|
||||
for line in out.captured_output.split('\n'):
|
||||
if "Unique ID" in line:
|
||||
print(line)
|
Loading…
Add table
Add a link
Reference in a new issue