Skip to content

Commit

Permalink
Merge pull request Veil-Framework#368 from Veil-Framework/setuppatch2
Browse files Browse the repository at this point in the history
Fix for Ubuntu and Arch install
  • Loading branch information
ChrisTruncer authored Jun 29, 2016
2 parents 54d1d0e + 8e7886d commit 255f11b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[06.29.2016]
Released.: 2.27.2
Modified.: Setup script now contains a fix for a bug in ubuntu and arch

[06.26.2016]
Released.: 2.27.1
Modified.: Python payloads now show a console until issue with --noconsole is figured out
Expand Down
2 changes: 1 addition & 1 deletion modules/common/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import helpers


version = "2.27.1"
version = "2.27.2"


# try to find and import the settings.py config file
Expand Down
20 changes: 12 additions & 8 deletions setup/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,20 @@

# Global Variables
arch="$(uname -m)"
runuser="$(whoami)"
trueuser="$(who am i | awk '{print $1}')" # if this is blank, we're actually root (kali)
# Edge cases... urgh. There *was* a reason it's like this. It'll get tested further
# later and get cleaned up as required in a later patch.
nukewinedir=""
silent=false
os="$(awk -F '=' '/^ID=/ {print $2}' /etc/os-release 2>&-)"
version=$(awk -F '=' '/^VERSION_ID=/ {print $2}' /etc/os-release 2>&-)
arg=""
outputfolder="/usr/share/veil-output/"
runuser="$(whoami)"
if [ "${os}" == "ubuntu" ] || [ "${os}" == "arch" ]; then
trueuser="$(who | awk '{print $1}')"
else
trueuser="$(who am i | awk '{print $1}')" # if this is blank, we're actually root (kali)
fi
if [ "$runuser" == "root" ] && [ "$trueuser" == "" ]; then
trueuser="root"
fi
Expand All @@ -20,12 +30,6 @@ rootdir=$(cd "$( dirname "${BASH_SOURCE[0]}" )/../" && pwd)
winedir="${userhomedir}/.config/wine/veil"
winedrive="${userhomedir}/.config/wine/veil/drive_c"
WINEPREFIX="${userhomedir}/.config/wine/veil"
nukewinedir=""
silent=false
os="$(awk -F '=' '/^ID=/ {print $2}' /etc/os-release 2>&-)"
version=$(awk -F '=' '/^VERSION_ID=/ {print $2}' /etc/os-release 2>&-)
arg=""
outputfolder="/usr/share/veil-output/"
BOLD="\033[01;01m" # Highlight
RED="\033[01;31m" # Issues/Errors
GREEN="\033[01;32m" # Success
Expand Down

0 comments on commit 255f11b

Please sign in to comment.