Formatting revision
This commit is contained in:
parent
d3ccab858c
commit
33e3884ed9
|
|
@ -27,15 +27,11 @@ import appdirs
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
# Globals
|
# Globals
|
||||||
TERM_FLAGS = termios.tcgetattr(sys.stdin.fileno())
|
|
||||||
verbose = 0
|
verbose = 0
|
||||||
nmap = "-vv --reason -Pn"
|
nmap = "-vv --reason -Pn"
|
||||||
srvname = ""
|
srvname = ""
|
||||||
heartbeat_interval = 60
|
heartbeat_interval = 60
|
||||||
port_scan_profile = None
|
port_scan_profile = None
|
||||||
#port_scan_profiles_config_file = None
|
|
||||||
#service_scans_config_file = None
|
|
||||||
#global_patterns_config_file = None
|
|
||||||
port_scan_profiles_config = None
|
port_scan_profiles_config = None
|
||||||
service_scans_config = None
|
service_scans_config = None
|
||||||
global_patterns = []
|
global_patterns = []
|
||||||
|
|
@ -46,6 +42,7 @@ only_scans_dir = False
|
||||||
|
|
||||||
|
|
||||||
def _quit():
|
def _quit():
|
||||||
|
TERM_FLAGS = termios.tcgetattr(sys.stdin.fileno())
|
||||||
termios.tcsetattr(sys.stdin.fileno(), termios.TCSADRAIN, TERM_FLAGS)
|
termios.tcsetattr(sys.stdin.fileno(), termios.TCSADRAIN, TERM_FLAGS)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -705,6 +702,7 @@ def main():
|
||||||
global nmap
|
global nmap
|
||||||
global srvname
|
global srvname
|
||||||
global verbose
|
global verbose
|
||||||
|
|
||||||
_init()
|
_init()
|
||||||
parser = argparse.ArgumentParser(description='Network reconnaissance tool to port scan and automatically enumerate services found on multiple targets.')
|
parser = argparse.ArgumentParser(description='Network reconnaissance tool to port scan and automatically enumerate services found on multiple targets.')
|
||||||
parser.add_argument('targets', action='store', help='IP addresses (e.g. 10.0.0.1), CIDR notation (e.g. 10.0.0.1/24), or resolvable hostnames (e.g. foo.bar) to scan.', nargs="*")
|
parser.add_argument('targets', action='store', help='IP addresses (e.g. 10.0.0.1), CIDR notation (e.g. 10.0.0.1/24), or resolvable hostnames (e.g. foo.bar) to scan.', nargs="*")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue