Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #304 from Veil-Framework/update_sbrun_patch
Browse files Browse the repository at this point in the history
Patch provided by @sbrun to help with kali compatibility
  • Loading branch information
ChrisTruncer committed Apr 1, 2016
2 parents 7f643bd + 68fb89c commit 21eedce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[04.01.2016]
Released.: 2.26.1
Updated..: Our update.py script has been updated for better compatibility with Kali. Thanks to @Sbrun for providing the patch!

[03.31.2016]
Released.: 2.26
Fixed....: Fixed command injection vulnerability because @botnet_hunter supplied us with a fix that worked against all of his tests. Thanks to @botnet_hunter for helping to remediate this issue!
Expand Down
16 changes: 6 additions & 10 deletions config/update.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python

import platform, os, sys
import platform, os, sys, pwd

"""
Expand Down Expand Up @@ -200,15 +200,11 @@ def generateConfig(options):

# Get the real user if we're being ran under sudo
wineprefix = ""
try:
user = os.environ.get("SUDO_USER")
if user == 'root':
wineprefix = "/root/.config/wine/veil/"
else:
wineprefix = "/home/" + user + "/.config/wine/veil/"
except KeyError:
print(" [*] Unable to get user from SUDO_USER environment variable\n")
print(" Your WINEPREFIX option might be screwed. You can fix it in /etc/veil/settings.py")
user = os.environ.get("SUDO_USER", pwd.getpwuid(os.getuid()).pw_name)
if user == 'root':
wineprefix = "/root/.config/wine/veil/"
else:
wineprefix = "/home/" + user + "/.config/wine/veil/"
options["WINEPREFIX"] = wineprefix

# Veil-Evasion specific options
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.26"
version = "2.26.1"


# try to find and import the settings.py config file
Expand Down

0 comments on commit 21eedce

Please sign in to comment.