Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

veil #2168

Merged
merged 2 commits into from
Dec 19, 2024
Merged

veil #2168

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app-antivirus/veil/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST veil-3.1.14.tar.gz 199315 BLAKE2B cc75d5f43d4d32bcb107cdae9026b1a8f80279de032c80e6e5de60a7210aed9a8d882e04629bebb4ad083f162fa067bb310fc11ed9b4a16558018d67b5d8dfce SHA512 1f324ec84b19b284a0b2c342e7cabaeb84dd5952352e64080b7473bd583f26c0c9bcd54c04696548c333b1ed715062c95303ee7f0e1a1d77c6587144820294cc
DIST veil-3.1.14_p20221014.tar.gz 199398 BLAKE2B a42987a4e279fea977eb64a6022f70878e04f10a1e3105e9de49049a293f7021fdb1f9f934e2e6b208249effa8bb400666849fafaec91f0453a0cead36b9e884 SHA512 c8ec2fe84200879ed89c13d35d6db65a4b811b30545a97bbeed93dac1c3b0928a4afda3fdda54e11882c4b5e24895db87e11008f090f82a82b0fd1838d0e7974
3 changes: 1 addition & 2 deletions app-antivirus/veil/veil-3.1.14-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ SRC_URI="https://github.com/Veil-Framework/Veil/archive/${PV}.tar.gz -> ${P}.tar
S="${WORKDIR}/Veil-${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="tools"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

Expand Down Expand Up @@ -52,7 +51,7 @@ src_install() {
# dosym "${EPREFIX}"/usr/$(get_libdir)/veil/Veil.py /usr/bin/veil
newbin - veil <<-EOF
#!/bin/sh
cd /usr/lib/veil
cd /usr/$(get_libdir)/veil || exit 1
python ./Veil.py \${@}
EOF
}
Expand Down
67 changes: 67 additions & 0 deletions app-antivirus/veil/veil-3.1.14_p20221014.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Copyright 1999-2024 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{10..12} )
inherit python-single-r1

DESCRIPTION="A tool for payloads generation that bypass common anti-virus solutions"
HOMEPAGE="https://github.com/Veil-Framework/Veil"
COMMIT="d8acd4cc95eeb0216826aab8d4cff40179d9bf76"
SRC_URI="https://github.com/Veil-Framework/Veil/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}/Veil-${PV}"
LICENSE="GPL-3"
SLOT="0"
IUSE="tools"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
S="${WORKDIR}/Veil-${COMMIT}"

RDEPEND="dev-python/pycryptodome
dev-python/pefile
${PYTHON_DEPS}
tools? ( dev-lang/go )
"

#mingw-w64 monodevelop mono-mcs ruby
# ca-certificates winbind

# dev-python/symmetricjsonrpc
# dev-python/capstone-python
# windows? (
# dev-python/pyinstaller
# app-emulation/wine
# )

src_prepare() {
eapply "${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/$(get_libdir)/veil || exit 1
python ./Veil.py \${@}
EOF
}

pkg_postinst(){
einfo "you need to setup wine env for pyinstaller"
einfo "wine msiexec /i python-2.7.12.msi"
#https://github.com/Veil-Framework/Veil/issues/259
einfo "Please also create the follow directories:"
einfo "mkdir -p ~/.veil/output/{compiled,handlers,source}/"
}
13 changes: 13 additions & 0 deletions profiles/pentoo/zero-system/profile.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ fi
if [[ ${CATEGORY}/${PN} == dev-db/sqlitebrowser ]]; then
export CXXFLAGS="${CXXFLAGS/-Werror=odr/}"
fi
if [[ ${CATEGORY}/${PN} == dev-util/bcc ]]; then
export CXXFLAGS="${CXXFLAGS/-Werror=odr/}"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/keystone ]]; then
export CXXFLAGS="${CXXFLAGS/-Werror=odr/}"
fi
Expand Down Expand Up @@ -339,6 +342,9 @@ fi
if [[ ${CATEGORY}/${PN} == dev-libs/zziplib ]]; then
export CFLAGS="${CFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == dev-python/pyzmq ]]; then
export CFLAGS="${CFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == kde-plasma/kpipewire ]]; then
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi
Expand Down Expand Up @@ -686,6 +692,9 @@ fi
if [[ ${CATEGORY}/${PN} == kde-frameworks/kparts ]]; then
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == net-wireless/gr-mixalot ]]; then
export CXXFLAGS="${CXXFLAGS} -fPIC"
fi
if [[ ${CATEGORY}/${PN} == dev-libs/nspr ]]; then
export CFLAGS="${CFLAGS/-fPIE -pie/}"
fi
Expand Down Expand Up @@ -907,6 +916,10 @@ if [[ ${CATEGORY}/${PN} == dev-libs/libsass ]]; then
# this builds without but breaks consumers
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
fi
if [[ ${CATEGORY}/${PN} == dev-util/lief ]]; then
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
export CXXFLAGS="${CXXFLAGS/-Werror=strict-aliasing/}"
fi
if [[ ${CATEGORY}/${PN} == media-sound/audacious ]]; then
export CXXFLAGS="${CXXFLAGS/-fPIE -pie/}"
fi
Expand Down
Loading