update to nemesis 1.2 and change of maintainership
This commit is contained in:
parent
f770298716
commit
c66756107c
@ -1,6 +1,6 @@
|
||||
# $OpenBSD: Makefile,v 1.7 2000/10/23 16:08:12 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.8 2001/01/06 12:09:06 obecian Exp $
|
||||
|
||||
DISTNAME= nemesis-1.1
|
||||
DISTNAME= nemesis-1.2
|
||||
CATEGORIES= net security
|
||||
NEED_VERSION= 1.320
|
||||
MASTER_SITES= http://www.packetninja.net/nemesis/ \
|
||||
@ -10,7 +10,7 @@ HOMEPAGE= http://www.packetninja.net/nemesis/
|
||||
|
||||
BUILD_DEPENDS= ${PREFIX}/lib/libnet.a::net/libnet
|
||||
|
||||
MAINTAINER= Kyle Hargraves <halogen@nol.net>
|
||||
MAINTAINER= Mark Grimes <obecian@openbsd.org>
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
@ -19,6 +19,4 @@ PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
CONFIGURE_STYLE= gnu
|
||||
|
||||
WRKDIST= ${WRKDIR}/nemesis
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (nemesis-1.1.tar.gz) = 5c777f73900663f17df8da296aefc4c5
|
||||
RMD160 (nemesis-1.1.tar.gz) = 4c1d73c21ef2587fbe2d66696e553ec8909e2eed
|
||||
SHA1 (nemesis-1.1.tar.gz) = 2adb1adbed543d85bcf45bbc3fec67c57bcf11e7
|
||||
MD5 (nemesis-1.2.tar.gz) = 2cbea648d14be173cb64f9375c70425a
|
||||
RMD160 (nemesis-1.2.tar.gz) = fd52b2a71fcaefb53fb8636e0a3a2e9cf7e918c0
|
||||
SHA1 (nemesis-1.2.tar.gz) = 7caecd151ad580ca35444052926698f02145bec8
|
||||
|
@ -1,59 +0,0 @@
|
||||
--- Makefile.in.orig Sat Jun 24 20:36:35 2000
|
||||
+++ Makefile.in Sat Jun 24 20:39:37 2000
|
||||
@@ -15,6 +15,8 @@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
|
||||
+DESTDIR =
|
||||
+
|
||||
DEFINES += #-D__DEBUG
|
||||
|
||||
ARP_TARGET = nemesis-arp
|
||||
@@ -35,7 +37,7 @@
|
||||
TCP_MAN = nemesis-tcp.1
|
||||
UDP_MAN = nemesis-udp.1
|
||||
|
||||
-INSTALL = ./install-sh
|
||||
+INSTALL = @INSTALL@
|
||||
|
||||
# Compiler
|
||||
#
|
||||
@@ -87,22 +89,22 @@
|
||||
strip $(UDP_TARGET)
|
||||
|
||||
install: nemesis strip
|
||||
- $(INSTALL) -c -m 0755 $(ARP_TARGET) $(prefix)/sbin
|
||||
- $(INSTALL) -c -m 0755 $(DNS_TARGET) $(prefix)/sbin
|
||||
- $(INSTALL) -c -m 0755 $(ICMP_TARGET) $(prefix)/sbin
|
||||
- $(INSTALL) -c -m 0755 $(IGMP_TARGET) $(prefix)/sbin
|
||||
- $(INSTALL) -c -m 0755 $(OSPF_TARGET) $(prefix)/sbin
|
||||
- $(INSTALL) -c -m 0755 $(RIP_TARGET) $(prefix)/sbin
|
||||
- $(INSTALL) -c -m 0755 $(TCP_TARGET) $(prefix)/sbin
|
||||
- $(INSTALL) -c -m 0755 $(UDP_TARGET) $(prefix)/sbin
|
||||
- $(INSTALL) -c -m 0644 $(ARP_MAN) $(prefix)/man/man1
|
||||
- $(INSTALL) -c -m 0644 $(DNS_MAN) $(prefix)/man/man1
|
||||
- $(INSTALL) -c -m 0644 $(ICMP_MAN) $(prefix)/man/man1
|
||||
- $(INSTALL) -c -m 0644 $(IGMP_MAN) $(prefix)/man/man1
|
||||
- $(INSTALL) -c -m 0644 $(OSPF_MAN) $(prefix)/man/man1
|
||||
- $(INSTALL) -c -m 0644 $(RIP_MAN) $(prefix)/man/man1
|
||||
- $(INSTALL) -c -m 0644 $(TCP_MAN) $(prefix)/man/man1
|
||||
- $(INSTALL) -c -m 0644 $(UDP_MAN) $(prefix)/man/man1
|
||||
+ $(INSTALL) -m 0755 $(ARP_TARGET) $(DESTDIR)$(prefix)/sbin
|
||||
+ $(INSTALL) -m 0755 $(DNS_TARGET) $(DESTDIR)$(prefix)/sbin
|
||||
+ $(INSTALL) -m 0755 $(ICMP_TARGET) $(DESTDIR)$(prefix)/sbin
|
||||
+ $(INSTALL) -m 0755 $(IGMP_TARGET) $(DESTDIR)$(prefix)/sbin
|
||||
+ $(INSTALL) -m 0755 $(OSPF_TARGET) $(DESTDIR)$(prefix)/sbin
|
||||
+ $(INSTALL) -m 0755 $(RIP_TARGET) $(DESTDIR)$(prefix)/sbin
|
||||
+ $(INSTALL) -m 0755 $(TCP_TARGET) $(DESTDIR)$(prefix)/sbin
|
||||
+ $(INSTALL) -m 0755 $(UDP_TARGET) $(DESTDIR)$(prefix)/sbin
|
||||
+ $(INSTALL) -m 0644 $(ARP_MAN) $(DESTDIR)$(prefix)/man/man1
|
||||
+ $(INSTALL) -m 0644 $(DNS_MAN) $(DESTDIR)$(prefix)/man/man1
|
||||
+ $(INSTALL) -m 0644 $(ICMP_MAN) $(DESTDIR)$(prefix)/man/man1
|
||||
+ $(INSTALL) -m 0644 $(IGMP_MAN) $(DESTDIR)$(prefix)/man/man1
|
||||
+ $(INSTALL) -m 0644 $(OSPF_MAN) $(DESTDIR)$(prefix)/man/man1
|
||||
+ $(INSTALL) -m 0644 $(RIP_MAN) $(DESTDIR)$(prefix)/man/man1
|
||||
+ $(INSTALL) -m 0644 $(TCP_MAN) $(DESTDIR)$(prefix)/man/man1
|
||||
+ $(INSTALL) -m 0644 $(UDP_MAN) $(DESTDIR)$(prefix)/man/man1
|
||||
|
||||
clean:
|
||||
rm -f core *.core *.o $(ARP_TARGET) $(DNS_TARGET) \
|
@ -1,267 +0,0 @@
|
||||
--- nemesis-proto_icmp.c.orig Mon Oct 9 18:28:38 2000
|
||||
+++ nemesis-proto_icmp.c Mon Oct 9 18:29:34 2000
|
||||
@@ -70,7 +70,7 @@ buildicmp()
|
||||
0, /* IP payload size */
|
||||
pkt + LIBNET_ETH_H); /* packet header memory */
|
||||
|
||||
- if (type == ICMP_ECHOREPLY) /* type = 0 */
|
||||
+ if (type == ICMP_ECHOREPLY) { /* type = 0 */
|
||||
libnet_build_icmp_echo(type, /* ICMP type */
|
||||
0, /* ICMP code */
|
||||
id, /* ICMP id */
|
||||
@@ -78,8 +78,11 @@ buildicmp()
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
pkt + LIBNET_ETH_H + LIBNET_IP_H); /* packet memory header */
|
||||
-
|
||||
- if (type == ICMP_UNREACH) /* type = 3 */
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_IP, LIBNET_IP_H);
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_ICMP,
|
||||
+ LIBNET_ICMP_ECHO_H + payload_s);
|
||||
+ }
|
||||
+ if (type == ICMP_UNREACH) { /* type = 3 */
|
||||
libnet_build_icmp_unreach(type, /* ICMP type */
|
||||
code, /* ICMP code */
|
||||
0, /* ICMP original length */
|
||||
@@ -93,8 +96,12 @@ buildicmp()
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
pkt + LIBNET_ETH_H + LIBNET_IP_H); /* packet memory header */
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_IP, LIBNET_IP_H);
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_ICMP,
|
||||
+ LIBNET_ICMP_UNREACH_H + payload_s);
|
||||
+ }
|
||||
|
||||
- if (type == ICMP_REDIRECT) /* type = 5 */
|
||||
+ if (type == ICMP_REDIRECT) { /* type = 5 */
|
||||
libnet_build_icmp_redirect(type, /* ICMP type */
|
||||
code, /* ICMP code */
|
||||
gwy, /* preferred gateway */
|
||||
@@ -109,8 +116,11 @@ buildicmp()
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
pkt + LIBNET_ETH_H + LIBNET_IP_H); /* packet header memory */
|
||||
-
|
||||
- if (type == ICMP_ECHO) /* type = 8 */
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_IP, LIBNET_IP_H);
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_ICMP,
|
||||
+ LIBNET_ICMP_REDIRECT_H + payload_s);
|
||||
+ }
|
||||
+ if (type == ICMP_ECHO) { /* type = 8 */
|
||||
libnet_build_icmp_echo(type, /* ICMP type */
|
||||
0, /* ICMP code */
|
||||
id, /* ICMP id */
|
||||
@@ -118,7 +128,11 @@ buildicmp()
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
pkt + LIBNET_ETH_H + LIBNET_IP_H); /* packet header memory */
|
||||
- if (type == ICMP_TIMXCEED) /* type = 11 */
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_IP, LIBNET_IP_H);
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_ICMP,
|
||||
+ LIBNET_ICMP_ECHO_H + payload_s);
|
||||
+ }
|
||||
+ if (type == ICMP_TIMXCEED) { /* type = 11 */
|
||||
libnet_build_icmp_timeexceed(type, /* ICMP type */
|
||||
code, /* ICMP code */
|
||||
0, /* ICMP orig length */
|
||||
@@ -132,7 +146,11 @@ buildicmp()
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
pkt + LIBNET_ETH_H + LIBNET_IP_H); /* packet header memory */
|
||||
- if (type == ICMP_TSTAMP) /* type = 13 */
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_IP, LIBNET_IP_H);
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_ICMP,
|
||||
+ LIBNET_ICMP_TIMXCEED_H + payload_s);
|
||||
+ }
|
||||
+ if (type == ICMP_TSTAMP) { /* type = 13 */
|
||||
libnet_build_icmp_timestamp(type, /* ICMP type */
|
||||
0, /* ICMP code */
|
||||
id, /* ICMP id */
|
||||
@@ -143,8 +161,11 @@ buildicmp()
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
pkt + LIBNET_ETH_H + LIBNET_IP_H); /* packet header memory */
|
||||
-
|
||||
- if (type == ICMP_TSTAMPREPLY) /* type = 14 */
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_IP, LIBNET_IP_H);
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_ICMP,
|
||||
+ LIBNET_ICMP_TS_H + payload_s);
|
||||
+ }
|
||||
+ if (type == ICMP_TSTAMPREPLY) { /* type = 14 */
|
||||
libnet_build_icmp_timestamp(type, /* ICMP type */
|
||||
0, /* ICMP code */
|
||||
id, /* ICMP id */
|
||||
@@ -155,7 +176,11 @@ buildicmp()
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
pkt + LIBNET_ETH_H + LIBNET_IP_H); /* packet header memory */
|
||||
- if (type == ICMP_MASKREQ) /* type = 17 */
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_IP, LIBNET_IP_H);
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_ICMP,
|
||||
+ LIBNET_ICMP_TS_H + payload_s);
|
||||
+ }
|
||||
+ if (type == ICMP_MASKREQ) { /* type = 17 */
|
||||
libnet_build_icmp_mask(type, /* ICMP type */
|
||||
0, /* ICMP code */
|
||||
id, /* ICMP id */
|
||||
@@ -164,7 +189,11 @@ buildicmp()
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
pkt + LIBNET_ETH_H + LIBNET_IP_H); /* packet header memory */
|
||||
- if (type == ICMP_MASKREPLY) /* type = 18 */
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_IP, LIBNET_IP_H);
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_ICMP,
|
||||
+ LIBNET_ICMP_MASK_H + payload_s);
|
||||
+ }
|
||||
+ if (type == ICMP_MASKREPLY) { /* type = 18 */
|
||||
libnet_build_icmp_mask(type, /* ICMP type */
|
||||
0, /* ICMP code */
|
||||
id, /* ICMP id */
|
||||
@@ -173,10 +202,10 @@ buildicmp()
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
pkt + LIBNET_ETH_H + LIBNET_IP_H); /* packet header memory */
|
||||
-
|
||||
- libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_IP, LIBNET_IP_H);
|
||||
- libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_ICMP, ICMP_S +
|
||||
- payload_s);
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_IP, LIBNET_IP_H);
|
||||
+ libnet_do_checksum(pkt + LIBNET_ETH_H, IPPROTO_ICMP,
|
||||
+ LIBNET_ICMP_MASK_H + payload_s);
|
||||
+ }
|
||||
memcpy(ipopt.ipopt_list, options, option_s);
|
||||
*(ipopt.ipopt_list) = IPOPT_SECURITY;
|
||||
*(ipopt.ipopt_list + 1) = 1;
|
||||
@@ -211,16 +240,17 @@ buildicmp()
|
||||
0, /* IP payload size */
|
||||
pkt); /* packet header memory */
|
||||
|
||||
- if (type == ICMP_ECHOREPLY) /* type = 0 */
|
||||
+ if (type == ICMP_ECHOREPLY) { /* type = 0 */
|
||||
libnet_build_icmp_echo(type, /* ICMP type */
|
||||
0, /* ICMP code */
|
||||
id, /* ICMP id */
|
||||
seq, /* sequence number */
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
- pkt + IP_H); /* packet memory header */
|
||||
-
|
||||
- if (type == ICMP_UNREACH) /* type = 3 */
|
||||
+ pkt + LIBNET_IP_H); /* packet memory header */
|
||||
+ libnet_do_checksum(pkt, IPPROTO_ICMP, LIBNET_ICMP_ECHO_H + payload_s);
|
||||
+ }
|
||||
+ if (type == ICMP_UNREACH) { /* type = 3 */
|
||||
libnet_build_icmp_unreach(type, /* ICMP type */
|
||||
code, /* ICMP code */
|
||||
0, /* ICMP original length */
|
||||
@@ -233,9 +263,10 @@ buildicmp()
|
||||
source, /* source address */
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
- pkt + IP_H); /* packet memory header */
|
||||
-
|
||||
- if (type == ICMP_REDIRECT) /* type = 5 */
|
||||
+ pkt + LIBNET_IP_H); /* packet memory header */
|
||||
+ libnet_do_checksum(pkt, IPPROTO_ICMP, LIBNET_ICMP_UNREACH_H + payload_s);
|
||||
+ }
|
||||
+ if (type == ICMP_REDIRECT) { /* type = 5 */
|
||||
libnet_build_icmp_redirect(type, /* ICMP type */
|
||||
code, /* ICMP code */
|
||||
gwy, /* preferred gateway */
|
||||
@@ -249,18 +280,21 @@ buildicmp()
|
||||
source, /* source address */
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
- pkt + IP_H); /* packet header memory */
|
||||
-
|
||||
- if (type == ICMP_ECHO) /* type = 8 */
|
||||
+ pkt + LIBNET_IP_H); /* packet header memory */
|
||||
+ libnet_do_checksum(pkt, IPPROTO_ICMP, LIBNET_ICMP_REDIRECT_H + payload_s);
|
||||
+ }
|
||||
+ if (type == ICMP_ECHO) { /* type = 8 */
|
||||
libnet_build_icmp_echo(type, /* ICMP type */
|
||||
0, /* ICMP code */
|
||||
id, /* ICMP id */
|
||||
seq, /* sequence number */
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
- pkt + IP_H); /* packet header memory */
|
||||
+ pkt + LIBNET_IP_H); /* packet header memory */
|
||||
+ libnet_do_checksum(pkt, IPPROTO_ICMP, LIBNET_ICMP_ECHO_H + payload_s);
|
||||
|
||||
- if (type == ICMP_TIMXCEED) /* type = 11 */
|
||||
+ }
|
||||
+ if (type == ICMP_TIMXCEED) { /* type = 11 */
|
||||
libnet_build_icmp_timeexceed(type, /* ICMP type */
|
||||
code, /* ICMP code */
|
||||
0, /* ICMP orig length */
|
||||
@@ -273,9 +307,10 @@ buildicmp()
|
||||
source, /* source address */
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
- pkt + IP_H); /* packet header memory */
|
||||
-
|
||||
- if (type == ICMP_TSTAMP) /* type = 13 */
|
||||
+ pkt + LIBNET_IP_H); /* packet header memory */
|
||||
+ libnet_do_checksum(pkt, IPPROTO_ICMP, LIBNET_ICMP_TIMXCEED_H + payload_s);
|
||||
+ }
|
||||
+ if (type == ICMP_TSTAMP) { /* type = 13 */
|
||||
libnet_build_icmp_timestamp(type, /* ICMP type */
|
||||
0, /* ICMP code */
|
||||
id, /* ICMP id */
|
||||
@@ -285,9 +320,10 @@ buildicmp()
|
||||
0, /* transmit timestamp */
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
- pkt + IP_H); /* packet header memory */
|
||||
-
|
||||
- if (type == ICMP_TSTAMPREPLY) /* type = 14 */
|
||||
+ pkt + LIBNET_IP_H); /* packet header memory */
|
||||
+ libnet_do_checksum(pkt, IPPROTO_ICMP, LIBNET_ICMP_TS_H + payload_s);
|
||||
+ }
|
||||
+ if (type == ICMP_TSTAMPREPLY) { /* type = 14 */
|
||||
libnet_build_icmp_timestamp(type, /* ICMP type */
|
||||
0, /* ICMP code */
|
||||
id, /* ICMP id */
|
||||
@@ -297,9 +333,10 @@ buildicmp()
|
||||
ttime, /* transmit timestamp */
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
- pkt + IP_H); /* packet header memory */
|
||||
-
|
||||
- if (type == ICMP_MASKREQ) /* type = 17 */
|
||||
+ pkt + LIBNET_IP_H); /* packet header memory */
|
||||
+ libnet_do_checksum(pkt, IPPROTO_ICMP, LIBNET_ICMP_TS_H + payload_s);
|
||||
+ }
|
||||
+ if (type == ICMP_MASKREQ) { /* type = 17 */
|
||||
libnet_build_icmp_mask(type, /* ICMP type */
|
||||
0, /* ICMP code */
|
||||
id, /* ICMP id */
|
||||
@@ -307,9 +344,10 @@ buildicmp()
|
||||
mask, /* address mask */
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
- pkt + IP_H); /* packet header memory */
|
||||
-
|
||||
- if (type == ICMP_MASKREPLY) /* type = 18 */
|
||||
+ pkt + LIBNET_IP_H); /* packet header memory */
|
||||
+ libnet_do_checksum(pkt, IPPROTO_ICMP, LIBNET_ICMP_MASK_H + payload_s);
|
||||
+ }
|
||||
+ if (type == ICMP_MASKREPLY) { /* type = 18 */
|
||||
libnet_build_icmp_mask(type, /* ICMP type */
|
||||
0, /* ICMP code */
|
||||
id, /* ICMP id */
|
||||
@@ -317,10 +355,9 @@ buildicmp()
|
||||
mask, /* address mask */
|
||||
payload, /* ICMP payload pointer */
|
||||
payload_s, /* ICMP payload size */
|
||||
- pkt + IP_H); /* packet header memory */
|
||||
-
|
||||
- libnet_do_checksum(pkt, IPPROTO_ICMP, ICMP_H + IP_H + payload_s);
|
||||
-
|
||||
+ pkt + LIBNET_IP_H); /* packet header memory */
|
||||
+ libnet_do_checksum(pkt, IPPROTO_ICMP, LIBNET_ICMP_MASK_H + payload_s);
|
||||
+ }
|
||||
memcpy(ipopt.ipopt_list, options, option_s);
|
||||
*(ipopt.ipopt_list) = IPOPT_SECURITY;
|
||||
*(ipopt.ipopt_list + 1) = 1;
|
Loading…
Reference in New Issue
Block a user