autorecon.py: added termios to restore the flags

This commit is contained in:
the-c0d3r 2019-10-14 22:07:39 +08:00
parent a965613262
commit a5f9509c01
1 changed files with 5 additions and 1 deletions

View File

@ -20,13 +20,17 @@ import socket
import string import string
import sys import sys
import toml import toml
import termios
def _quit(): def _quit():
colorama.deinit() termios.tcsetattr(sys.stdin.fileno(), TERM_FLAGS)
atexit.register(_quit) atexit.register(_quit)
TERM_FLAGS = termios.tcgetattr(sys.stdin.fileno())
verbose = 0 verbose = 0
nmap = '-vv --reason -Pn' nmap = '-vv --reason -Pn'
srvname = '' srvname = ''