From a5f9509c01888ef59a108eaee5f9f9ddc45c7b27 Mon Sep 17 00:00:00 2001 From: the-c0d3r Date: Mon, 14 Oct 2019 22:07:39 +0800 Subject: [PATCH] autorecon.py: added termios to restore the flags --- autorecon.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autorecon.py b/autorecon.py index 1e23b42..360e248 100644 --- a/autorecon.py +++ b/autorecon.py @@ -20,13 +20,17 @@ import socket import string import sys import toml +import termios def _quit(): - colorama.deinit() + termios.tcsetattr(sys.stdin.fileno(), TERM_FLAGS) + atexit.register(_quit) +TERM_FLAGS = termios.tcgetattr(sys.stdin.fileno()) + verbose = 0 nmap = '-vv --reason -Pn' srvname = ''