forked from trustedsec/SimplyEmail
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetup.sh
More file actions
executable file
·60 lines (49 loc) · 1.35 KB
/
Setup.sh
File metadata and controls
executable file
·60 lines (49 loc) · 1.35 KB
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
#!/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 ' SimpleEmail 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 apt-get install wget -y
sudo apt-get grep wget -y
sudo pip install --upgrade requests
sudo pip install configparser --upgrade
sudo pip install BeautifulSoup --upgrade
chmod 755 SimplyEmail.py
}
# Menu Case Statement
case $1 in
*)
func_title
func_check_env
func_install_requests
;;
esac