11"""The target command."""
2+ import sys
3+
24import re
35import socket
4- import sys
56import threading
67from urllib .parse import urlsplit
78
1415from anubis .scanners .nmap import scan_host
1516from anubis .scanners .recursive import recursive_search
1617from anubis .scanners .shodan import search_shodan
18+ from anubis .scanners .ssl import search_subject_alt_name , ssl_scan
1719from anubis .scanners .virustotal import search_virustotal
1820from anubis .scanners .zonetransfer import dns_zonetransfer
1921from anubis .utils .ColorPrint import ColorPrint
@@ -68,9 +70,10 @@ def run(self):
6870 # Default scans that run every time
6971 target = self .options ["TARGET" ][i ]
7072 threads = [threading .Thread (target = dns_zonetransfer , args = (self , target )),
71-
7273 threading .Thread (target = subdomain_hackertarget ,
7374 args = (self , target )),
75+ threading .Thread (target = search_subject_alt_name ,
76+ args = (self , target )),
7477 threading .Thread (target = search_virustotal ,
7578 args = (self , target )),
7679 # threading.Thread(target=search_pkey, args=(self, target)),
@@ -80,11 +83,15 @@ def run(self):
8083 threading .Thread (target = search_dnsdumpster ,
8184 args = (self , target )),
8285 threading .Thread (target = search_anubisdb , args = (self , target ))]
83-
86+
8487 # Additional options - shodan.io scan
8588 if self .options ["--additional-info" ]:
8689 threads .append (threading .Thread (target = search_shodan , args = (self ,)))
8790
91+ # Additional options - ssl
92+ if self .options ["--ssl" ]:
93+ threads .append (threading .Thread (target = ssl_scan , args = (self , target )))
94+
8895 # Additional options - nmap scan of dnssec script and a host/port scan
8996 if self .options ["--with-nmap" ]:
9097 threads .append (
0 commit comments