forked from GeeksXtreme/Veil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.sh
executable file
·46 lines (37 loc) · 1.12 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
#!/bin/bash
# Global Variables
gitcmd=`which git`
veildir=`dirname ${0}`
# Title Function
func_title(){
# Clear Terminal (For Prettyness)
clear
# Print Title
echo '========================================================================='
echo ' Veil-Framework Update Script | [Updated]: 01.17.2015'
echo '========================================================================='
echo ' [Web]: https://www.veil-framework.com | [Twitter]: @VeilFramework'
echo '========================================================================='
echo
}
# Git Requirement Check
if [[ ${gitcmd} == '' ]]
then
func_title
echo '[Error]: Git is not installed or not in PATH.'
echo '[Error]: Install git and re-run this update script.'
echo
exit 1
fi
# Call Title Function
func_title
# Change To Script Directory
cd ${veildir}
# Pull Latest Release Of Submodules
${gitcmd} pull && ${gitcmd} submodule update --init --recursive
# Set Working Directory
veilpwd=`pwd -P`
# Run Veil-Evasion Setup Script
cd ${veilpwd}/Veil-Evasion/setup/ && ./setup.sh
# Run Veil-Pillage Setup Script
cd ${veilpwd}/Veil-Pillage/ && ./update.py