SolvedVeil Veil Installation error Failed to run (wine) Python pip pefile... Exit code: 1

Veil version

Veil 3.1

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

Kali linux 2021.1 on VirtualBox on a Mac

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

git clone https://github.com/Veil-Framework/Veil.git

Did you run the setup script?

yes i tried all of it
./config/setup.sh --force --silent
/usr/share/veil/config/setup.sh --force --silent
./Veil.py --setup

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

[*] Installing (Wine) Python's PIP pefile

Collecting pip==19.1.*
Downloading https://files.pythonhosted.org/packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl (1.4MB)
100% |################################| 1.4MB 285kB/s
Installing collected packages: pip
Found existing installation: pip 7.1.2
Uninstalling pip-7.1.2:
Successfully uninstalled pip-7.1.2
Successfully installed pip-19.1.1
You are using pip version 19.1.1, however version 21.1.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
Collecting future
Downloading https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz (829kB)
|████████████████████████████████| 829kB 553kB/s eta 0:00:01
Installing collected packages: future
Running setup.py install for future ... \0031:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
done
Successfully installed future-0.18.2
DEPRECATION: Python 3.4 support has been deprecated. pip 19.1 will be the last one supporting it. Please upgrade your Python as Python 3.4 won't be maintained after March 2019 (cf PEP 429).
Collecting pefile
Downloading https://files.pythonhosted.org/packages/f9/1e/fc4fac0169d16a98577809400bbcfac8ad1900fa792184327b360ea51fc6/pefile-2021.5.13.tar.gz (66kB)
|████████████████████████████████| 71kB 487kB/s eta 0:00:01
ERROR: Complete output from command python setup.py egg_info:
ERROR: Traceback (most recent call last):
File "", line 1, in
File "C:\users\root\Temp\pip-install-u0tx4rya\pefile\setup.py", line 86, in
long_description = "\n".join(_read_doc().split('\n')),
File "C:\users\root\Temp\pip-install-u0tx4rya\pefile\setup.py", line 33, in _read_doc
tree = ast.parse(f.read())
File "C:\Python34\lib\ast.py", line 35, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "", line 3789
f'Export directory contains more than 10 repeated entries '
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in C:\users\root\Temp\pip-install-u0tx4rya\pefile
[ERROR] Failed to run (wine) Python pip pefile... Exit code: 1

[*] Finished environment checks

[ERROR] There was issues installing the following:

Failed to run (wine) Python pip pefile... Exit code: 1

[I] If you have any errors running Veil, run: './Veil.py --setup' and select the nuke the wine folder option

Expected behavior

Any additional info you want to tell me

Ive been trying to solve this issue for a few days now but none of the methods are working i even tried to download on a new kali virtual machine but it still shows this one error again if anyone has a solution please help me solve this.

19 Answers

✔️Accepted Answer

image

Seems to do the trick for python 3.4

As per @ashr comment, changing the installed pefile version fixed the issue.

# vi /usr/share/veil/config/setup.sh

Change line 587 to:
sudo -u "${trueuser}" WINEPREFIX="${winedir}" wine "${winedir}/drive_c/Python34/python.exe" "-m" "pip" "install" "-Iv" "pefile==2019.4.18"

Then, run # veil --setup again.

Hope it helps.

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. ...