-
Notifications
You must be signed in to change notification settings - Fork 31
/
EternalView.sh
executable file
·282 lines (282 loc) · 8.89 KB
/
EternalView.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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
#!/bin/bash
resize -s 28 88 > /dev/null 2>&1;
clear
banner(){
tput setaf 208; tput bold
echo -n ' ';
echo ' -= Built with <3 by PRANSHU RANAKOTI ©2018 =-' ;
tput setaf 48;
echo $'\n
███████╗████████╗███████╗██████╗ ███╗ ██╗ █████╗ ██╗ ██╗ ██╗██╗███████╗██╗ ██╗
██╔════╝╚══██╔══╝██╔════╝██╔══██╗████╗ ██║██╔══██╗██║ ██║ ██║██║██╔════╝██║ ██║
█████╗ ██║ █████╗ ██████╔╝██╔██╗ ██║███████║██║ ██║ ██║██║█████╗ ██║ █╗ ██║
██╔══╝ ██║ ██╔══╝ ██╔══██╗██║╚██╗██║██╔══██║██║ ╚██╗ ██╔╝██║██╔══╝ ██║███╗██║
███████╗ ██║ ███████╗██║ ██║██║ ╚████║██║ ██║███████╗╚████╔╝ ██║███████╗╚███╔███╔╝
╚══════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝ ╚═╝╚══════╝ ╚═══╝ ╚═╝╚══════╝ ╚══╝╚══╝\n';
tput sgr0;
tput setaf 50;
echo -en ' ';
echo $'Welcome to EternalView™, the omniscient ᒡ◯ᵔ◯ᒢ information gathering tool!\n' ;
tput setaf 50;echo -en '**************';
tput setaf 48;echo -en 'MENU';
tput setaf 50;echo '***************';
tput setaf 50;echo -en '*';tput setaf 154; echo -en ' 1. Whois information ';
tput setaf 50;echo ' *';echo -en '*';tput setaf 197;echo -en ' 2. DNS Lookup ';
tput setaf 50;echo ' *';echo -en '*';tput setaf 3; echo -en ' 3. Web Technology Detection';
tput setaf 50;echo ' *';echo -en '*';tput setaf 51; echo -en ' 4. IP Locator ';
tput setaf 50;echo ' *';echo -en '*';tput setaf 33; echo -en ' 5. NMAP ';
tput setaf 50;echo ' *';echo -en '*';tput setaf 208;echo -en ' 6. Cloudflare detection ';
tput setaf 50;echo ' *';echo -en '*';tput setaf 118;echo -en ' 7. Robots.txt enumeration ';
tput setaf 50;echo ' *';echo -en '*';tput setaf 248;echo -en ' 8. WAF/IDS/IPS detection ';
tput setaf 50;echo ' *';echo -en '*';tput setaf 105;echo -en ' 9. Extract embedded URL/URI';
tput setaf 50;echo ' *';echo -en '*';tput setaf 10; echo -en ' 10. HTTP Header ';
tput setaf 50;echo ' *';echo -en '*';tput setaf 9; echo -en ' 11. Traceroute ';
tput setaf 50;echo ' *';echo -en '*';tput setaf 11; echo -en ' 12. AutoPwn™ ';
tput setaf 50;echo ' *';echo -en '*';tput setaf 12; echo -en ' 13. Reload ';
tput setaf 50;echo ' *';echo -en '*';tput setaf 1; echo -en ' 14. exit ';
tput setaf 50;echo -en ' *';echo $'\n*********************************';
tput setaf 50;echo -en "Please choose an option: ";
tput sgr0;
}
banner
tput setaf 50;
read opt;
if [[ opt -eq '1' ]]; # WHOIS
then tput setaf 154;
echo -en "Enter the website or IP address: ";
read site;
whois $site;
tput smso;
tput blink;
tput setaf 1;
tput bold;
echo "Press any key to continue";
tput sgr0;
read key;
clear
./EternalView.sh;
elif [[ opt -eq '2' ]]; # DNS LOOKUP
then tput setaf 197;
echo -en "Enter the website or IP address: ";
tput setaf 50;
read site;
tput sgr0;dig $site;
tput smso;
tput blink;
tput setaf 1;
tput bold;
echo "Press any key to continue";
tput sgr0;
read key;
clear
./EternalView.sh;
elif [[ opt -eq '3' ]]; #WEB TECHNOLOGY DETECTION
then tput setaf 3;
echo -en "Enter the website or IP address: ";
read site;
wget -q https://builtwith.com/$site -O log.html;
echo " The output has been saved as 'log.html' at";
pwd;
echo " Please open the file log.html in your web browser to view the results!";
tput smso;
tput blink;
tput setaf 1;
tput bold;
echo " Press any key to continue";
tput sgr0;
read key;
clear
./EternalView.sh;
elif [[ opt -eq '4' ]]; # IP LOCATOR
then tput setaf 51;
echo -en "Enter the IP address: ";
read ip;
curl ipinfo.io/$ip | grep -v "readme";
tput smso;
tput blink;
tput setaf 1;
tput bold;
echo "Press any key to continue";
tput sgr0;
read key;
clear
./EternalView.sh;
elif [[ opt -eq '5' ]]; #NMAP
then tput setaf 33;
echo -en "Press 1 for basic scan and 2 for extensive scan: ";
read scan;
if [[ scan -eq "1" ]];
then echo -en "Enter the website or the IP address: ";
read site;
nmap $site;
tput smso;
tput blink;
tput setaf 1;
tput bold;
echo "If the Host is down or blocking the ping probes, try the extensive scan(option 2). Press any key to continue";
tput sgr0;
read key;
clear
./EternalView.sh;
elif [[ scan -eq "2" ]];
then echo -en "Enter the website or the IP address: ";
read site;
echo "THIS SCAN WILL TAKE SOME TIME, SIT BACK AND RELAX!";
sudo nmap -sS -sV -vv --top-ports 1000 -T4 -O $site;
tput smso;
tput blink;
tput setaf 1;
tput bold;
echo "Press any key to continue";
tput sgr0;
read key;
clear
./EternalView.sh
else
tput smso;
tput blink;
tput setaf 1;
tput bold;
echo "Please choose a valid option! Press Enter to continue";
tput sgr0;
read key;
clear
./EternalView.sh
fi;
elif [[ opt -eq '6' ]]; #CLOUDFLARE DETECTION
then tput setaf 208;
echo -en "Enter the website or the IP address: ";
read site;
ip=$(ping -c1 $site | grep -Eo '[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9][0-9]' | head -1)
a=$(dig $site | grep -E 'cloudflare|103.21|103.22|104.16|104|103.3|104.1|108.162.|131.0|141.101|162.15|172.6|173.245|188.114|190.93.|197.234.|198.41')
if [[ $? -eq 0 ]]; then
echo "Runs on CF"
echo "the IP is $ip"
else
echo "Does not run on CF"
fi
tput smso;
tput blink;
tput setaf 1;
tput bold;
echo "Press any key to continue";
tput sgr0;
read key;
clear
./EternalView.sh;
elif [[ opt -eq '7' ]]; # ROBOTS.TXT ENUMERATION
then tput setaf 118;
echo -en "Enter the website address (DNS only): ";
read site;
wget --user-agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" -O - $site/robots.txt --quiet;
tput smso;
tput blink;
tput setaf 1;
tput bold;
echo "Press any key to continue";
tput sgr0;
read key;
clear
./EternalView.sh;
elif [[ opt -eq '8' ]]; # WAF/IDS/IPS DETECTION
then tput setaf 190;
if ! [ -x "$(command -v wafw00f)" ]; then
echo 'Error: wafw00f not found, installing now....' >&2
if ["darwin" == *$OSTYPE* ];then
git clone https://github.com/EnableSecurity/wafw00f.git
cd wafw00f
python3 setup.py build
python3 setup.py install
cd ..
rm -rf wafw00f
else
sudo apt-get install wafw00f
fi
fi
#statements
echo -en "Enter the website or IP address: ";
read site;
wafw00f $site
tput smso;
tput blink;
tput setaf 1;
tput bold;
echo $'\nPress any key to continue';
tput sgr0;
read key;
clear
./EternalView.sh;
elif [[ opt -eq '9' ]]; # EXTRACT embedded URLs/URIs
then tput setaf 105;
echo -en "Enter the website or IP address: ";
read site;
tput setaf 51
echo $'Following URLs were found embedded in the web page: \n'
tput setaf 105
wget --user-agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" -O - $site --quiet | grep -io '<a href=['"'"'"][^"'"'"']*['"'"'"]' | sed -e 's/^<a href=["'"'"']//' -e 's/["'"'"']$//' | grep -v "#" | grep http
tput smso;
tput blink;
tput setaf 1;
tput bold;
echo $'\nPress any key to continue';
tput sgr0;
read key;
clear
./EternalView.sh;
elif [[ opt -eq '10' ]]; # HTTP HEADER
then tput setaf 10;
echo -en "Enter the website address (without http://): ";
read site;
curl -I $h$site;
tput smso;
tput blink;
tput setaf 1;
tput bold;
echo "Press any key to continue";
tput sgr0;
read key;
clear
./EternalView.sh;
elif [[ opt -eq '11' ]]; # TRACEROUTE
then tput setaf 9;
echo -en "Enter the website or IP address: ";
read site;
traceroute $site;
tput smso;
tput blink;
tput setaf 1;
tput bold;
echo "Press any key to continue";
tput sgr0;
read key;
clear
./EternalView.sh;
elif [[ opt -eq '12' ]]; #AUTOPWN
then tput setaf 12;
if ! [ -x "$(command -v autopwn)" ]; then
echo 'Error: AutoPwn not found, installing now....' >&2
git clone https://github.com/rpranshu/autopwn.git
chmod +x autopwn/Autopwn.sh
mv autopwn/Autopwn.sh /usr/local/bin/autopwn
rm -rf autopwn
fi
autopwn
clear
./EternalView.sh;
elif [[ opt -eq '13' ]]; #RELOAD
then clear
./EternalView.sh;
elif [[ opt -eq '14' ]]; #EXIT
then clear;
exit;
else
tput smso;
tput blink;
tput setaf 1;
tput bold;
echo "Please choose a valid option! Press Enter to continue";
tput sgr0;
read key;
clear
./EternalView.sh;
fi;