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

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

Closed
LithiumBloom opened this issue Nov 1, 2017 · 15 comments
Closed

Comments

@LithiumBloom
Copy link

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.

@ChrisTruncer
Copy link
Member

I don't know if that is the latest version, it likely isn't. THe best way to install Veil is from cloning this git repo and installing. I would try that. TO be honest, I have no idea how it will work with the files also installed from apt on there.

@f1b0n
Copy link

f1b0n commented Nov 14, 2017

Commenting out line 30 in shellcode_help.py lets it run

Sorry, kinda new to all this, not sure how to do this? Literally having the same error..

@LithiumBloom
Copy link
Author

Python comments are any lines starting with a hash, so open the file ("/usr/share/veil/Tools/Evasion/evasion_common/shellcode_help.py"), go to line 30, put a # at the very start of the line, and save it. Does that help?

@m-oleary
Copy link

I had the same problem using Kali.

  • apt upgrade no help
  • apt dist-upgrade no help
  • apt remove veil; apt install veil no help.

Commented out line 30, and all works as expected. I don't know the cause, but thanks for the solution.

@ChrisTruncer
Copy link
Member

Did all of you install Veil, at some point, via apt and not via cloning this repo? I can't seem to recreate this, but I also only installed via cloning this repo.

@m-oleary
Copy link

Installed it via apt

@ChrisTruncer
Copy link
Member

I'm going to close this for now since there seems to be a workaround. I think this issue might only exist when you install via apt (and might still persist even if then installed via git clone). But if others encounter this error, I'd like for them to see the workaround.

@GrahamDi
Copy link

GrahamDi commented Dec 9, 2017

@ChrisTruncer - commenting out line 30 as per above may be ok on the Evasion tools but it breaks the Ordnance leg...figures really as the code relates to Ordnance tools.

Btw, I cannot get Veil to install successfully via git clone on Kali 2017.2 in a VirtualBox VM. It goes all the way to 'Done' but doesn't launch itself...and when I type veil into a terminal it tells me command not found. if I go the apt-get route I get a working veil (after commenting out line 30). It says it is version 3.1.1.

@GrahamDi
Copy link

ps. Got git clone working now...problem between chair and keyboard :-)

@dmknght
Copy link
Contributor

dmknght commented Dec 13, 2017

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

@GrahamDi
Copy link

Makes sense. Thanks.
The git hub clone has that line coded differently than the apt version, hence not a problem in the later version.

@x-cod3r
Copy link

x-cod3r commented Jan 21, 2018

@dmknght Thank you it works

@apoorv1126
Copy link

Thank you, It works.

@faizzaki212
Copy link

I downloaded it using apt-get install veil and then type veil in terminal and the setup ran without any errors

@bcskking
Copy link

Traceback (most recent call last):
File "./Veil.py", line 10, in
from lib.common import orchestra
File "/home/sanjeevkumar/Desktop/Veil/lib/common/orchestra.py", line 7, in
import readline
this is my problem how to solve this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

11 participants