-
Notifications
You must be signed in to change notification settings - Fork 173
/
install.sh
60 lines (50 loc) · 1.85 KB
/
install.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
#!/bin/bash
arch="$(uname -m)"
wine32=/usr/lib/wine/wine
#echo $arch
BOLD="\033[01;01m" # Highlight
RED="\033[01;31m" # Issues/Errors
GREEN="\033[01;32m" # Success
YELLOW="\033[01;33m" # Warnings/Information
RESET="\033[00m"
echo ""
if [ -e /usr/bin/msfvenom ]; then
echo -e $GREEN "[ ✔ ] Msfvenom ................[ found ]"
else
echo -e $RED "[ X ] Msfvenom -> not found "
echo -e "\n [*] ${YELLOW} Installing Metasploit-framework ${RESET}\n"
sudo apt-get install metasploit-framework
echo -e $GREEN " Start the install.sh File Again"
exit 0
fi
if [ -e /usr/bin/wine ]; then
echo -e $GREEN "[ ✔ ] Wine ....................[ found ]"
else
echo -e $RED "[ X ] Wine -> not found "
sudo apt-get -qq update
echo -e "\n [*] ${YELLOW}Adding x86 architecture to x86_64 system for Wine${RESET}\n"
sudo dpkg --add-architecture i386
sudo apt-get -qq update
sudo apt-get install wine
echo -e $GREEN " Start the install.sh File Again"
exit 0
fi
if [ -e /usr/bin/x86_64-w64-mingw32-gcc ]; then
echo -e $GREEN "[ ✔ ] Mingw-w64 Compiler.......[ found ]"
else
echo "deb http://http.kali.org/kali kali-rolling main non-free contrib
deb http://http.kali.org/kali kali-rolling main contrib non-free" >> /etc/apt/sources.list
echo -e $RED "[ X ] Mingw-w64 -> not found "
#sudo apt-get install mingw-w64 mingw32 -y
sudo apt-get install mingw-w64 mingw32 --force-yes -y
echo -e $GREEN " Start the install.sh File Again"
exit 0
fi
echo "";
echo "[✔] Dependencies installed successfully! [✔]";
echo "";
echo "[✔]==========================================================================[✔]";
echo "[✔] All is done!! You can execute by typing \"python HackTheWorld.py\" [✔]";
echo "[✔]==========================================================================[✔]";
echo "";
exit 0