mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 14:34:45 +00: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:
@@ -2,5 +2,14 @@
|
||||
|
||||
local pm3 = require("pm3")
|
||||
p=pm3.pm3("/dev/ttyACM0")
|
||||
|
||||
p:console("hw status")
|
||||
print(p.name)
|
||||
p:console("hw version")
|
||||
for line in p.grabbed_output:gmatch("[^\r\n]+") do
|
||||
if line:find("Unique ID") or line:find("uC:") then
|
||||
print(line)
|
||||
end
|
||||
end
|
||||
|
||||
print("Device:", p.name)
|
||||
p:console("Rem passthru remark! :coffee:", true)
|
||||
|
||||
Reference in New Issue
Block a user