forked from SimplySecurity/SimplyTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Setup.sh
executable file
·67 lines (57 loc) · 1.71 KB
/
Setup.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
#!/bin/bash
# Current supported platforms:
# Kali-Linux
# Global Variables
runuser=$(whoami)
tempdir=$(pwd)
# Title Function
func_title(){
# Clear (For Prettyness)
clear
# Echo Title
echo '=========================================================================='
echo ' SimpleTemplate Setup Script | [Updated]: '
echo '=========================================================================='
echo ' [Web]: Http://CyberSyndicates.com | [Twitter]: @KillSwitch-GUI'
echo '=========================================================================='
}
# Environment Checks
func_check_env(){
# Check Sudo Dependency going to need that!
if [ $(which sudo|wc -l) -eq '0' ]; then
echo
echo ' [ERROR]: This Setup Script Requires sudo!'
echo ' Please Install sudo Then Run This Setup Again.'
echo
exit 1
fi
}
func_install_requests(){
echo ' [*] Installing and updating requests libary'
#Insure we have the latest requests module in python
#sudo apt-get -q update
#sudo apt-get -q upgrade
sudo git pull
sudo easy_install pip
sudo apt-get -y install icedove
sudo apt-get -y install w3m
sudo apt-get install iceweasel
sudo apt-get install python python-tk idle python-pmw python-imaging
# we need to check for front end for this install
cd /tmp/
sudo wget http://www.unmht.org/unmht/files/unmht-8.1.0.xpi
sudo whiptail --msgbox "Please Hit (Install Now) & Please Close Iceweasel!" 10 40
iceweasel unmht-8.1.0.xpi &&
sudo pip install glob2 --upgrade
sudo pip install configparser --upgrade
sudo chmod +x SimplyTemplate.py
sudo rm /tmp/unmht-8.1.0.xpi
}
# Menu Case Statement
case $1 in
*)
func_title
func_check_env
func_install_requests
;;
esac