Skip to content

Commit

Permalink
Removed debug info in FormatStringSearchCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy authored and Grazfather committed Jan 16, 2022
1 parent 8ebd7b0 commit fa28aa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gef.py
Expand Up @@ -1721,6 +1721,7 @@ def unhide_context() -> bool:
gef.ui.context_hidden = False
return True


class RedirectOutputContext():
def __init__(self, to="/dev/null") -> None:
self.redirection_target_file = to
Expand Down Expand Up @@ -10107,8 +10108,7 @@ def do_invoke(self, argv: List) -> None:

nb_installed_breaks = 0

# with RedirectOutputContext("/dev/null") as ctx:
if True:
with RedirectOutputContext(to="/dev/null"):
for function_name in dangerous_functions:
argument_number = dangerous_functions[function_name]
FormatStringBreakpoint(function_name, argument_number)
Expand Down

0 comments on commit fa28aa2

Please sign in to comment.