forked from ethicalhackingplayground/Bug-Bounty-Tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubdomain_killer.sh
62 lines (47 loc) · 1.7 KB
/
subdomain_killer.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
clear
echo -e "\e[1m"
echo -e "\e[31m"
echo """
______ _ _ _ _ _ _
/ _____) | | (_) | (_) | |
( (____ _ _| |__ _____| |_| | | _____ ____
\____ \| | | | _ \| _ _) | | || ___ |/ ___)
_____) ) |_| | |_) ) | \ \| | | || ____| |
(______/|____/|____/|_| \_)_|\_)_)_____)_|
"""
echo -e "\e[1m"
echo -n-e "\e[94m Do you want to do a new scan [Y/n]: "
read scans
if [ "$scans" = "Yes" ] || [ "$scans" = "Y" ] || [ "$scans" = "YES" ] || [ "$scans" = "y" ]; then
rm *.out
echo -e "\e[1m"
echo -e "\e[93m\e[3m[+] Searching for subdomains, YEET!!!"
echo -e "\e[95m\e[3m[+] Could take sometime.."
echo -e "\e[0m"
cd bounty-targets-data/;
git pull;
cd ../;
cp bounty-targets-data/data/wildcards.txt .; cat wildcards.txt | sed 's/^*.//g' | grep -v '*' > wildcards_without_stars.txt;
while read host;
do file=$host && file+="_subfinder.out";
~/go/bin/subfinder -o $file -d $host -silent;
done < ./wildcards_without_stars.txt;
cat *.out > all_subdomains.lst;
echo -e "\e[1m"
echo -e "\e[3m\e[93m[+] Finding Subdomain takeovers.."
cd /root/go/src/github.com/Ice3man543/SubOver
go run subover.go -l /root/Bug-Bounty-Tools/all_subdomains.lst -timeout 5 -o subover.out;
echo -e "\e[1m"
echo -e "\e[93m"
cat subover.out
else
cat *.out > all_subdomains.lst;
echo -e "\e[1m"
echo -e "\e[3m\e[93m[+] Finding Subdomain takeovers.."
cd /root/go/src/github.com/Ice3man543/SubOver
go run subover.go -l /root/Bug-Bounty-Tools/all_subdomains.lst -timeout 5 -o subover.out;
echo -e "\e[1m"
echo -e "\e[93m"
cat subover.out
fi