-
Notifications
You must be signed in to change notification settings - Fork 0
/
ikaros
368 lines (303 loc) Β· 15.7 KB
/
ikaros
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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
#!/bin/bash
if [[ $1 == "--update" ]]
then
clear
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β Updating... β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
echo ""
rm -r $HOME/Desktop/Ikaros
cd $HOME/Desktop
git clone https://www.github.com/naz1warrior/Ikaros
cd $HOME/Desktop/Ikaros
chmod +x setup.sh
./setup.sh
clear
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β Update Finished β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
echo ""
read -sn 1 -p " Press any key to continue "
clear
ikaros
else
echo
echo \ ββββββ \ βββ ββββββ βββββββ \ βββββββ\ \ββββββββ
echo \ ββββββ βββββββββββββββββββββββββββββββββββββ
echo \ ββββββββββ βββββββββββββββββββ \ \ βββββββββββ
echo \ ββββββββββ βββββββββββββββββββ \ \ βββββββββββ
echo \ ββββββ \ ββββββ \ ββββββ \ ββββββββββββββββββββ
echo \ ββββββ \ ββββββ \ ββββββ \ βββ βββββββ ββββββββ
echo \ Created by Alessandro Barucca
echo \
echo \ @Version Beta 2.1.2
echo \
echo \
echo " 01) Scan a certain Host [Type 0.0.0.0/0 for a Global-Scan]"
echo " 02) Pentest"
echo " 03) Full-Scan with Pentest"
echo \
echo " 99) Help"
echo " 00) Exit"
echo \
echo \
read -p " Ikaros> " Home
echo \
echo \
echo \
if [ "$Home" == "1" ]
then
read -p " ip to scan:" ip_to_scan
read -p " port to scan: [Press Enter for all the doors] " port_to_scan
echo
if [ "$port_to_scan" == "" ]
then
nmap -sT $ip_to_scan -oG $HOME/Desktop/Ikaros/results/results
cat $HOME/Desktop/Ikaros/results/results | grep open > $HOME/Desktop/Ikaros/results/port_open
cat $HOME/Desktop/Ikaros/results/port_open | cut -f2 -d ":" | cut -f1 -d "(" > $HOME/Desktop/Ikaros/results/maybe_vulnerable
rm $HOME/Desktop/Ikaros/results/results
else
nmap -sT $ip_to_scan -p $port_to_scan -oG $HOME/Desktop/Ikaros/results/results
cat $HOME/Desktop/Ikaros/results/results | grep open > $HOME/Desktop/Ikaros/results/port_open
cat $HOME/Desktop/Ikaros/results/port_open | cut -f2 -d ":" | cut -f1 -d "(" > $HOME/Desktop/Ikaros/results/maybe_vulnerable
rm $HOME/Desktop/Ikaros/results/results
fi
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β IPs Found β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
echo ""
cat $HOME/Desktop/Ikaros/results/maybe_vulnerable
echo ""
echo " Scan Completed"
echo ""
read -sn 1 -p " Press any key to continue "
fi
if [ "$Home" == "2" ]
then
echo \
echo \
echo " In the next Update."
echo \
echo \
read -sn 1 -p " Press any key to continue "
fi
if [ "$Home" == "3" ]
then
read -p " ip to scan:" ip_to_scan
read -p " port to scan: [Press Enter for all the doors] " port_to_scan
echo
if [ "$port_to_scan" == "" ]
then
nmap -sT $ip_to_scan -oG $HOME/Desktop/Ikaros/results/results
cat $HOME/Desktop/Ikaros/results/results | grep open > $HOME/Desktop/Ikaros/results/port_open
cat $HOME/Desktop/Ikaros/results/port_open | cut -f2 -d ":" | cut -f1 -d "(" > $HOME/Desktop/Ikaros/results/maybe_vulnerable
rm $HOME/Desktop/Ikaros/results/results
else
nmap -sT $ip_to_scan -p $port_to_scan -oG $HOME/Desktop/Ikaros/results/results
cat $HOME/Desktop/Ikaros/results/results | grep open > $HOME/Desktop/Ikaros/results/port_open
cat $HOME/Desktop/Ikaros/results/port_open | cut -f2 -d ":" | cut -f1 -d "(" > $HOME/Desktop/Ikaros/results/maybe_vulnerable
rm $HOME/Desktop/Ikaros/results/results
fi
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β IPs Found β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
echo ""
cat $HOME/Desktop/Ikaros/results/maybe_vulnerable
echo ""
echo ""
echo ""
read -p " Would you like to perform the Whois Scan? [y/n]" wois
if [ "$wois" == "y" ]
then
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β Starting Whois Scan β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
while read ip
do
whois -r $ip
done<$HOME/Desktop/Ikaros/results/maybe_vulnerable
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β Whois Scan Finished β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
else
echo ""
fi
echo ""
echo ""
echo ""
read -p " Would you like to perform the WordPress Scan? [y/n]" wp
if [ "$wp" == "n" ]
then
echo ""
elif [ "$wp" == "y" ]
then
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β Starting WordPress Scan β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
cd $HOME/Desktop/Ikaros/tools/WPSeku
python wpseku.py --target $ip_to_scan
echo ""
echo ""
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β Enumerating Users β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
read -p " How many threads would you like to use? [default:10]" THREADS
if [ ${THREADS} -le 0 ]
then
echo \
echo " Wrong input."
echo \
echo \
elif [ ${THREADS} -le 20 ]
then
wpscan --url http://$ip_to_scan --enumerate u --wordlist $HOME/Desktop/Ikaros/tools/vietnamese-wordlist/Viet74K.txt --threads ${THREADS} --force
elif [ -z $THREADS ]
then
wpscan --url http://$ip_to_scan --enumerate u --wordlist $HOME/Desktop/Ikaros/tools/vietnamese-wordlist/Viet74K.txt --threads 10 --force
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β WordPress Scan Finished β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
elif [ ${THREADS} -gt 20 ]
then
echo \
echo " Wrong input."
echo \
echo \
fi
fi
read -p " Would you like some Spaghetti? [y/n]" spaghetti
if [ "$spaghetti" == "y" ]
then
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β Eating Spaghetti β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
cd $HOME/Desktop/Ikaros/tools/Spaghett1
python spaghetti.py --url $ip_to_scan --scan 0
cd $HOME/Desktop/Ikaros/tools/Spaghetti
python wascan.py --url $ip_to_scan --scan 5
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β Spaghetti Eaten β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
else
echo ""
fi
read -p " Is it harvest time? [y/n]" harvester
if [ "$harvester" == "y" ]
then
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β Harvesting β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
cd $HOME/Desktop/Ikaros/tools/theHarvester
python theHarvester.py -d $ip_to_scan -l 500 -b google
cd $HOME/Desktop/Ikaros/tools/Breacher
python breacher.py -u $ip_to_scan --fast
xterm -e python $HOME/Desktop/Ikaros/tools/a2sv/a2sv.py -t $ip_to_scan -o $HOME/Desktop/Ikaros/results/a2sv_vulnerabilities.txt
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β Harvest Finished β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
else
echo ""
fi
if [ "$port_to_scan" == "443" ]
then
read -p " would you like to perform the HeartBleed testscan [y/n]" confirm
else
echo ""
fi
if [ "$confirm" == "y" ]
then
python $HOME/Desktop/Ikaros/tools/ssltest.py -i $HOME/Desktop/Ikaros/results/maybe_vulnerable
else
echo " exiting"
fi
fi
if [ "$Home" == "99" ]
then
cat $HOME/Desktop/Ikaros/README.md
echo \
read -sn 1 -p " Press any key to continue "
clear
fi
if [ "$Home" == "update" ]
then
clear
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β Updating... β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
echo ""
rm -r $HOME/Desktop/Ikaros
cd $HOME/Desktop
git clone https://www.github.com/naz1warrior/Ikaros
cd $HOME/Desktop/Ikaros
chmod +x setup.sh
./setup.sh
clear
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β Update Finished β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
echo ""
read -sn 1 -p " Press any key to continue "
clear
fi
if [ "$Home" == "--update" ]
then
clear
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β Updating... β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
echo ""
rm -r $HOME/Desktop/Ikaros
cd $HOME/Desktop
git clone https://www.github.com/naz1warrior/Ikaros
cd $HOME/Desktop/Ikaros
chmod +x setup.sh
./setup.sh
clear
echo ""
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo " β Update Finished β"
echo " ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
echo ""
echo ""
read -sn 1 -p " Press any key to continue "
clear
fi
if [ "$Home" == "00" ]
then
echo " Exiting"
else
ikaros
fi
fi