forked from leebaird/discover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.sh
executable file
·149 lines (128 loc) · 3.86 KB
/
update.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
#!/bin/bash
clear
echo
echo
# Fix for errors from URLCrazy file tld.rb lines 81,89,91
# since project is not actively supported.
tlddir=$(locate homophones.rb | sed 's%/[^/]*$%/%')
cd $tlddir
if [ ! -f tld.rb.bak ]; then
cp tld.rb tld.rb.bak
cat tld.rb | grep '"bd"=>' -v | grep '"bn"=>' -v | grep '"br"=>' -v > tld_tmp.rb
mv tld_tmp.rb tld.rb
fi
#########################################################
if [ -d /pentest ]; then
echo -e "\e[1;34mUpdating Discover.\e[0m"
git pull
echo
echo
exit
fi
echo -e "\e[1;34mUpdating Kali.\e[0m"
apt-get update ; apt-get -y upgrade ; apt-get -y dist-upgrade ; apt-get -y autoremove ; apt-get -y autoclean ; echo
if [ -d /opt/BloodHound/.git ]; then
echo -e "\e[1;34mUpdating BloodHound.\e[0m"
cd /opt/BloodHound/ ; git pull
echo
else
echo -e "\e[1;33mInstalling BloodHound.\e[0m"
git clone https://github.com/adaptivethreat/BloodHound.git /opt/BloodHound
echo
echo -e "\e[1;33mInstalling part 2.\e[0m"
cd /opt/
wget -q https://github.com/adaptivethreat/BloodHound/releases/download/1.1/BloodHound-linux-x64.zip
unzip /opt/BloodHound-linux-x64.zip
rm /opt/BloodHound-linux-x64.zip
echo
echo -e "\e[1;33mYou will need to download and install Neo4j once this script completes.\e[0m"
read -p "Press <enter> to continue."
firefox https://neo4j.com/download/community-edition/ &
echo
fi
if [ -d /opt/CrackMapExec/.git ]; then
echo -e "\e[1;34mUpdating CrackMapExec.\e[0m"
cd /opt/CrackMapExec/ ; git pull
echo
else
echo -e "\e[1;33mInstalling CrackMapExec.\e[0m"
git clone https://github.com/byt3bl33d3r/CrackMapExec.git /opt/CrackMapExec
echo
fi
if [ -d /opt/discover/.git ]; then
echo -e "\e[1;34mUpdating Discover.\e[0m"
cd /opt/discover ; git pull
echo
fi
if [ -d /opt/Empire/.git ]; then
echo -e "\e[1;34mUpdating Empire.\e[0m"
cd /opt/Empire/ ; git pull
echo
else
echo -e "\e[1;33mInstalling Empire.\e[0m"
git clone https://github.com/PowerShellEmpire/Empire.git /opt/Empire
/opt/Empire/setup/install.sh
echo
fi
if [ -d /opt/EyeWitness/.git ]; then
echo -e "\e[1;34mUpdating EyeWitness.\e[0m"
cd /opt/EyeWitness/ ; git pull
echo
else
echo -e "\e[1;33mInstalling EyeWitness.\e[0m"
git clone https://github.com/ChrisTruncer/EyeWitness.git /opt/EyeWitness
/opt/EyeWitness/setup/setup.sh
fi
if [ ! -f /usr/bin/ssconvert ]; then
echo -e "\e[1;33mInstalling gnumeric.\e[0m"
apt-get install -y gnumeric
echo
fi
if [ ! -f /usr/bin/xmllint ]; then
echo -e "\e[1;33mInstalling libxml2-utils.\e[0m"
apt-get install -y libxml2-utils
echo
fi
if [ -d /opt/prowl/.git ]; then
echo -e "\e[1;34mUpdating Prowl.\e[0m"
cd /opt/prowl/ ; git pull
echo
else
echo -e "\e[1;33mInstalling Prowl.\e[0m"
git clone https://github.com/Pickfordmatt/Prowl /opt/prowl
chmod 755 /opt/prowl/prowl.py
apt-get install python-pip python-lxml
pip install dnspython Beautifulsoup4 Gitpython
echo
fi
if [ -d /opt/rawr/.git ]; then
echo -e "\e[1;34mUpdating RAWR.\e[0m"
cd /opt/rawr/ ; git pull
echo
else
echo -e "\e[1;33mInstalling RAWR.\e[0m"
git clone https://bitbucket.org/al14s/rawr.git /opt/rawr
/opt/rawr/install.sh y
fi
if [ ! -f /usr/bin/xdotool ]; then
echo -e "\e[1;33mInstalling xdotool.\e[0m"
apt-get install -y xdotool
echo
fi
if [ -d /opt/Veil/.git ]; then
echo -e "\e[1;34mUpdating Veil.\e[0m"
cd /opt/Veil/ ; git pull
echo
else
echo -e "\e[1;33mInstalling Veil.\e[0m"
git clone https://github.com/Veil-Framework/Veil /opt/Veil
echo
fi
if [ ! -f /usr/bin/xml_grep ]; then
echo -e "\e[1;33mInstalling xml_grep.\e[0m"
apt-get install -y xml-twig-tools
echo
fi
echo -e "\e[1;34mUpdating locate database.\e[0m" ; updatedb
echo
echo