mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
pm3_console() in Python/Lua/C: replace passthru by capture and quiet
This commit is contained in:
parent
57ec287ab0
commit
de96479d80
16 changed files with 4341 additions and 4193 deletions
|
@ -9,6 +9,6 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
pm3 *p;
|
||||
p = pm3_open(argv[1]);
|
||||
pm3_console(p, "hw status", true);
|
||||
pm3_console(p, "hw status", false, false);
|
||||
pm3_close(p);
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ int main(int argc, char *argv[]) {
|
|||
p = pm3_open(argv[1]);
|
||||
|
||||
// Execute the command
|
||||
pm3_console(p, "hw status", false);
|
||||
pm3_console(p, "hw status", true, true);
|
||||
|
||||
const char *buf = pm3_grabbed_output_get(p);
|
||||
const char *line_start = buf;
|
||||
|
|
|
@ -12,7 +12,7 @@ for line in p.grabbed_output:gmatch("[^\r\n]+") do
|
|||
end
|
||||
|
||||
print("Device:", p.name)
|
||||
p:console("Rem passthru remark! :coffee:", true)
|
||||
p:console("Rem passthru remark! :coffee:", false, false)
|
||||
|
||||
local json = require("dkjson")
|
||||
print("Fetching prefs:")
|
||||
|
|
|
@ -11,7 +11,7 @@ for line in p.grabbed_output.split('\n'):
|
|||
if "uC:" in line:
|
||||
print(line)
|
||||
print("Device:", p.name)
|
||||
p.console("Rem passthru remark! :coffee:", True)
|
||||
p.console("Rem passthru remark! :coffee:", capture=False, quiet=False)
|
||||
|
||||
import json
|
||||
print("Fetching prefs:")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue