-
Notifications
You must be signed in to change notification settings - Fork 0
/
eyemap.py
55 lines (41 loc) · 1.36 KB
/
eyemap.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/python3
#########################################
#
# Author: https://github.com/Exploit-py
# date: 09/09/2022
#
import argparse
import pyfiglet
from EyeMap_threading import *
def banner():
banner = pyfiglet.figlet_format("EyeMap")
print(f"{banner}\nAuthor: Exploit-py\nDate: 09/09/2022\n")
parser = argparse.ArgumentParser(description='Scan host ports')
parser.add_argument('host', type=str,help='A required host to scan\n')
parser.add_argument('--port_range', "-pR", type=int, help='Range to scan. Default: 1-1024\n')
parser.add_argument('--threads', "-T", type=int, help='Default: 50\n')
parser.add_argument('--verbose', '-v', action='store_true', help='Verbose mode\n')
parser.add_argument('--serverVersion', '-sV', action='store_true', help='Enables version detection\n')
args = parser.parse_args()
host = args.host
port_range = args.port_range
verbose = args.verbose
threads = args.threads
serverVersion = args.serverVersion
print(f"""
--------CONFIG--------
HOST: {host}
Port Range: {"1024" if port_range is None else port_range}
Server Version: {serverVersion}
Threads: {"50" if threads is None else threads}
Verbose: {verbose}
----------------------
""")
banner()
obj = PortScanner_Thread(host, port_range, verbose, threads, serverVersion)
if serverVersion:
obj.scanner()
obj.server_version()
else:
obj.scanner()
obj.show_output()