summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2010-09-15 01:49:58 +0000
committerMichael Weber <xmw@gentoo.org>2010-09-15 01:49:58 +0000
commit9b36913f2cd458bce26aa8f70388a5272c1f7ff9 (patch)
tree3e82e3cf793940c94d49930e0e6d307d3fde656a /net-analyzer/thc-ipv6/files
parentVersion bump for stable channel release. Provide a target for stabilization (... (diff)
downloadgentoo-2-9b36913f2cd458bce26aa8f70388a5272c1f7ff9.tar.gz
gentoo-2-9b36913f2cd458bce26aa8f70388a5272c1f7ff9.tar.bz2
gentoo-2-9b36913f2cd458bce26aa8f70388a5272c1f7ff9.zip
Initial import
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/thc-ipv6/files')
-rw-r--r--net-analyzer/thc-ipv6/files/thc-ipv6-1.2-Makefile25
-rw-r--r--net-analyzer/thc-ipv6/files/thc-ipv6-1.2-header.patch21
2 files changed, 46 insertions, 0 deletions
diff --git a/net-analyzer/thc-ipv6/files/thc-ipv6-1.2-Makefile b/net-analyzer/thc-ipv6/files/thc-ipv6-1.2-Makefile
new file mode 100644
index 000000000000..ce177a8061e4
--- /dev/null
+++ b/net-analyzer/thc-ipv6/files/thc-ipv6-1.2-Makefile
@@ -0,0 +1,25 @@
+CC=gcc
+#CFLAGS?=-Wall -ggdb
+CFLAGS?=-O2
+LDFLAGS+=-lpcap -lssl -lcrypto -lpthread
+PROGRAMS=parasite6 dos-new-ip6 detect-new-ip6 fake_router6 fake_advertise6 fake_mld6 fake_mipv6 redir6 smurf6 alive6 toobig6 rsmurf6 implementation6 implementation6d sendpees6 fuzz_ip6 flood_router6 flood_advertise6 trace6 dnsdict6 recon6
+LIBS=thc-ipv6-lib.o
+
+PREFIX = /usr/local
+MANPREFIX = ${PREFIX}/share/man
+
+all: $(LIBS) $(PROGRAMS)
+
+%: %.c $(LIBS)
+ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
+
+install: all
+ install -m0755 -d ${DESTDIR}${PREFIX}/bin
+ install -m0755 $(PROGRAMS) ${DESTDIR}${PREFIX}/bin
+ install -m0755 -d ${DESTDIR}${MANPREFIX}/man8
+ install -m0644 -D thc-ipv6.8 ${DESTDIR}${MANPREFIX}/man8
+
+clean:
+ rm -f $(PROGRAMS) $(LIBS) core DEADJOE *~
+
+.PHONY: all install clean
diff --git a/net-analyzer/thc-ipv6/files/thc-ipv6-1.2-header.patch b/net-analyzer/thc-ipv6/files/thc-ipv6-1.2-header.patch
new file mode 100644
index 000000000000..e5d9a2faac91
--- /dev/null
+++ b/net-analyzer/thc-ipv6/files/thc-ipv6-1.2-header.patch
@@ -0,0 +1,21 @@
+--- thc-ipv6.h 2010-06-24 13:44:48.000000000 +0200
++++ thc-ipv6.h 2010-09-15 03:33:04.366387803 +0200
+@@ -284,6 +284,7 @@
+
+ extern thc_key_t *thc_generate_key(int key_len);
+ extern thc_cga_hdr *thc_generate_cga(unsigned char *prefix, thc_key_t *key, unsigned char **cga);
++int thc_add_send(unsigned char *pkt, int *pkt_len, int type, int code, unsigned int flags, unsigned char *data, int data_len, thc_cga_hdr *cga_hdr, thc_key_t *key, unsigned char *tag, int checksum);
+
+ #endif
+
+--- thc-ipv6-lib.c 2010-06-24 13:44:48.000000000 +0200
++++ thc-ipv6-lib.c 2010-09-15 03:35:35.064387802 +0200
+@@ -41,6 +41,8 @@
+ /* libssl */
+ #include <openssl/evp.h>
+ #include <openssl/sha.h>
++#include <openssl/rsa.h>
++#include <openssl/x509.h>
+
+
+