pm3_console() in Python/Lua/C: replace passthru by capture and quiet
This commit is contained in:
1 parent
57ec287ab0
commit
de96479d80
16 files changed
+4341
-4193
No files matched your search
@@ -538,7 +538,7 @@ if args.final_check:
|
||||
cmd = f"hf mf fchk -f keys_{uid:08x}.dic --no-default --dump"
|
||||
if args.debug:
|
||||
print(cmd)
|
||||
p.console(cmd, passthru=True)
|
||||
p.console(cmd, capture=False, quiet=False)
|
||||
else:
|
||||
print()
|
||||
print(plus + color("found keys:", fg="green"))
|
||||
|
||||
@@ -66,8 +66,8 @@ class pm3(object):
|
||||
_pm3.pm3_swiginit(self, _pm3.new_pm3(*args))
|
||||
__swig_destroy__ = _pm3.delete_pm3
|
||||
|
||||
def console(self, cmd, passthru=False):
|
||||
return _pm3.pm3_console(self, cmd, passthru)
|
||||
def console(self, cmd, capture=True, quiet=True):
|
||||
return _pm3.pm3_console(self, cmd, capture, quiet)
|
||||
name = property(_pm3.pm3_name_get)
|
||||
grabbed_output = property(_pm3.pm3_grabbed_output_get)
|
||||
|
||||
|
||||
Reference in new issue
Block a user