forked from Anon-Artist/R3C0Nizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreconizer.sh
139 lines (126 loc) · 4.4 KB
/
reconizer.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#!/bin/bash
#colors
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
blue=`tput setaf 4`
magenta=`tput setaf 5`
reset=`tput sgr0`
if [ -d ~/recon/ ]
then
echo " "
else
mkdir ~/recon
fi
if [ -d ~/recon/$1 ]
then
echo " "
else
mkdir ~/recon/$1
fi
echo "${red}
=================================================
| ____ _____ ____ ___ _ _ _ |
| | _ \|___ / / ___/ _ \| \ | (_)_______ _ __ |
| | |_) | |_ \| | | | | | \| | |_ / _ \ '__| |
| | _ < ___) | |__| |_| | |\ | |/ / __/ | |
| |_| \_\____/ \____\___/|_| \_|_/___\___|_| |
| |
================== Anon-Artist ==================
${reset}"
echo "${blue} [+] Started Subdomain Discovery ${reset}"
echo " "
#assefinder
echo "${yellow} ---------------------------------- xxxxxxxx ---------------------------------- ${reset}"
echo " "
if [ -f ~/go/bin/assetfinder ]
then
echo "${magenta} [+] Running Assetfinder ${reset}"
assetfinder -subs-only $1 >> ~/recon/$1/assetfinder.txt
else
echo "${blue} [+] Installing Assetfinder ${reset}"
echo "${magenta} [+] Running Assetfinder ${reset}"
go get -u github.com/tomnomnom/assetfinder
assetfinder -subs-only $1 >> ~/recon/$1/assetfinder.txt
fi
echo " "
echo "${blue} [+] Succesfully saved to assetfinder.txt ${reset}"
echo " "
#amass
echo "${yellow} ---------------------------------- xxxxxxxx ---------------------------------- ${reset}"
echo " "
if [ -d ~/tools/Amass/ ]
then
echo "${magenta} [+] Running Amass ${reset}"
sudo amass enum --passive -d $1 > ~/recon/$1/amass.txt
else
echo "${blue} [+] Installing Amass ${reset}"
echo "${magenta} [+] Running Amass ${reset}"
sudo git clone https://github.com/OWASP/Amass.git ~/tools/Amass
sudo amass enum --passive -d $1 > ~/recon/$1/amass.txt
fi
echo " "
echo "${blue} [+] Succesfully saved to amass.txt ${reset}"
echo " "
#subfinder
echo "${yellow} ---------------------------------- xxxxxxxx ---------------------------------- ${reset}"
echo " "
if [ -f ~/go/bin/subfinder ]
then
echo "${magenta} [+] Running Subfinder ${reset}"
subfinder -d $1 -o ~/recon/$1/subfinder.txt
else
echo "${blue} [+] Installing Subfinder ${reset}"
echo "${magenta} [+] Running Subfinder ${reset}"
go get -u -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder
subfinder -d $1 -o ~/recon/$1/subfinder.txt
fi
echo " "
echo "${blue} [+] Succesfully saved to subfinder.txt ${reset}"
echo " "
#find-domain
echo "${yellow} ---------------------------------- xxxxxxxx ---------------------------------- ${reset}"
echo " "
if [ -f ~/findomain-linux ]
then
echo "${magenta} [+] Running Findomain ${reset}"
findomain-linux --target $1 -u ~/recon/$1/findomain.txt
else
echo "${blue} [+] Installing Findomain ${reset}"
wget https://github.com/Edu4rdSHL/findomain/releases/latest/download/findomain-linux
chmod +x findomain-linux
echo "${magenta} [+] Running Findomain ${reset}"
findomain-linux --target $1 -u ~/recon/$1/findomain.txt
fi
echo " "
echo "${blue} [+] Succesfully saved to findomain.txt ${reset}"
echo " "
#Sublister
echo "${yellow} ---------------------------------- xxxxxxxx ---------------------------------- ${reset}"
echo " "
if [ -d ~/tools/Sublist3r/ ]
then
echo "${magenta} [+] Running Sublist3r ${reset}"
python ~/tools/Sublist3r/sublist3r.py -d $1 -t 10 -v -o ~/recon/$1/sublist3r.txt > /dev/null
else
echo "${blue} [+] Installing Sublist3r ${reset}"
echo "${magenta} [+] Running Sublist3r ${reset}"
git clone https://github.com/aboul3la/Sublist3r.git ~/tools/Sublist3r/
python ~/tools/Sublist3r/sublist3r.py -d $1 -t 10 -v -o ~/recon/$1/sublist3r.txt > /dev/null
fi
echo " "
echo "${blue} [+] Succesfully saved to sublist3r.txt ${reset}"
echo " "
#uniquesubdomains
echo "${yellow} ---------------------------------- xxxxxxxx ---------------------------------- ${reset}"
echo " "
echo "${red} [+] fetching unique domains ${reset}"
echo ""
cat ~/recon/$1/assetfinder.txt ~/recon/$1/amass.txt ~/recon/$1/subfinder.txt ~/recon/$1/findomain.txt ~/recon/$1/sublist3r.txt | sort -u >> ~/recon/$1/unique.txt
cat ~/recon/$1/unique.txt
echo "${yellow} ---------------------------------- xxxxxxxx ---------------------------------- ${reset}"
echo ""
echo "${blue} [+] Succesfully saved to unique.txt ${reset}"
echo "${red} [+] Thank you for using R3C0nizer${reset}"
echo ""
echo "${yellow} ---------------------------------- xxxxxxxx ---------------------------------- ${reset}"