Index: security/Makefile =================================================================== --- security/Makefile +++ security/Makefile @@ -965,6 +965,7 @@ SUBDIR += py-rekall_lib SUBDIR += py-requests-credssp SUBDIR += py-requests-kerberos + SUBDIR += py-ropper SUBDIR += py-rsa SUBDIR += py-safe SUBDIR += py-scp Index: security/py-ropper/Makefile =================================================================== --- /dev/null +++ security/py-ropper/Makefile @@ -0,0 +1,24 @@ +# $FreeBSD$ + +PORTNAME= ropper +DISTVERSION= 1.13.3 +CATEGORIES= security python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Find gadgets to build rop chains for different architectures + +LICENSE= BSD3CLAUSE +# LICENSE_FILE is not distributed with the Python package. + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}capstone>=4.0.1:devel/py-capstone@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}filebytes>=0.10.0:devel/py-filebytes@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}keystone-engine>=0.9.1.3:devel/py-keystone-engine@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include Index: security/py-ropper/distinfo =================================================================== --- /dev/null +++ security/py-ropper/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1582056034 +SHA256 (ropper-1.13.3.tar.gz) = dfc87477c0f53d3d2836a384c106373d761cc435eafc477f299523e5404dda43 +SIZE (ropper-1.13.3.tar.gz) = 68927 Index: security/py-ropper/pkg-descr =================================================================== --- /dev/null +++ security/py-ropper/pkg-descr @@ -0,0 +1,22 @@ +You can use ropper to look at information about files in different +file formats and you can find ROP and JOP gadgets to build chains for +different architectures. Ropper supports ELF, MachO and the PE file +format. Other files can be opened in RAW format. The following +architectures are supported: + +- x86 / x86_64 +- Mips / Mips64 +- ARM (also Thumb Mode)/ ARM64 +- PowerPC / PowerPC64 + +Ropper is inspired by ROPgadget, but should be more than a gadgets +finder. So it is possible to show information about a binary like +header, segments, sections etc. Furthermore it is possible to edit the +binaries and edit the header fields, but currently this is not fully +implemented and in a experimental state. For disassembly ropper uses +the awesome Capstone Framework. + +Now you can generate rop chain automatically (auto-roper) for execve +and mprotect syscall. + +WWW: https://scoding.de/ropper/