diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2017-12-05 19:12:08 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2017-12-05 19:12:08 +0000 |
commit | d07941f6035a81d286a875f2cfc1c4483d1a4d99 (patch) | |
tree | d75068fd777ba94c3ed0e5c3c1dbc399ecbe11db /security/libhijack | |
parent | 90c21f10680fa60d0ecb06d66c9ffb5b423adeaa (diff) | |
download | freebsd-ports-d07941f6035a81d286a875f2cfc1c4483d1a4d99.zip |
New port: security/libhijack: Runtime process infection made easy
PR: 221322
Submitted by: Shawn Webb <shawn.webb@hardenedbsd.org>
Approved by: tcberner (mentor)
Differential Revision: https://reviews.freebsd.org/D13256
Diffstat (limited to 'security/libhijack')
-rw-r--r-- | security/libhijack/Makefile | 31 | ||||
-rw-r--r-- | security/libhijack/distinfo | 3 | ||||
-rw-r--r-- | security/libhijack/pkg-descr | 6 |
3 files changed, 40 insertions, 0 deletions
diff --git a/security/libhijack/Makefile b/security/libhijack/Makefile new file mode 100644 index 000000000000..ff5cda48bbea --- /dev/null +++ b/security/libhijack/Makefile @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= libhijack +DISTVERSIONPREFIX= v +DISTVERSION= 0.8.0-1 +DISTVERSIONSUFFIX= -g50804aa +CATEGORIES= security + +MAINTAINER= shawn.webb@hardenedbsd.org +COMMENT= Runtime process infection made easy + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +ONLY_FOR_ARCHS= aarch64 amd64 + +USE_GITHUB= yes +GH_ACCOUNT= SoldierX +USE_LDCONFIG= yes + +PLIST_FILES= include/hijack.h \ + lib/libhijack.so \ + lib/libhijack.so.1 \ + sbin/hijack + +do-install: # the original install fails: https://github.com/SoldierX/libhijack/issues/6 + ${INSTALL_DATA} ${WRKSRC}/include/hijack.h ${STAGEDIR}${PREFIX}/include + ${INSTALL_LIB} ${WRKSRC}/libhijack/obj/libhijack.so* ${STAGEDIR}${PREFIX}/lib + ${INSTALL_PROGRAM} ${WRKSRC}/hijack/obj/hijack ${STAGEDIR}${PREFIX}/sbin + +.include <bsd.port.mk> diff --git a/security/libhijack/distinfo b/security/libhijack/distinfo new file mode 100644 index 000000000000..9141fd778850 --- /dev/null +++ b/security/libhijack/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1511722136 +SHA256 (SoldierX-libhijack-v0.8.0-1-g50804aa_GH0.tar.gz) = ec5ca09c1cad69d846c7fc6b12c04f184aeecd69acf636511ec89a4db231368e +SIZE (SoldierX-libhijack-v0.8.0-1-g50804aa_GH0.tar.gz) = 21060 diff --git a/security/libhijack/pkg-descr b/security/libhijack/pkg-descr new file mode 100644 index 000000000000..cad8be522105 --- /dev/null +++ b/security/libhijack/pkg-descr @@ -0,0 +1,6 @@ +Libhijack is a tool that enables easy injection of arbitrary code during +runtime. Injection is done into newly-created anonymous memory mappings, +providing stealth. An API is provided for hooking the PLT/GOT, hence the +"hijack" part of libhijack. + +WWW: https://github.com/SoldierX/libhijack |