diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-07-25 21:43:11 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-07-25 21:43:11 +0000 |
commit | 7f11d466fb1966d1a23174a60c9d3825f8e002e5 (patch) | |
tree | 389546535c067b9464b842356c1c5c23ade6f9de | |
parent | 18fa8363e2dd66249614a1a74591e780b2019b76 (diff) | |
download | ports-7f11d466fb1966d1a23174a60c9d3825f8e002e5.tar.gz ports-7f11d466fb1966d1a23174a60c9d3825f8e002e5.zip |
Add manipulate_data, a set of tools to search data on a harddrive/partition/file,
extract the part you are interested in, and write it back after you modified it.
PR: ports/69555
Submitted by: bugghy <bugghy@phenix.rootshell.be>
Notes
Notes:
svn path=/head/; revision=114714
-rw-r--r-- | security/Makefile | 1 | ||||
-rw-r--r-- | security/manipulate_data/Makefile | 29 | ||||
-rw-r--r-- | security/manipulate_data/distinfo | 2 | ||||
-rw-r--r-- | security/manipulate_data/files/patch-read_data.c | 11 | ||||
-rw-r--r-- | security/manipulate_data/files/patch-write_data.c | 11 | ||||
-rw-r--r-- | security/manipulate_data/pkg-descr | 7 | ||||
-rw-r--r-- | security/manipulate_data/pkg-plist | 7 |
7 files changed, 68 insertions, 0 deletions
diff --git a/security/Makefile b/security/Makefile index 00d6b205bf01..ac35b56dcf19 100644 --- a/security/Makefile +++ b/security/Makefile @@ -182,6 +182,7 @@ SUBDIR += lxnb SUBDIR += mac-robber SUBDIR += makepasswd + SUBDIR += manipulate_data SUBDIR += mcrypt SUBDIR += md5crk SUBDIR += md5deep diff --git a/security/manipulate_data/Makefile b/security/manipulate_data/Makefile new file mode 100644 index 000000000000..52f4b5bb03d8 --- /dev/null +++ b/security/manipulate_data/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: manipulate_data +# Date created: 24 Jul 2004 +# Whom: bugghy <bugghy@SAFe-mail.net> +# +# $FreeBSD$ +# + +PORTNAME= manipulate_data +PORTVERSION= 1.3 +CATEGORIES= security +MASTER_SITES= http://packetstormsecurity.org/groups/thc/ + +MAINTAINER= bugghy@SAFe-mail.net +COMMENT= Search/extract/write raw data + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/read_data ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/write_data ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/search_data ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/replace_data ${PREFIX}/sbin + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/security/manipulate_data/distinfo b/security/manipulate_data/distinfo new file mode 100644 index 000000000000..97ff8bbb2a91 --- /dev/null +++ b/security/manipulate_data/distinfo @@ -0,0 +1,2 @@ +MD5 (manipulate_data-1.3.tar.gz) = 55dc5d38364a12f26e865ea2e5dadb26 +SIZE (manipulate_data-1.3.tar.gz) = 6593 diff --git a/security/manipulate_data/files/patch-read_data.c b/security/manipulate_data/files/patch-read_data.c new file mode 100644 index 000000000000..1e1984c62ead --- /dev/null +++ b/security/manipulate_data/files/patch-read_data.c @@ -0,0 +1,11 @@ +--- read_data.c.orig Wed Jul 7 17:00:30 2004 ++++ read_data.c Sun Jul 25 23:36:58 2004 +@@ -32,7 +32,7 @@ + if (sizeof(start) < 8) + start = atol(argv[2]); + else +- start = atoll(argv[2]); ++ start = strtoll(argv[2], (char **)NULL, 10); + bytes = atol(argv[3]); + + if ((bytes < 1) || (bytes > MAX_SIZE)) { diff --git a/security/manipulate_data/files/patch-write_data.c b/security/manipulate_data/files/patch-write_data.c new file mode 100644 index 000000000000..62d31d596477 --- /dev/null +++ b/security/manipulate_data/files/patch-write_data.c @@ -0,0 +1,11 @@ +--- write_data.c.orig Wed Jul 7 16:58:54 2004 ++++ write_data.c Sun Jul 25 23:37:48 2004 +@@ -49,7 +49,7 @@ + if (sizeof(start) < 8) + start = atol(c_ptr2); + else +- start = atoll(c_ptr2); ++ start = strtoll(c_ptr2, (char **)NULL, 10); + bytes = atol(c_ptr); + if (sizeof(start) < 8) + sprintf(tmpbuf, "%lu.%lu", (unsigned long) start, bytes); diff --git a/security/manipulate_data/pkg-descr b/security/manipulate_data/pkg-descr new file mode 100644 index 000000000000..aeb4a86b69be --- /dev/null +++ b/security/manipulate_data/pkg-descr @@ -0,0 +1,7 @@ +Search data on a harddisk/partition/file, extract the part you are interested +in, and write it back after you modified it. + +WWW: http://www.thc.org + +- bugghy +bugghy@SAFe-mail.net diff --git a/security/manipulate_data/pkg-plist b/security/manipulate_data/pkg-plist new file mode 100644 index 000000000000..320abdb149e1 --- /dev/null +++ b/security/manipulate_data/pkg-plist @@ -0,0 +1,7 @@ +sbin/read_data +sbin/replace_data +sbin/search_data +sbin/write_data +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%% |