mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-15 14:20:51 +08:00
15 lines
334 B
Lua
Executable file
15 lines
334 B
Lua
Executable file
#!/usr/bin/env lua
|
|
|
|
local pm3 = require("pm3")
|
|
p=pm3.pm3("/dev/ttyACM0")
|
|
|
|
p:console("hw status")
|
|
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)
|