-
Notifications
You must be signed in to change notification settings - Fork 54
/
autoscan.py
26 lines (21 loc) · 806 Bytes
/
autoscan.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
from files.conf import *
from tasks.ns import *
from tasks.whoisinfo import *
from tasks.scan import *
from tasks.banner import *
from tasks.vulnscan import *
from tasks.sdenum import *
from tasks.dirbust import *
def autoscan(target):
try:
print(f'[{Fore.YELLOW}?{Style.RESET_ALL}] Perfoming automated reconnaissance on {Fore.YELLOW}{target}{Style.RESET_ALL}...\n')
ns(target, IPINFO_API_KEY)
whoisinfo(target)
# save open ports onn array for later banner grabbing
vulnscan(target, SHODAN_API_KEY)
sdenum(target, SUBDOMAINS_WORDLIST)
dirbust(target, DIRECTORIES_WORDLIST)
except KeyboardInterrupt:
sys.exit()
except Exception as e:
print(f'[{Fore.RED}!{Style.RESET_ALL}] Error: {Fore.RED}{e}{Style.RESET_ALL}')