From 4b0e9277566b01c6f18885a65a7dc0f3dc9beb96 Mon Sep 17 00:00:00 2001 From: blshkv Date: Sat, 25 Feb 2017 10:43:34 +0800 Subject: [PATCH] the-backdoor-factory: 3.4.2 bump --- app-exploits/the-backdoor-factory/Manifest | 1 + .../the-backdoor-factory-3.4.2.ebuild | 51 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 app-exploits/the-backdoor-factory/the-backdoor-factory-3.4.2.ebuild diff --git a/app-exploits/the-backdoor-factory/Manifest b/app-exploits/the-backdoor-factory/Manifest index b460bad8e..8db29c50f 100644 --- a/app-exploits/the-backdoor-factory/Manifest +++ b/app-exploits/the-backdoor-factory/Manifest @@ -1 +1,2 @@ DIST the-backdoor-factory-3.4.1.tar.gz 449857 SHA256 69da2f040586e637e7ed67aa7d4e5aabb799f467462f5299563bcbe7123fe21e SHA512 6e58a55089906daab4b1168652ac442a0ef6425c6e57967c97892bb5ed132b076238897df3868f8a3e4595b593562fc7ad235212d4af98afdc25cf5763305fc0 WHIRLPOOL 3e170f04fc33ae225e9fa7cdbb43696cce4f147e1afaf760a78e4dd2140ae199fa067dcff7958ef9c54a73b7d01a65616e1eab3fbf6987ac094a58a08835fa72 +DIST the-backdoor-factory-3.4.2.tar.gz 449954 SHA256 a504caa025b7a374283db321a5cb98e5311cf2922af9ca62701d00b28651a295 SHA512 7ef4ddb0de671f4ef60b6c787ed2d22e901bad96fd738b232dcbe6df58c17baee60178027ec098d1e8f92a7ecb9cfe3ce2948b4a6b054106880204eddb0deda4 WHIRLPOOL 273929540589f2873587b78380c9be66758e49e80923c92f5acc12d55da0e75235881889cb45d97c241cb1f4c48fbbffc28f197e1a5a6845da52dabf9a493d7c diff --git a/app-exploits/the-backdoor-factory/the-backdoor-factory-3.4.2.ebuild b/app-exploits/the-backdoor-factory/the-backdoor-factory-3.4.2.ebuild new file mode 100644 index 000000000..6c2fe4c79 --- /dev/null +++ b/app-exploits/the-backdoor-factory/the-backdoor-factory-3.4.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils python-single-r1 + +DESCRIPTION="BDF allows to patch executable binaries with user desired shellcode" +HOMEPAGE="https://github.com/secretsquirrel/the-backdoor-factory" +SRC_URI="https://github.com/secretsquirrel/the-backdoor-factory/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-4" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND} + >=dev-python/capstone-python-3.0 + app-exploits/osslsigncode + dev-python/pefile" + +src_prepare(){ + epatch "${FILESDIR}"/pebin.patch + rm -r osslsigncode + rm {update.sh,install.sh} + cp "${FILESDIR}"/certs/* ./certs/ + eapply_user +} + +src_compile() { + cd ./aPLib/example/ + gcc -c -I../lib/elf -m32 -Wall -O2 -s -o appack.o appack.c -v + gcc -m32 -Wall -O2 -s -o appack appack.o ../lib/elf/aplib.a -v + cd ../.. +} + +src_install() { + insinto /usr/share/${PN} + doins -r "${S}"/* + + dobin ./aPLib/example/appack + + python_fix_shebang "${ED}"/usr/share/${PN} + + fperms +x /usr/share/${PN}/backdoor.py + dosym /usr/share/${PN}/backdoor.py /usr/bin/${PN} +}