Skip to content

Commit

Permalink
Fix for odd import error issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTruncer committed Apr 17, 2017
1 parent 173ec20 commit 9a3e5ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Tools/Evasion/Tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from Tools.Evasion.evasion_common import evasion_helpers
from Tools.Evasion.evasion_common import outfile
from Tools.Evasion.evasion_common import shellcode_help
from Tools.Ordnance import Tool as Ordnance_Import


# try to find and import the settings.py config file
Expand All @@ -27,6 +26,9 @@
print("\n [!] ERROR #1: run %s manually\n" % (os.path.abspath("./config/update.py")))
sys.exit()

sys.path.insert(0, settings.VEIL_EVASION_PATH + 'Tools/Ordnance')
import Tool as Ordnance_Import


class Tools:

Expand Down
13 changes: 11 additions & 2 deletions Tools/Evasion/evasion_common/shellcode_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,21 @@
import sys

from lib.common import helpers
from Tools.Ordnance import Tool as Ordnance_Import
from Tools.Evasion.evasion_common import evasion_helpers
from lib.common import completer

# try to find and import the settings.py config file
if os.path.exists("/etc/veil/settings.py"):
try:
sys.path.append("/etc/veil/")
import settings

import settings
except ImportError:
print("\n [!] ERROR #1: run %s manually\n" % (os.path.abspath("./config/update.py")))
sys.exit()

sys.path.insert(0, settings.VEIL_EVASION_PATH + 'Tools/Ordnance')
import Tool as Ordnance_Import


class Shellcode:
Expand Down

0 comments on commit 9a3e5ed

Please sign in to comment.