forked from leebaird/discover
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.sh
executable file
·100 lines (85 loc) · 2.89 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
#!/bin/bash
clear
echo
echo
x=$(uname -a | awk '{print $3}' | cut -d '.' -f1)
if [[ $x > 3 ]]; then
echo -e "\e[1;34mUpdating Kali 2.0.\e[0m"
apt-get update ; apt-get -y upgrade ; echo
else
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/easy-creds/.git ]; then
echo -e "\e[1;34mUpdating easy-creds.\e[0m"
cd /opt/easy-creds/ ; git pull
echo
else
echo -e "\e[1;33mInstalling easy-creds.\e[0m"
git clone git://github.com/brav0hax/easy-creds.git /opt/easy-creds
ln -s /opt/easy-creds/easy-creds.sh /usr/bin/easy-creds
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 git://github.com/ChrisTruncer/EyeWitness.git /opt/EyeWitness
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 [ -d /opt/smbexec/.git ]; then
echo -e "\e[1;34mUpdating smbexec.\e[0m"
cd /opt/smbexec/ ; git pull
echo
else
echo -e "\e[1;33mInstalling smbexec.\e[0m"
git clone git://github.com/pentestgeek/smbexec-2.git /opt/smbexec
ln -s /opt/smbexec/smbexec.rb /usr/bin/smbexec
echo
fi
if [ -d /opt/veil/.git ]; then
echo -e "\e[1;33mInstalling Veil-Evasion suite.\e[0m"
unlink /usr/bin/veil
rm -rf /opt/veil
apt-get -y install veil-evasion veil-catapult
echo
fi
if [ ! -f /usr/share/windows-binaries/wce.exe ]; then
echo -e "\e[1;33mInstalling Windows Credential Editor.\e[0m"
wget http://www.ampliasecurity.com/research/wce_v1_4beta_universal.zip
unzip wce_v1_4beta_universal.zip
chmod 755 wce.exe
mv wce.exe /usr/share/windows-binaries/
rm Changelog LICENSE.txt README wce_v1_4beta_universal.zip
echo
fi
fi
if [ -d /opt/discover/.git ]; then
echo -e "\e[1;34mUpdating Discover scripts.\e[0m"
cd /opt/discover/ ; git pull
cp /opt/discover/alias /root/.bash_aliases ; source /root/.bash_aliases
echo
fi
if [ ! -f /usr/bin/goofile ]; then
echo -e "\e[1;33mInstalling goofile.\e[0m"
apt-get install -y goofile
echo
fi
if [ ! -f /usr/bin/xdotool ]; then
echo -e "\e[1;33mInstalling xdotool.\e[0m"
apt-get install -y xdotool
echo
fi
echo -e "\e[1;34mUpdating locate database.\e[0m" ; updatedb
echo
echo