-
Notifications
You must be signed in to change notification settings - Fork 71
/
installer.sh
203 lines (160 loc) · 5.59 KB
/
installer.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y git
sudo apt-get install rename
sudo apt-get install -y python3-pip
sudo apt-get install python-dnspython
apt install -y python-pip
sudo pip install -U requests
apt-get install dnsutils -y
gem install colorize
sudo apt-get install -y libcurl4-openssl-dev
sudo apt-get install -y libssl-dev
sudo apt-get install -y jq
sudo apt-get install -y ruby-full
sudo apt-get install -y libcurl4-openssl-dev libxml2 libxml2-dev libxslt1-dev ruby-dev build-essential libgmp-dev zlib1g-dev
sudo apt-get install -y build-essential libssl-dev libffi-dev python-dev
sudo apt-get install -y python-setuptools
apt install python-pip
apt install python3-pip
apt install curl
sudo apt-get install git gcc make libpcap-dev
apt-get install ruby-full
pip install feedparser
pip install awscli
pip3 install fierce
pip install pyopenssl
sudo apt-get install pigz
RED='\033[0;31m'
NC='\033[0m' # No Color
mkdir Tools
cd Tools
##########################Sublister##########################
echo "Installing Sublister"
git clone https://github.com/aboul3la/Sublist3r.git
cd Sublist3r*
sudo pip install -r requirements.txt
echo "Sublist3r Done."
##########################Knock##########################
echo "Installing Knock"
cd ..
git clone https://github.com/guelfoweb/knock.git
cd knock/knockpy
echo "Enter Your Virustotal API_key"
read knockVTapi
echo '{
"virustotal": "'$knockVTapi'"
}' > config.json
cd ..
sudo python setup.py install
echo "Done setting UP the Knock"
##########################Subfinder##########################
echo "Installing Subfinder"
cd ..
go get github.com/subfinder/subfinder
wget "https://github.com/assetnote/commonspeak2-wordlists/raw/master/subdomains/subdomains.txt"
mv subdomains.txt my.txt
git clone https://github.com/subfinder/subfinder.git
cd subfinder
go build
echo -e \n\n "${RED}Subfinder Done (Note:- Dont forget to comfigure the api key by \n ./subfinder --set-config VirustotalAPIKey=0x41414141 or \n see the full documentatio here https://github.com/subfinder/subfinder#post-installation-instructions${NC}"
echo "Subfinder Done"
##########################Censys##########################
echo "Installing Censys"
cd ..
git clone https://github.com/appsecco/bugcrowd-levelup-subdomain-enumeration.git
echo "Censys Done"
##########################Amass##########################
echo "Installing Amass"
go get -u github.com/OWASP/Amass/...
echo "Enter the Directory where go/bin/ is installed"
echo "For Example root/go/bin/amass"
cd ..
read dir
mv $dir Tools/
echo "Amass Done"
##########################AltDNS##########################
echo "Installing AltDNS"
cd Tools/
git clone https://github.com/infosec-au/altdns.git
cd altdns
pip install -r requirements.txt
echo "AltDNS Done"
##########################NMAP##########################
echo "Installing NMAP"
cd ..
sudo apt-get install nmap
echo "NMAP Done"
##########################MassDNS##########################
echo "Installing MassDNS"
git clone https://github.com/blechschmidt/massdns.git
cd massdns
wget https://gist.githubusercontent.com/jhaddix/86a06c5dc309d08580a018c66354a056/raw/f58e82c9abfa46a932eb92edbe6b18214141439b/all.txt
make
echo "MassDNS Done"
##########################EyeWitness##########################
echo "Installing EyeWitness"
cd ..
git clone https://github.com/FortyNorthSecurity/EyeWitness.git
echo "EyeWitness Done"
##########################MassScan##########################
echo "Installing MassScan"
git clone https://github.com/robertdavidgraham/masscan
cd masscan
make
echo "MassScan Done"
##########################CTFR##########################
echo "Installing CTFR"
cd ..
git clone https://github.com/UnaPibaGeek/ctfr.git
cd ctfr
pip3 install -r requirements.txt
echo "CTFR Done"
##########################Aquatone##########################
echo "Installing Aquatone"
cd ..
gem install aquatone
echo "Aquatone Done"
##########################Sublert##########################
echo "Installing SUblert"
git clone https://github.com/yassineaboukir/sublert.git && cd sublert
sudo pip install -r requirements.txt
cd ..
##########################Dirsearch##########################
echo "Installing Dirsearch"
git clone https://github.com/maurosoria/dirsearch.git
echo "Dirsearch Done"
##########################Censys##########################
echo "Installing Censys"
git clone https://github.com/christophetd/censys-subdomain-finder.git
cd censys-subdomain-finder
pip install -r requirements.txt
echo "Censys Done"
##########################FDNS##########################
echo "Downloading FDNS dataset"
cd ..
wget https://opendata.rapid7.com/sonar.fdns_v2/2019-10-27-1572199582-fdns_cname.json.gz
##########################Linkfinder##########################
echo "Installing LinkFinder"
git clone https://github.com/GerbenJavado/LinkFinder.git
cd LinkFinder
python setup.py install
echo "Linkfinder Done"
##########################Jsparser##########################
echo "Installing Jsparser"
cd ..
git clone https://github.com/nahamsec/JSParser.git
python setup.py install
echo "JSParser Done"
##########################SAN##########################
echo "Installing San"
git clone https://github.com/SilverPoision/San.git
echo "San Done"
##########################Vhost##########################
echo "Vhost"
git clone https://github.com/jobertabma/virtual-host-discovery.git
cd virtual-host-discovery
wget https://github.com/SilverPoision/San/blob/master/word.txt
cd ..
echo "Vhost Done"
echo -e \n\n "${RED}Once again don't forget to set the api keys for subfinder from here https://github.com/subfinder/subfinder#post-installation-instructions and also setting the AWS CLI creds. ${NC}"