mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-28 17:50:58 +02:00
veil-evasion: more pyintaller fixes, still broken
This commit is contained in:
parent
cf2d3163b2
commit
15247ecfd6
2 changed files with 15 additions and 4 deletions
|
|
@ -38,7 +38,7 @@ OPERATING_SYSTEM="Linux"
|
|||
TERMINAL_CLEAR="clear"
|
||||
|
||||
# Wine environment
|
||||
WINEPREFIX=HOME_PATH+"/.config/wine/veil/"
|
||||
WINEPREFIX=HOME_PATH+"/.wine/"
|
||||
|
||||
# Path to temporary directory
|
||||
TEMP_DIR="/tmp/"
|
||||
|
|
@ -53,7 +53,7 @@ METASPLOIT_PATH="/usr/lib/metasploit"
|
|||
MSFVENOM_PATH="/usr/bin/"
|
||||
|
||||
# The path to pyinstaller, for example: /opt/pyinstaller-2.0/
|
||||
PYINSTALLER_PATH=/usr/lib64/python2.7/site-packages
|
||||
PYINSTALLER_PATH="/usr/lib64/python2.7/site-packages"
|
||||
|
||||
#################################################
|
||||
#
|
||||
|
|
@ -61,10 +61,10 @@ PYINSTALLER_PATH=/usr/lib64/python2.7/site-packages
|
|||
#
|
||||
#################################################
|
||||
|
||||
VEIL_RESULTS_PATH=HOME_PATH+"/.veil-evasion"
|
||||
VEIL_RESULTS_PATH=HOME_PATH+"/.veil-evasion/"
|
||||
|
||||
# Veil-Evasion install path
|
||||
VEIL_EVASION_PATH="/usr/lib/veil-evasion"
|
||||
VEIL_EVASION_PATH="/usr/lib64/veil-evasion/"
|
||||
|
||||
# Path to output the source of payloads
|
||||
PAYLOAD_SOURCE_PATH=VEIL_RESULTS_PATH+"/source/"
|
||||
|
|
|
|||
|
|
@ -36,6 +36,12 @@ RDEPEND=">=dev-python/pycrypto-2.3
|
|||
|
||||
S="${WORKDIR}/Veil-Evasion-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
#+os.path.expanduser(settings.PYINSTALLER_PATH + '/pyinstaller.py')+
|
||||
# os.path.expanduser(settings.PYINSTALLER_PATH + '/pyinstaller.py')
|
||||
sed -i "s|os.path.expanduser(settings.PYINSTALLER_PATH + '/pyinstaller.py')|/usr/bin/pyinstall|g" modules/common/supportfiles.py || die "sed failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
rm -r config/
|
||||
rm -r setup/
|
||||
|
|
@ -50,3 +56,8 @@ src_install() {
|
|||
|
||||
dosym /usr/$(get_libdir)/veil-evasion/Veil-Evasion.py /usr/bin/veil-evasion
|
||||
}
|
||||
|
||||
pkg_postinst(){
|
||||
einfo "you need to setup wine env for pyinstaller"
|
||||
einfo "wine msiexec /i python-2.7.12.msi"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue