aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2022-04-23 15:46:04 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2022-04-23 15:46:04 +0000
commit89d5c3e7c19ceee11f7f1b9db62b45c28e888dba (patch)
treee3a8321c953b7a7c4f990af76cf71f1bb3df5d5b
parent7f27c7e0fb14e8f02ac6e40e13a2c1224a3fd7a6 (diff)
downloadports-89d5c3e7c19ceee11f7f1b9db62b45c28e888dba.tar.gz
ports-89d5c3e7c19ceee11f7f1b9db62b45c28e888dba.zip
security/py-ropgadget: Add new port
Search gadgets in binaries to facilitate ROP exploitation for several file formats and architectures. WWW: https://pypi.org/project/ropgadget/
-rw-r--r--security/Makefile1
-rw-r--r--security/py-ropgadget/Makefile20
-rw-r--r--security/py-ropgadget/distinfo3
-rw-r--r--security/py-ropgadget/pkg-descr4
4 files changed, 28 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile
index ed6afc8a0ba8..69dfccbfa250 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -959,6 +959,7 @@
SUBDIR += py-pywinrm
SUBDIR += py-requests-credssp
SUBDIR += py-requests-kerberos
+ SUBDIR += py-ropgadget
SUBDIR += py-ropper
SUBDIR += py-rsa
SUBDIR += py-safe
diff --git a/security/py-ropgadget/Makefile b/security/py-ropgadget/Makefile
new file mode 100644
index 000000000000..321420d76f0b
--- /dev/null
+++ b/security/py-ropgadget/Makefile
@@ -0,0 +1,20 @@
+# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
+
+PORTNAME= ropgadget
+PORTVERSION= 6.7
+CATEGORIES= security python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= ROPGadget-${PORTVERSION}
+
+MAINTAINER= ehaupt@FreeBSD.org
+COMMENT= Tool to search gadgets to facilitate ROP exploitation
+
+LICENSE= BSD3CLAUSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}capstone>=4.0.1:devel/py-capstone@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist distutils
+
+.include <bsd.port.mk>
diff --git a/security/py-ropgadget/distinfo b/security/py-ropgadget/distinfo
new file mode 100644
index 000000000000..89191282e641
--- /dev/null
+++ b/security/py-ropgadget/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1649841568
+SHA256 (ROPGadget-6.7.tar.gz) = a048f2e51c397b902e4586997bd4fe62af97984e207567cb63e67d86e8e09c8e
+SIZE (ROPGadget-6.7.tar.gz) = 23175
diff --git a/security/py-ropgadget/pkg-descr b/security/py-ropgadget/pkg-descr
new file mode 100644
index 000000000000..7864f39cf704
--- /dev/null
+++ b/security/py-ropgadget/pkg-descr
@@ -0,0 +1,4 @@
+Search gadgets in binaries to facilitate ROP exploitation for several
+file formats and architectures
+
+WWW: https://pypi.org/project/ropgadget/