From a965613262f8582e87ceeca0876eb30a881bd152 Mon Sep 17 00:00:00 2001 From: the-c0d3r Date: Fri, 5 Jul 2019 07:05:59 +0800 Subject: [PATCH] autorecon.py: fixed stdin/stdout issue --- autorecon.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/autorecon.py b/autorecon.py index de289ed..1e23b42 100644 --- a/autorecon.py +++ b/autorecon.py @@ -7,8 +7,10 @@ # option) any later version. # +import atexit import argparse import asyncio +import colorama from colorama import Fore, Style from concurrent.futures import ProcessPoolExecutor, as_completed, FIRST_COMPLETED import ipaddress @@ -19,6 +21,12 @@ import string import sys import toml + +def _quit(): + colorama.deinit() + +atexit.register(_quit) + verbose = 0 nmap = '-vv --reason -Pn' srvname = ''