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

Can't find the WINE profile for Python v3.4 #206

Closed
ghost opened this issue May 7, 2018 · 14 comments
Closed

Can't find the WINE profile for Python v3.4 #206

ghost opened this issue May 7, 2018 · 14 comments

Comments

@ghost
Copy link

ghost commented May 7, 2018

Veil version

3.1.7

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

"uname -a" output -> Linux parrot 4.15.0-parrot17-amd64 #1 SMP Debian 4.15.17-1parrot17 (2018-04-22) x86_64 GNU/Linux

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

I installed via git clone

Did you run the setup script?

./config/setup.sh --silent --force

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

I can't access pastebin because of the government (These stupids restrict everything, including Wikipedia!!!) Also there is no need for pastebin link. Here is the error:

[!] ERROR #2-3: Can't find the WINE profile for Python v3.4 (/var/lib/veil/wine//drive_c/Python34/python.exe). Run: /home/rook/Tools/Veil/config/setup.sh --force --silent

Expected behavior

I would like Veil to run normally

Any help would be appreciated! 👍

@ChrisTruncer
Copy link
Member

can you find the Wine profile manually? Are you able to access any of those directories, or that python.exe file?

@ghost
Copy link
Author

ghost commented May 8, 2018

No i cannot access to "/var/lib/veil/wine//drive_c/Python34/", it doesn't exist. But i can access "/var/lib/veil/wine//drive_c/" directory. Let me guess: I should install Python 3.4 manually to that directory.

@ChrisTruncer
Copy link
Member

ChrisTruncer commented May 8, 2018 via email

@ghost
Copy link
Author

ghost commented May 8, 2018

I found the problem. In Parrot OS by default firejail is installed and it blocks wine. But i don't want to uninstall firejail, i'm fine with it, i just want to disable it temporarily and i don't know how to do it. I searched at Google, nothing showed up. I think i'm gonna remove firejail with apt, run setup script and reinstall it. But if anyone knows how to disable firejail by not removing it, please tell me. Any help would be appreciated 👍

@ghost
Copy link
Author

ghost commented May 8, 2018

Alright, i researched about firejail and i found it unnecesary and REMOVED IT! I'm really fine now, all of my problems solved. Also i had a problem with Virtualbox too. By removing firejail now i can create host only interface with Virtualbox. Veil works fine! Thanks for help 👍

@ghost ghost closed this as completed May 8, 2018
@ChrisTruncer
Copy link
Member

glad you were able to figure it out, and thank you for posting the results of your work!

@alaa-404
Copy link

alaa-404 commented Apr 2, 2019

Hello!

I seem to be experiencing the same issue but I'm not running Parrot OS like the OP, but running the latest version of Kali.

I've used the clone method then ran the setup script with both the force and silent arguments, still getting the error:

[!] ERROR #2-3: Can't find the WINE profile for Python v3.4

The directory itself doesn't exist in the wine folder.

@ChrisTruncer
Copy link
Member

I just now tested against a clean install of Kali, up to date as of today, and Veil was able to install without any issues. I tested running the tool after the install and did not git the error message. Can you try on a clean VM>

@kingskylarker
Copy link

Hi
I have this problem too, and I did everything you said but it doesnt work
**
Again -->> [!] ERROR #2-3: Can't find the WINE profile for Python v3.4
**

@maguilba
Copy link

I am having the exact same problem installing Veil on Kali 2019.4.

==========================================================================
Veil (Setup Script) | [Updated]: 2018-05-08

 [Web]: https://www.veil-framework.com/ | [Twitter]: @VeilFramework

==========================================================================

             os = kali
      osversion = 2019.4
   osmajversion = 2019
           arch = x86_64
       trueuser = root

userprimarygroup = root
userhomedir = /root
rootdir = /opt/Veil
veildir = /var/lib/veil
outputdir = /var/lib/veil/output
dependenciesdir = /var/lib/veil/setup-dependencies
winedir = /var/lib/veil/wine
winedrive = /var/lib/veil/wine/drive_c
gempath = Z:\var\lib\veil\wine\drive_c\Ruby187\bin\gem

[I] Kali Linux 2019.4 x86_64 detected...

[I] Silent Mode: Enabled
[I] Force Mode: Enabled

[?] Are you sure you wish to install Veil?

 Continue with installation? ([y]es/[s]ilent/[N]o): S

[*] Initializing package installation

[*] Installing dependencies

[*] Updating APT

Reading package lists... Done
Building dependency tree
Reading state information... Done
ruby is already the newest version (1:2.5.2).
ruby set to manually installed.
sudo is already the newest version (1.8.29-1).
sudo set to manually installed.
unzip is already the newest version (6.0-25).
unzip set to manually installed.
The following additional packages will be installed:
binutils-mingw-w64-i686 binutils-mingw-w64-x86-64 ca-certificates-mono
cli-common g++-mingw-w64 g++-mingw-w64-i686 g++-mingw-w64-x86-64
gcc-mingw-w64 gcc-mingw-w64-base gcc-mingw-w64-i686
gcc-mingw-w64-x86-64 git-man libisl22 libmono-btls-interface4.0-cil
libmono-corlib4.5-cil libmono-i18n-west4.0-cil libmono-i18n4.0-cil
libmono-microsoft-csharp4.0-cil libmono-security4.0-cil
libmono-system-configuration4.0-cil libmono-system-core4.0-cil
libmono-system-numerics4.0-cil libmono-system-security4.0-cil
libmono-system-xml4.0-cil libmono-system4.0-cil libpython3-stdlib
mingw-w64-common mingw-w64-i686-dev mingw-w64-x86-64-dev mono-4.0-gac
mono-gac mono-runtime mono-runtime-common mono-runtime-sgen pkg-config
python3-minimal
Suggested packages:
gcc-8-locales git-daemon-run | git-daemon-sysvinit git-doc git-el
git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
libmono-i18n4.0-all libgamin0 wine wine64 python3-doc python3-venv
The following NEW packages will be installed:
binutils-mingw-w64-i686 binutils-mingw-w64-x86-64 ca-certificates-mono
cli-common g++-mingw-w64 g++-mingw-w64-i686 g++-mingw-w64-x86-64
gcc-mingw-w64 gcc-mingw-w64-base gcc-mingw-w64-i686
gcc-mingw-w64-x86-64 libisl22 libmono-btls-interface4.0-cil
libmono-corlib4.5-cil libmono-i18n-west4.0-cil libmono-i18n4.0-cil
libmono-microsoft-csharp4.0-cil libmono-security4.0-cil
libmono-system-configuration4.0-cil libmono-system-core4.0-cil
libmono-system-numerics4.0-cil libmono-system-security4.0-cil
libmono-system-xml4.0-cil libmono-system4.0-cil mingw-w64
mingw-w64-common mingw-w64-i686-dev mingw-w64-x86-64-dev mono-4.0-gac
mono-gac mono-mcs mono-runtime mono-runtime-common mono-runtime-sgen
pkg-config
The following packages will be upgraded:
git git-man libpython3-stdlib python3 python3-minimal
5 upgraded, 35 newly installed, 0 to remove and 682 not upgraded.
Need to get 68.8 MB/154 MB of archives.
After this operation, 838 MB of additional disk space will be used.
Get:1 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 python3 amd64 3.7.5-3 [62.1 kB]
Err:2 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 binutils-mingw-w64-i686 amd64 2.33.1-2+8.6
400 Bad Request [IP: 152.3.102.53 80]
Get:3 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 libmono-corlib4.5-cil all 5.18.0.240+dfsg-3 [1,249 kB]
Ign:4 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 libmono-system-numerics4.0-cil all 5.18.0.240+dfsg-3
Err:4 http://http.kali.org/kali kali-rolling/main amd64 libmono-system-numerics4.0-cil all 5.18.0.240+dfsg-3
400 Bad Request [IP: 152.3.102.53 80]
Get:5 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 libmono-system-security4.0-cil all 5.18.0.240+dfsg-3 [131 kB]
Ign:6 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 libmono-system4.0-cil all 5.18.0.240+dfsg-3
Err:6 http://http.kali.org/kali kali-rolling/main amd64 libmono-system4.0-cil all 5.18.0.240+dfsg-3
400 Bad Request [IP: 152.3.102.53 80]
Get:7 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 mono-4.0-gac all 5.18.0.240+dfsg-3 [176 kB]
Get:8 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 mono-runtime-common amd64 5.18.0.240+dfsg-3+b1 [942 kB]
Get:9 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 mono-runtime amd64 5.18.0.240+dfsg-3+b1 [37.8 kB]
Get:10 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 cli-common all 0.10 [176 kB]
Get:11 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 mingw-w64-i686-dev all 7.0.0-2 [2,675 kB]
Get:12 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 g++-mingw-w64-i686 amd64 8.3.0-26+21.5+b1 [24.2 MB]
Get:13 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 gcc-mingw-w64-x86-64 amd64 8.3.0-26+21.5+b1 [35.7 MB]
Get:14 http://archive.linux.duke.edu/kalilinux/kali kali-rolling/main amd64 g++-mingw-w64 all 8.3.0-22+21.5 [175 kB]
Fetched 65.6 MB in 33s (1,958 kB/s)
E: Failed to fetch http://archive.linux.duke.edu/kalilinux/kali/pool/main/b/binutils-mingw-w64/binutils-mingw-w64-i686_2.33.1-2+8.6_amd64.deb 400 Bad Request [IP: 152.3.102.53 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/m/mono/libmono-system-numerics4.0-cil_5.18.0.240+dfsg-3_all.deb 400 Bad Request [IP: 152.3.102.53 80]
E: Failed to fetch http://http.kali.org/kali/pool/main/m/mono/libmono-system4.0-cil_5.18.0.240+dfsg-3_all.deb 400 Bad Request [IP: 152.3.102.53 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
[ERROR] Failed with installing dependencies (1): 0

[*] Installing Python's pycrypto (via apt)...

Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-crypto is already the newest version (2.6.1-13).
0 upgraded, 0 newly installed, 0 to remove and 687 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
metasploit-framework is already the newest version (5.0.71-0kali1).
metasploit-framework set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 687 not upgraded.

[*] Pulling down binary dependencies

[*] Empty folder... git cloning

Cloning into '/var/lib/veil/setup-dependencies'...
remote: Enumerating objects: 12, done.
remote: Total 12 (delta 0), reused 0 (delta 0), pack-reused 12
Unpacking objects: 100% (12/12), done.

[*] Installing Wine

[*] Already have x86 architecture added...

[*] Installing Wine 32-bit and 64-bit binaries (via APT)

E: Failed to fetch http://archive.linux.duke.edu/kalilinux/kali/pool/main/libs/libshout/libshout3_2.4.3-1_i386.deb 400 Bad Request [IP: 152.3.102.53 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
[ERROR] Failed with installing wine (2): 0

[*] [ALERT]: Existing Veil Wine environment detected at: /var/lib/veil/wine

 Do you want to nuke it? ([y]es/[N]o): Y

[*] Deleting existing Veil Wine environment...

[*] Creating new Veil Wine environment in: /var/lib/veil/wine

[*] Initializing Veil's Wine environment...

sudo: wine: command not found
[ERROR] Veil Wine environment could not be found!

[ERROR] Check for existence of /var/lib/veil/wine/drive_c

[*] Finished package installation

[*] Initializing (OS + Wine) Python dependencies installation...

[*] Installing (Wine) Python...

[*] Next -> Next -> Next -> Finished! ...Overwrite if prompt (use default values)

sudo: wine: command not found
[ERROR] Failed to install (Wine) Python 3.4.4... Exit code: 1

[*] Installing (Wine) Python dependencies...

[*] Installing (Wine) Python's pywin32-220.win32-py3.4.exe...

[*] Next -> Next -> Next -> Finished! ...Overwrite if prompt (use default values)

warning [pywin32-220.win32-py3.4.exe]: 192288 extra bytes at beginning or within zipfile
(attempting to process anyway)
cp: target '/var/lib/veil/wine/drive_c/Python34/Lib/site-packages/' is not a directory
cp: target '/var/lib/veil/wine/drive_c/Python34/Scripts/' is not a directory
sudo: wine: command not found

[*] Installing (Wine) Python's pycrypto-2.6.1.win32-py3.4.exe...

[*] Next -> Next -> Next -> Finished! ...Overwrite if prompt (use default values)

warning [pycrypto-2.6.1.win32-py3.4.exe]: 191515 extra bytes at beginning or within zipfile
(attempting to process anyway)
cp: target '/var/lib/veil/wine/drive_c/Python34/Lib/site-packages/' is not a directory

[*] Installing (OS) Python's PyInstaller (via TAR)

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

sudo: wine: command not found
[ERROR] Failed to run (wine) Python pip... Exit code: 1

sudo: wine: command not found
[ERROR] Failed to run (wine) Python pip future... Exit code: 1

sudo: wine: command not found
[ERROR] Failed to run (wine) Python pip pefile... Exit code: 1

[*] Finished (Wine + OS) Python dependencies installation

[*] Initializing (Wine) Ruby installation...

[*] Installing (Wine) Ruby & dependencies

[*] Next -> Next -> Next -> Finished! ...Overwrite if prompt (use default values)

sudo: wine: command not found
[ERROR] Failed to install (Wine) Ruby.exe... Exit code: 1

[*] Installing (Wine) Ruby OCRA gem...

sudo: wine: command not found
[ERROR] Failed to run (wine) Ruby OCRA.. Exit code: 1

[*] Extracting (Wine) Ruby dependencies...

[*] Finished Ruby installation

[*] Initializing Go installation...

[*] Installing Go x86_64 (via TAR)

[*] Finished Go installation

[*] Initializing AutoIT installation...

[*] Installing (Wine) AutoIT

[*] Next -> Next -> Next -> Finished! ...Overwrite if prompt (use default values)

sudo: wine: command not found
[ERROR] Failed to run (wine) AutoIT.. Exit code: 1

[*] Finished AutoIT installation

[*] Updating Veil configuration...

[*] Detected current Veil settings. Removing...

Veil Configuration:
[] OPERATING_SYSTEM = Kali
[
] TERMINAL_CLEAR = false
[] VEIL_PATH = /opt/Veil/
[
] WINEPREFIX = /var/lib/veil/wine/
[] TEMP_PATH = /tmp/
[
] METASPLOIT_PATH = /usr/share/metasploit-framework/
[] MSFVENOM_PATH = /usr/bin/
[
] MSFVENOM_OPTIONS =
[] PYINSTALLER_PATH = /var/lib/veil/PyInstaller-3.2.1/
[
] GOLANG_PATH = /var/lib/veil/go/

Veil-Evasion Configuration:
[] PAYLOAD_SOURCE_PATH = /var/lib/veil/output/source/
[
] PAYLOAD_COMPILED_PATH = /var/lib/veil/output/compiled/
[] HANDLER_PATH = /var/lib/veil/output/handlers/
[
] HASH_LIST = /var/lib/veil/output/hashes.txt
[I] Path '/etc/veil/' Created
[I] Configuration File Written To: '/etc/veil/settings.py'

[*] Ensuring this account (root) owns veil output directory (/var/lib/veil/output)...

[*] Ensuring this account (root) has correct ownership of /var/lib/veil/wine

[*] Finished Veil configuration...

[*] Finished environment checks

[ERROR] There was issues installing the following:

Failed with installing dependencies (1): 0
Failed with installing wine (2): 0
Veil Wine environment could not be found!
Check for existence of /var/lib/veil/wine/drive_c
Failed to install (Wine) Python 3.4.4... Exit code: 1
Failed to run (wine) Python pip... Exit code: 1
Failed to run (wine) Python pip future... Exit code: 1
Failed to run (wine) Python pip pefile... Exit code: 1
Failed to install (Wine) Ruby.exe... Exit code: 1
Failed to run (wine) Ruby OCRA.. Exit code: 1
Failed to run (wine) AutoIT.. Exit code: 1

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

[I] Done!

root@kali:/opt/Veil#

@shubh11220
Copy link

Have the same issue. Running KALI 2020

@sudo-WearTherinG
Copy link

sudo-WearTherinG commented Apr 24, 2020

simple fix
go to directory

cd Veil/config

ls

'2 files in that directory'

setup.sh & update-config,py

1st command

python update-config.py "this will make path"

2nd command

./setup.sh -s ' 'this will install it''

let it install automatically

[*] Installing Wine 32-bit and 64-bit binaries (via APT)

/usr/bin/apt-listchanges:202: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
key=functools.cmp_to_key(lambda x,y: apt_pkg.version_compare(y.Version, x.Version)))
/usr/bin/apt-listchanges:209: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
if fromversion and apt_pkg.version_compare(fromversion, version) >= 0:
/usr/bin/apt-listchanges:184: DeprecationWarning: PY_SSIZE_T_CLEAN will be required for '#' formats
elif not result or apt_pkg.version_compare(result, statusentry.version()) < 0:
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 384608 files and directories currently installed.)
Preparing to unpack .../udev_245.4-3_amd64.deb ...
Unpacking udev (245.4-3) over (244.3-1) ...
Preparing to unpack .../libudev1_245.4-3_amd64.deb ...
Unpacking libudev1:amd64 (245.4-3) over (244.3-1) ...
Selecting previously unselected package libudev1:i386.
Preparing to unpack .../libudev1_245.4-3_i386.deb ...
Unpacking libudev1:i386 (245.4-3) ...
Setting up libudev1:amd64 (245.4-3) ...
Selecting previously unselected package libc6:i386.
(Reading database ... 384612 files and directories currently installed.)
Preparing to unpack .../archives/libc6_2.30-4_i386.deb ...
Unpacking libc6:i386 (2.30-4) ...
Replacing files in old package libc6-i386 (2.30-4) ...
Selecting previously unselected package libgcc-s1:i386.
Preparing to unpack .../libgcc-s1_10-20200411-1_i386.deb ...
Unpacking libgcc-s1:i386 (10-20200411-1) ...
Selecting previously unselected package gcc-10-base:i386.
Preparing to unpack .../gcc-10-base_10-20200411-1_i386.deb ...
Unpacking gcc-10-base:i386 (10-20200411-1) ...
Setting up gcc-10-base:i386 (10-20200411-1) ...
(Reading database ... 384913 files and directories currently installed.)
Preparing to unpack .../libcrypt1_1%3a4.4.16-1_amd64.deb ...
Unpacking libcrypt1:amd64 (1:4.4.16-1) over (1:4.4.15-1) ...
Selecting previously unselected package libcrypt1:i386.
Preparing to unpack .../libcrypt1_1%3a4.4.16-1_i386.deb ...
Unpacking libcrypt1:i386 (1:4.4.16-1) ...
Setting up libcrypt1:amd64 (1:4.4.16-1) ...
Setting up libgcc-s1:i386 (10-20200411-1) ...
Setting up libcrypt1:i386 (1:4.4.16-1) ...
Setting up libc6:i386 (2.30-4) ...
Setting up libudev1:i386 (245.4-3) ...
(Reading database ... 384915 files and directories currently installed.)
Preparing to unpack .../0-libnss-systemd_245.4-3_amd64.deb ...
Unpacking libnss-systemd:amd64 (245.4-3) over (244.3-1) ...
Preparing to unpack .../1-libpam-systemd_245.4-3_amd64.deb ...
Unpacking libpam-systemd:amd64 (245.4-3) over (244.3-1) ...
Preparing to unpack .../2-libcap2_1%3a2.33-1_amd64.deb ...
Unpacking libcap2:amd64 (1:2.33-1) over (1:2.32-1) ...
Preparing to unpack .../3-libcrypt-dev_1%3a4.4.16-1_amd64.deb ...
Unpacking libcrypt-dev:amd64 (1:4.4.16-1) over (1:4.4.15-1) ...
Preparing to unpack .../4-libgnutls-dane0_3.6.13-2_amd64.deb ...
Unpacking libgnutls-dane0:amd64 (3.6.13-2) over (3.6.12-2) ...
Preparing to unpack .../5-libstdc++6_10-20200411-1_amd64.deb ...
Unpacking libstdc++6:amd64 (10-20200411-1) over (9.2.1-25) ...
Selecting previously unselected package libstdc++6:i386.
Preparing to unpack .../6-libstdc++6_10-20200411-1_i386.deb ...
Unpacking libstdc++6:i386 (10-20200411-1) ...
etc etc etc etc.......

@pranshushakya123
Copy link

I have same issue

@alok-sharma-github
Copy link

In my case:
do you want to install:
Y------error
s-------succesful

This issue was closed.
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

8 participants