summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/ROPgadget/Manifest1
-rw-r--r--dev-util/ROPgadget/ROPgadget-6.6.ebuild36
-rw-r--r--dev-util/ROPgadget/ROPgadget-9999.ebuild36
-rw-r--r--dev-util/ROPgadget/metadata.xml20
4 files changed, 93 insertions, 0 deletions
diff --git a/dev-util/ROPgadget/Manifest b/dev-util/ROPgadget/Manifest
new file mode 100644
index 000000000000..487b7c0a673c
--- /dev/null
+++ b/dev-util/ROPgadget/Manifest
@@ -0,0 +1 @@
+DIST ROPgadget-6.6.tar.gz 9349424 BLAKE2B b1f1e5fbc76329f64122e65161ab188e9f7260c4e43d5e92e0e43cd4ebbf27ae281c32bd49790a363ff1d10360a1cda1846310054c249ab40279063a735654e6 SHA512 bf636a264975c95676e5bb6223d0cf04885699eeaf691c6c93a1ac8c1bc44f95323207660a57a58f44163f8c07156567daa73755b35a13cff5d27aee01ec4fb6
diff --git a/dev-util/ROPgadget/ROPgadget-6.6.ebuild b/dev-util/ROPgadget/ROPgadget-6.6.ebuild
new file mode 100644
index 000000000000..85eefb604e74
--- /dev/null
+++ b/dev-util/ROPgadget/ROPgadget-6.6.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1
+
+DESCRIPTION="Search for gadgets in binaries to facilitate your ROP exploitation"
+HOMEPAGE="http://shell-storm.org/project/ROPgadget/"
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/JonathanSalwan/ROPgadget"
+else
+ SRC_URI="https://github.com/JonathanSalwan/ROPgadget/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-libs/capstone[python,${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}"/ROPgadget-${PV}
+
+src_test() {
+ pushd test-suite-binaries || die
+ ./test.sh || die
+ popd || die
+}
diff --git a/dev-util/ROPgadget/ROPgadget-9999.ebuild b/dev-util/ROPgadget/ROPgadget-9999.ebuild
new file mode 100644
index 000000000000..85eefb604e74
--- /dev/null
+++ b/dev-util/ROPgadget/ROPgadget-9999.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_REQ_USE="sqlite"
+
+inherit distutils-r1
+
+DESCRIPTION="Search for gadgets in binaries to facilitate your ROP exploitation"
+HOMEPAGE="http://shell-storm.org/project/ROPgadget/"
+
+if [[ ${PV} == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/JonathanSalwan/ROPgadget"
+else
+ SRC_URI="https://github.com/JonathanSalwan/ROPgadget/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ dev-libs/capstone[python,${PYTHON_USEDEP}]
+"
+
+S="${WORKDIR}"/ROPgadget-${PV}
+
+src_test() {
+ pushd test-suite-binaries || die
+ ./test.sh || die
+ popd || die
+}
diff --git a/dev-util/ROPgadget/metadata.xml b/dev-util/ROPgadget/metadata.xml
new file mode 100644
index 000000000000..29280c8d8dbc
--- /dev/null
+++ b/dev-util/ROPgadget/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>mario.haustein@hrz.tu-chemnitz.de</email>
+ <name>Mario Haustein</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>sam@gentoo.org</email>
+ <name>Sam James</name>
+ </maintainer>
+ <longdescription>
+ This tool lets you search your gadgets on your binaries to facilitate
+ your ROP exploitation. ROPgadget supports ELF, PE and Mach-O format on
+ x86, x64, ARM, ARM64, PowerPC, SPARC and MIPS architectures.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">JonathanSalwan/ROPgadget</remote-id>
+ </upstream>
+</pkgmetadata>