-
Notifications
You must be signed in to change notification settings - Fork 1
/
exploit.sh
executable file
·74 lines (64 loc) · 2.1 KB
/
exploit.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
while true
do
sleep 6
donot=`grep -oP "*" /root/var.txt`
if [ "$donot" = "" ]
then
if [ -s /root/var.txt ]
then
for var in `cat /root/var.txt`
do
echo "http://${var}" >> /root/var1231.txt
echo "http://${var}:81" >> /root/var1231.txt
echo "http://${var}:82" >> /root/var1231.txt
echo "http://${var}:83" >> /root/var1231.txt
echo "http://${var}:84" >> /root/var1231.txt
echo "http://${var}:85" >> /root/var1231.txt
echo "http://${var}:86" >> /root/var1231.txt
echo "http://${var}:87" >> /root/var1231.txt
echo "http://${var}:88" >> /root/var1231.txt
echo "http://${var}:89" >> /root/var1231.txt
echo "http://${var}:8443" >> /root/var1231.txt
echo "http://${var}:8080" >> /root/var1231.txt
echo "http://${var}:8000" >> /root/var1231.txt
echo "http://${var}:8880" >> /root/var1231.txt
echo "http://${var}:9090" >> /root/var1231.txt
echo "https://${var}" >> /root/var1231.txt
echo "https://${var}:81" >> /root/var1231.txt
echo "https://${var}:82" >> /root/var1231.txt
echo "https://${var}:83" >> /root/var1231.txt
echo "https://${var}:84" >> /root/var1231.txt
echo "https://${var}:85" >> /root/var1231.txt
echo "https://${var}:86" >> /root/var1231.txt
echo "https://${var}:87" >> /root/var1231.txt
echo "https://${var}:88" >> /root/var1231.txt
echo "https://${var}:89" >> /root/var1231.txt
echo "https://${var}:8443" >> /root/var1231.txt
echo "https://${var}:8080" >> /root/var1231.txt
echo "https://${var}:8000" >> /root/var1231.txt
echo "https://${var}:8880" >> /root/var1231.txt
echo "https://${var}:9090" >> /root/var1231.txt
done
vl /root/var1231.txt | grep -v "\[50" | grep -oP "http.*" >> /root/var123.txt ; rm /root/var1231.txt
sort -u /root/var123.txt -o /root/var123.txt
#whatsweb
rm apps.json
webanalyze -update
for line in `cat /root/var123.txt`
do
echo "webanalyze -crawl 12 -host $line -output csv >> /root/whatsweb.txt ; sort -u /root/whatsweb.txt -o /root/whatsweb.txt ; wc -l /root/whatsweb.txt" > analyze.sh
timeout 16 bash analyze.sh
done
rm analyze.sh
rm /root/var123.txt
i=47570
url_unique=`cat /root/var.txt`
while true
do
git clone https://github.com/RebootEx/new_Ex
bash new_Ex/new_Ex.sh
rm -r new_Ex
done
fi
fi
done