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 = ''