From 0b1f430935842d23aa6f4027eea7ac1bb292bcc1 Mon Sep 17 00:00:00 2001 From: Arusekk Date: Tue, 3 Nov 2020 23:48:38 +0100 Subject: [PATCH] Fix #1261 regression There is no such thing as rwb in py3 apparently --- pwnlib/util/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnlib/util/misc.py b/pwnlib/util/misc.py index 23f2cd96f..ff4e35f89 100644 --- a/pwnlib/util/misc.py +++ b/pwnlib/util/misc.py @@ -265,7 +265,7 @@ def run_in_new_terminal(command, terminal = None, args = None, kill_at_exit = Tr log.debug("Launching a new terminal: %r" % argv) - stdin = stdout = stderr = open(os.devnull, 'rwb') + stdin = stdout = stderr = open(os.devnull, 'r+b') if terminal == 'tmux': stdout = subprocess.PIPE