SolvedVeil import error when running veil after fresh install (and workaround)

Veil version

3.1.1

OS Used - all info (architecture, linux flavor, etc)

Kali (kali-rolling)

How did you install Veil? (Apt, Clone from Github, etc.)

apt-get

Did you run the setup script?

yes

Pastebin link to error you are encountering (include console actions you took prior to error)

#veil
Traceback (most recent call last):
File "./Veil.py", line 95, in
the_conductor = orchestra.Conductor(args)
File "/usr/share/veil/lib/common/orchestra.py", line 23, in init
self.load_tools(cli_stuff)
File "/usr/share/veil/lib/common/orchestra.py", line 65, in load_tools
name.replace("/", ".").rstrip('.py'), name)
File "/usr/lib/python3.5/imp.py", line 172, in load_source
module = _load(spec)
File "", line 693, in _load
File "", line 673, in _load_unlocked
File "", line 697, in exec_module
File "", line 222, in _call_with_frames_removed
File "Tools/Evasion/Tool.py", line 16, in
from Tools.Evasion.evasion_common import shellcode_help
File "/usr/share/veil/Tools/Evasion/evasion_common/shellcode_help.py", line 30, in
import Tools.Ordnance.Tool as Ordnance_Import
AttributeError: module 'Tools.Ordnance' has no attribute 'Tool'

Expected behavior

veil starts

Any additional info you want to tell me

Not sure if I just installed it badly? Everything seemed fine during the install though...
Commenting out line 30 in shellcode_help.py lets it run, and i've since successfully generated a file using the evasion module, so that seems to be a working fix for anyone who runs into the same issue.

16 Answers

✔️Accepted Answer

File "/usr/share/veil/Tools/Evasion/evasion_common/shellcode_help.py", line 30
import Tools.Ordnance.Tool as Ordnance_Import
Edit it to
from Tools.Ordnance import Tool as Ordnance_Import
It worked for me.
p/s: I am using Parrot Sec OS 3.10, I installed veil from apt

Related Issues:

13
Veil Can't find the WINE profile for AuotIT v3
Confirmed on Ubuntu 16.04.5 To give an easy copy-pastable fix for others I try to install Veil and a...
11
Veil import error when running veil after fresh install (and workaround)
File /usr/share/veil/Tools/Evasion/evasion_common/shellcode_help.py Veil version 3.1.1 OS Used - all...
6
Veil Veil Installation error Failed to run (wine) Python pip pefile... Exit code: 1
Seems to do the trick for python 3.4 As per @ashr comment changing the installed pefile version fixe...
5
docker mailserver Impossible to relay to port 465
I've been learning about SMTP lately and trying to get my head around the ports security and general...
3
docker mailserver -
@wernerfred If -c is not used the container name is auto detected No description provided. ...