mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-05 19:11:57 +02:00
veil: 3.1.11, fix https://github.com/pentoo/pentoo-overlay/issues/354
This commit is contained in:
parent
75f691fac2
commit
dc82111420
5 changed files with 169 additions and 0 deletions
1
app-antivirus/veil/Manifest
Normal file
1
app-antivirus/veil/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST veil-3.1.11.tar.gz 198285 BLAKE2B 8bbfddf70567185cf9a7679ec61b6854ebd75ae0a33171d517887dae9ca3ff0d93c5a38a0da7d2c64684e0492e20d44743c05265689920944293b22ddcac1984 SHA512 bf9e5fc23beb8c7640fc732b1e4b817fd0f0abf2470d2bebaf158ef63a0f880bc55f3a443fc6720f6251bf672210b77ba5634321997774908d0f95d1b67f35b9
|
||||
34
app-antivirus/veil/files/veil-3-nodeps.patch
Normal file
34
app-antivirus/veil/files/veil-3-nodeps.patch
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
--- lib/common/helpers.py.orig 2018-05-18 07:27:36.000000000 +0800
|
||||
+++ lib/common/helpers.py 2018-11-14 14:45:07.022153526 +0800
|
||||
@@ -23,31 +23,10 @@
|
||||
print( "\n [!] ERROR #2-3: Can't find Go (%s). Run: %s --force --silent\n" % ( settings.GOLANG_PATH, os.path.abspath( "./config/setup.sh" ) ) )
|
||||
sys.exit()
|
||||
|
||||
-if not os.path.exists( settings.PYINSTALLER_PATH ):
|
||||
- print( "\n [!] ERROR #2-3: Can't find PyInstaller (%s). Run: %s --force --silent\n" % ( settings.PYINSTALLER_PATH, os.path.abspath( "./config/setup.sh" ) ) )
|
||||
- sys.exit()
|
||||
-
|
||||
if not os.path.exists( settings.METASPLOIT_PATH ):
|
||||
print( "\n [!] ERROR #2-3: Can't find the Metasploit Framework (%s). Run: %s --force --silent\n" % ( settings.METASPLOIT_PATH, os.path.abspath( "./config/setup.sh" ) ) )
|
||||
sys.exit()
|
||||
|
||||
-if not os.path.exists( settings.WINEPREFIX ):
|
||||
- print( "\n [!] ERROR #2-3: Can't find the WINE profile (%s). Run: %s --force --silent\n" % ( settings.WINEPREFIX, os.path.abspath( "./config/setup.sh" ) ) )
|
||||
- sys.exit()
|
||||
-
|
||||
-if not os.path.exists( settings.WINEPREFIX + "/drive_c/Python34/python.exe" ):
|
||||
- print( "\n [!] ERROR #2-3: Can't find the WINE profile for Python v3.4 (%s). Run: %s --force --silent\n" % ( settings.WINEPREFIX + "/drive_c/Python34/python.exe", os.path.abspath( "./config/setup.sh" ) ) )
|
||||
- sys.exit()
|
||||
-
|
||||
-if not os.path.exists( settings.WINEPREFIX + "/drive_c/Ruby187/bin/ruby.exe" ):
|
||||
- print( "\n [!] ERROR #2-3: Can't find the WINE profile for Ruby v1.8.7 (%s). Run: %s --force --silent\n" % ( settings.WINEPREFIX + "/drive_c/Ruby187/bin/ruby.exe", os.path.abspath( "./config/setup.sh" ) ) )
|
||||
- sys.exit()
|
||||
-
|
||||
-if not os.path.exists( settings.WINEPREFIX + "/drive_c/Program Files/AutoIt3/Aut2Exe/Aut2exe.exe" ):
|
||||
- print( "\n [!] ERROR #2-3: Can't find the WINE profile for AuotIT v3 (%s). Run: %s --force --silent\n" % ( settings.WINEPREFIX + "/drive_c/Program Files/AutoIt3/Aut2Exe/Aut2exe.exe", os.path.abspath( "./config/setup.sh" ) ) )
|
||||
- sys.exit()
|
||||
-
|
||||
-
|
||||
def clean_payloads():
|
||||
print("\n [*] Cleaning %s" % (settings.PAYLOAD_SOURCE_PATH))
|
||||
os.system('rm -f %s/*.*' % (settings.PAYLOAD_SOURCE_PATH))
|
||||
68
app-antivirus/veil/files/veil-3_settings.py
Normal file
68
app-antivirus/veil/files/veil-3_settings.py
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
##################################################################################################
|
||||
#
|
||||
# Veil configuration file
|
||||
#
|
||||
# Run 'Veil.py --config' to automatically set all these options to their defaults.
|
||||
#
|
||||
##################################################################################################
|
||||
|
||||
|
||||
#################################################
|
||||
#
|
||||
# General system options
|
||||
#
|
||||
#################################################
|
||||
# OS to use (Kali/Backtrack/Debian/Windows)
|
||||
OPERATING_SYSTEM="Linux"
|
||||
|
||||
# Specific Linux distro
|
||||
DISTRO="Linux"
|
||||
|
||||
# Terminal clearing method to use (use "false" to disable it)
|
||||
TERMINAL_CLEAR="clear"
|
||||
|
||||
# Veil install path
|
||||
VEIL_PATH="/usr/lib/veil"
|
||||
|
||||
# Wine environment
|
||||
WINEPREFIX="/usr/lib/wine/"
|
||||
|
||||
# Path to temporary directory
|
||||
TEMP_PATH="/tmp/"
|
||||
|
||||
# The path to the metasploit framework, for example: /usr/lib/metasploit/
|
||||
METASPLOIT_PATH="/usr/lib/metasploit/"
|
||||
|
||||
# The path to msfvenom for shellcode generation purposes
|
||||
MSFVENOM_PATH="/usr/bin/"
|
||||
|
||||
# Default options to pass to msfvenom for shellcode creation
|
||||
MSFVENOM_OPTIONS=""
|
||||
|
||||
# The path to pyinstaller, for example: /var/lib/veil/PyInstaller-3.2.1/
|
||||
PYINSTALLER_PATH="/var/lib/veil/PyInstaller-3.2.1/"
|
||||
|
||||
# The path to pyinstaller, for example: /usr/lib/go/
|
||||
GOLANG_PATH="/usr/lib/go/"
|
||||
|
||||
|
||||
|
||||
#################################################
|
||||
#
|
||||
# Veil-Evasion specific options
|
||||
#
|
||||
#################################################
|
||||
# Path to output the source of payloads
|
||||
PAYLOAD_SOURCE_PATH="~/.veil/output/source/"
|
||||
|
||||
# Path to output compiled payloads
|
||||
PAYLOAD_COMPILED_PATH="~/.veil/output/compiled/"
|
||||
|
||||
# Where to generate a msf handler script
|
||||
HANDLER_PATH="~/.veil/output/handlers/"
|
||||
|
||||
# Running hash list of all payloads generated
|
||||
HASH_LIST="~/.veil/output/hashes.txt"
|
||||
|
||||
65
app-antivirus/veil/veil-3.1.11.ebuild
Normal file
65
app-antivirus/veil/veil-3.1.11.ebuild
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python3_5 python3_6 )
|
||||
inherit eutils python-single-r1
|
||||
|
||||
DESCRIPTION="A tool for payloads generation that bypass common anti-virus solutions"
|
||||
HOMEPAGE="https://github.com/Veil-Framework/Veil"
|
||||
SRC_URI="https://github.com/Veil-Framework/Veil/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="tools"
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="dev-python/pycryptodome
|
||||
dev-python/pefile
|
||||
tools? (
|
||||
dev-lang/go
|
||||
net-analyzer/metasploit )
|
||||
"
|
||||
|
||||
#mingw-w64 monodevelop mono-mcs ruby
|
||||
# ca-certificates winbind
|
||||
|
||||
# dev-python/symmetricjsonrpc
|
||||
# dev-python/capstone-python
|
||||
# windows? (
|
||||
# dev-python/pyinstaller
|
||||
# app-emulation/wine
|
||||
# )
|
||||
|
||||
S="${WORKDIR}/Veil-${PV}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}"/veil-3-nodeps.patch
|
||||
eapply_user
|
||||
}
|
||||
|
||||
src_install() {
|
||||
rm -r config/
|
||||
# rm -r setup/
|
||||
|
||||
dodir /usr/$(get_libdir)/${PN}
|
||||
cp -R * "${ED}"/usr/$(get_libdir)/${PN} || die "Copy files failed"
|
||||
|
||||
#use our custom settings
|
||||
insinto /etc/veil
|
||||
newins "${FILESDIR}"/${PN}-3_settings.py settings.py
|
||||
|
||||
# dosym "${EPREFIX}"/usr/$(get_libdir)/veil/Veil.py /usr/bin/veil
|
||||
newbin - veil <<-EOF
|
||||
#!/bin/sh
|
||||
cd /usr/lib/veil
|
||||
python ./Veil.py
|
||||
EOF
|
||||
}
|
||||
|
||||
pkg_postinst(){
|
||||
einfo "you need to setup wine env for pyinstaller"
|
||||
einfo "wine msiexec /i python-2.7.12.msi"
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
~app-antivirus/malheur-0.5.3 ~arm
|
||||
=app-antivirus/veil-evasion-2.28*
|
||||
=app-antivirus/veil-3*
|
||||
|
||||
~dev-dotnet/wxnet-0.7.2
|
||||
~net-firewall/sanewall-1.1.6
|
||||
|
|
|
|||
Loading…
Reference in a new issue