-
Notifications
You must be signed in to change notification settings - Fork 78
/
subdomain-finder.sh
44 lines (31 loc) · 1.26 KB
/
subdomain-finder.sh
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
#!/bin/bash
#Rada
#COLORS
BOLD="\e[1mBold"
NORMAL="\e[0m"
GREEN="\e[92m"
echo -e "${GREEN}[+]Subdomain Enumeretion"
#Assetfinder
echo -e "${GREEN}[+]Starting Assetfinder"
assetfinder --subs-only $1 |sort -u |tee assetfinder.txt | notify
#Sublist3r
echo -e "${GREEN}[+]Starting Sublist3r"
python ~/recon/subdomain/Sublist3r/sublist3r.py -d $1 -o sublister.txt | notify
#Filtering
echo -e "${GREEN}[+]Starting Filtering"
cat sublist3r.txt assetfinder.txt | sort -u |uniq -u| grep -v "*" |sort -u|tee FinalSubs.txt | notify
#Httprobe
echo -e "${GREEN}[+]Starting Httprobe"
cat Final-Subs.txt |sort -u |uniq -u|httprobe|tee $1-alive.txt | notify
#Get-Tilie
echo -e "${GREEN}[+]Starting Get-titles"
cat $1-alive.txt|get-titles | notify
echo -e "${GREEN}[+]Start Subdomain Tackeover Scan"
subjack -w Final-Subs.txt -t 20 -ssl -c ~/go/src/github.com/haccer/subjack/fingerprints.json -v 3 -o subjack.txt | notify
subzy -targets Final-Subs.txt -hide_fails --verify_ssl -concurrency 20 |sort -u|tee "subzy.txt" | notify
echo -e "${GREEN}[+]Aquatone Screenshot"
cat $1-alive.txt| aquatone -screenshot-timeout 10 -out screenshots/ | notify
echo -e "${GREEN}[+]Finish"
rm sublist3r.txt assetfinder.txt
#subfinder
echo "target.com" | subfinder -q -o Output.txt #output will be saved in text file