aboutsummaryrefslogtreecommitdiff
path: root/security/manipulate_data
diff options
context:
space:
mode:
Diffstat (limited to 'security/manipulate_data')
-rw-r--r--security/manipulate_data/Makefile29
-rw-r--r--security/manipulate_data/distinfo2
-rw-r--r--security/manipulate_data/files/patch-read_data.c11
-rw-r--r--security/manipulate_data/files/patch-write_data.c11
-rw-r--r--security/manipulate_data/pkg-descr7
-rw-r--r--security/manipulate_data/pkg-plist7
6 files changed, 67 insertions, 0 deletions
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%%