autorecon.py: added termios to restore the flags
This commit is contained in:
parent
2c01f30793
commit
dfd5d4b03b
|
|
@ -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 = ''
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue