update to version 0.05
This commit is contained in:
parent
c60e964ac3
commit
299dc27e7d
@ -3,13 +3,14 @@
|
||||
# Date created: 24 Jan 2000
|
||||
# Whom: dugsong@monkey.org
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.2 2000/02/11 00:37:36 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.3 2000/02/23 22:56:02 dugsong Exp $
|
||||
|
||||
DISTNAME= isic-0.04
|
||||
DISTNAME= isic-0.05
|
||||
|
||||
CATEGORIES= security
|
||||
|
||||
MASTER_SITES= http://expert.cc.purdue.edu/~frantzen/
|
||||
|
||||
NEED_VERSION= 1.191
|
||||
|
||||
EXTRACT_SUFX= .tgz
|
||||
@ -18,8 +19,8 @@ MAINTAINER= dugsong@monkey.org
|
||||
|
||||
BUILD_DEPENDS= ${PREFIX}/lib/libnet.a:${PORTSDIR}/net/libnet
|
||||
|
||||
WRKDIST= ${WRKDIR}/isic
|
||||
NO_PATCH= yes
|
||||
|
||||
USE_AUTOCONF= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (isic-0.04.tgz) = d70ebe0511307750a253b741671f6038
|
||||
RMD160 (isic-0.04.tgz) = b62a68a8f1370293c5d0162c8075e5f636660ef3
|
||||
SHA1 (isic-0.04.tgz) = e24454f12da9c2ec839ac1e809001e78de74319a
|
||||
MD5 (isic-0.05.tgz) = da75f4ff2b78477396b0ab30fbdbb616
|
||||
RMD160 (isic-0.05.tgz) = 6da8904958852222d7311139430a8714385341aa
|
||||
SHA1 (isic-0.05.tgz) = 5825e32272d869bbec1a7621420a46ac66a0bcc3
|
||||
|
@ -1,12 +0,0 @@
|
||||
--- configure.in.orig Tue Dec 7 16:09:04 1999
|
||||
+++ configure.in Mon Jan 24 14:18:20 2000
|
||||
@@ -4,7 +4,8 @@
|
||||
AC_PROG_INSTALL
|
||||
|
||||
dnl Bah.... Quick hack to fine libnet
|
||||
-AC_CHECK_FILE(/usr/local/lib/libnet.a, [FOO=$LIBS; LIBS=-L/usr/local/lib $LIBS])
|
||||
+PREFIX=/usr/local
|
||||
+AC_CHECK_FILE($PREFIX/lib/libnet.a, [FOO=$LIBS; CFLAGS="$CFLAGS -I$PREFIX/include" LIBS="-L$PREFIX/lib $LIBS"])
|
||||
AC_CHECK_FILE(/usr/lib/aout/libnet.a, [FOO=$LIBS; LIBS=-L/usr/lib/aout $LIBS])
|
||||
AC_HAVE_LIBRARY(net, [DEFINES= ] ,
|
||||
AC_MSG_ERROR([Cannot find libnet... please get it from
|
@ -1,13 +0,0 @@
|
||||
--- isic.h~ Tue Dec 7 16:09:04 1999
|
||||
+++ isic.h Mon Jan 24 14:20:18 2000
|
||||
@@ -7,10 +7,6 @@
|
||||
|
||||
#include <libnet.h>
|
||||
|
||||
-#include <netinet/tcp.h>
|
||||
-#include <netinet/udp.h>
|
||||
-#include <netinet/ip_icmp.h>
|
||||
-
|
||||
#include <sys/time.h>
|
||||
#include <signal.h>
|
||||
|
@ -1,38 +0,0 @@
|
||||
--- isic.c.orig Mon Jan 24 14:24:28 2000
|
||||
+++ isic.c Mon Jan 24 14:25:02 2000
|
||||
@@ -82,7 +82,7 @@
|
||||
dst_ip_rand = 1;
|
||||
break;
|
||||
}
|
||||
- if (!(dst_ip = name_resolve(optarg, 1))) {
|
||||
+ if (!(dst_ip = libnet_name_resolve(optarg, 1))) {
|
||||
fprintf(stderr, "Bad dest IP\n");
|
||||
exit( -1 );
|
||||
}
|
||||
@@ -94,7 +94,7 @@
|
||||
src_ip_rand = 1;
|
||||
break;
|
||||
}
|
||||
- if (!(src_ip = name_resolve(optarg, 1))) {
|
||||
+ if (!(src_ip = libnet_name_resolve(optarg, 1))) {
|
||||
fprintf(stderr, "Bad source IP\n");
|
||||
exit( -1 );
|
||||
}
|
||||
@@ -153,7 +153,7 @@
|
||||
exit( -1 );
|
||||
}
|
||||
|
||||
- if ( (sock = open_raw_sock(IPPROTO_RAW)) == -1 ) {
|
||||
+ if ( (sock = libnet_open_raw_sock(IPPROTO_RAW)) == -1 ) {
|
||||
perror("socket: ");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
@@ -237,7 +237,7 @@
|
||||
|
||||
if ( skip <= acx ) {
|
||||
for ( cx = 0; cx < repeat; cx++ ) {
|
||||
- c = write_ip(sock, buf, IP_H + payload_s);
|
||||
+ c = libnet_write_ip(sock, buf, IP_H + payload_s);
|
||||
datapushed+=c;
|
||||
}
|
||||
/* This is way too noisy!
|
@ -1,47 +0,0 @@
|
||||
--- icmpsic.c.orig Tue Dec 7 16:09:04 1999
|
||||
+++ icmpsic.c Mon Jan 24 14:27:21 2000
|
||||
@@ -79,7 +79,7 @@
|
||||
dst_ip_rand = 1;
|
||||
break;
|
||||
}
|
||||
- if (!(dst_ip = name_resolve(optarg, 1))) {
|
||||
+ if (!(dst_ip = libnet_name_resolve(optarg, 1))) {
|
||||
fprintf(stderr, "Bad dest IP\n");
|
||||
exit( -1 );
|
||||
}
|
||||
@@ -91,7 +91,7 @@
|
||||
src_ip_rand = 1;
|
||||
break;
|
||||
}
|
||||
- if (!(src_ip = name_resolve(optarg, 1))) {
|
||||
+ if (!(src_ip = libnet_name_resolve(optarg, 1))) {
|
||||
fprintf(stderr, "Bad source IP\n");
|
||||
exit( -1 );
|
||||
}
|
||||
@@ -156,7 +156,7 @@
|
||||
exit( -1 );
|
||||
}
|
||||
|
||||
- if ( (sock = open_raw_sock(IPPROTO_RAW)) == -1 ) {
|
||||
+ if ( (sock = libnet_open_raw_sock(IPPROTO_RAW)) == -1 ) {
|
||||
perror("socket: ");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
@@ -258,7 +258,7 @@
|
||||
|
||||
if ( rand() <= (RAND_MAX * ICMPCksm) )
|
||||
icmp->icmp_cksum = rand() & 0xffff;
|
||||
- else do_checksum(buf, IPPROTO_ICMP, 4 + payload_s);
|
||||
+ else libnet_do_checksum(buf, IPPROTO_ICMP, 4 + payload_s);
|
||||
|
||||
|
||||
|
||||
@@ -273,7 +273,7 @@
|
||||
|
||||
if ( skip <= acx ) {
|
||||
for ( cx = 0; cx < repeat; cx++ ) {
|
||||
- c = write_ip(sock, buf, packet_len);
|
||||
+ c = libnet_write_ip(sock, buf, packet_len);
|
||||
datapushed+=c;
|
||||
}
|
||||
if (c != (packet_len) ) {
|
@ -1,47 +0,0 @@
|
||||
--- tcpsic.c.orig Tue Dec 7 16:09:04 1999
|
||||
+++ tcpsic.c Mon Jan 24 14:26:00 2000
|
||||
@@ -91,7 +91,7 @@
|
||||
dst_ip_rand = 1;
|
||||
break;
|
||||
}
|
||||
- if (!(dst_ip = name_resolve(optarg, 1))) {
|
||||
+ if (!(dst_ip = libnet_name_resolve(optarg, 1))) {
|
||||
fprintf(stderr, "Bad dest IP\n");
|
||||
exit( -1 );
|
||||
}
|
||||
@@ -109,7 +109,7 @@
|
||||
src_ip_rand = 1;
|
||||
break;
|
||||
}
|
||||
- if (!(src_ip = name_resolve(optarg, 1))) {
|
||||
+ if (!(src_ip = libnet_name_resolve(optarg, 1))) {
|
||||
fprintf(stderr, "Bad source IP\n");
|
||||
exit( -1 );
|
||||
}
|
||||
@@ -180,7 +180,7 @@
|
||||
exit( -1 );
|
||||
}
|
||||
|
||||
- if ( (sock = open_raw_sock(IPPROTO_RAW)) == -1 ) {
|
||||
+ if ( (sock = libnet_open_raw_sock(IPPROTO_RAW)) == -1 ) {
|
||||
perror("socket: ");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
@@ -302,7 +302,7 @@
|
||||
(u_int16_t) payload[cx] = rand() & 0xffff;
|
||||
|
||||
if ( rand() <= (RAND_MAX * TCPCksm) )
|
||||
- do_checksum(buf, IPPROTO_TCP, (tcp->th_off << 2)
|
||||
+ libnet_do_checksum(buf, IPPROTO_TCP, (tcp->th_off << 2)
|
||||
+ payload_s);
|
||||
else tcp->th_sum = rand() & 0xffff;
|
||||
|
||||
@@ -318,7 +318,7 @@
|
||||
|
||||
if ( skip <= acx ) {
|
||||
for ( cx = 0; cx < repeat; cx++ ) {
|
||||
- c = write_ip(sock, buf, packet_len);
|
||||
+ c = libnet_write_ip(sock, buf, packet_len);
|
||||
datapushed+=c;
|
||||
}
|
||||
if (c < (packet_len) ) {
|
@ -1,44 +0,0 @@
|
||||
--- udpsic.c.orig Tue Dec 7 16:09:04 1999
|
||||
+++ udpsic.c Mon Jan 24 14:26:16 2000
|
||||
@@ -89,7 +89,7 @@
|
||||
dst_ip_rand = 1;
|
||||
break;
|
||||
}
|
||||
- if (!(dst_ip = name_resolve(optarg, 1))) {
|
||||
+ if (!(dst_ip = libnet_name_resolve(optarg, 1))) {
|
||||
fprintf(stderr, "Bad dest IP\n");
|
||||
exit( -1 );
|
||||
}
|
||||
@@ -107,7 +107,7 @@
|
||||
src_ip_rand = 1;
|
||||
break;
|
||||
}
|
||||
- if (!(src_ip = name_resolve(optarg, 1))) {
|
||||
+ if (!(src_ip = libnet_name_resolve(optarg, 1))) {
|
||||
fprintf(stderr, "Bad source IP\n");
|
||||
exit( -1 );
|
||||
}
|
||||
@@ -172,7 +172,7 @@
|
||||
exit( -1 );
|
||||
}
|
||||
|
||||
- if ( (sock = open_raw_sock(IPPROTO_RAW)) == -1 ) {
|
||||
+ if ( (sock = libnet_open_raw_sock(IPPROTO_RAW)) == -1 ) {
|
||||
perror("socket: ");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
@@ -288,12 +288,12 @@
|
||||
|
||||
if ( rand() <= (RAND_MAX * UDPCksm) )
|
||||
udp->uh_sum = rand() & 0xffff;
|
||||
- else do_checksum(buf, IPPROTO_UDP, UDP_H + payload_s);
|
||||
+ else libnet_do_checksum(buf, IPPROTO_UDP, UDP_H + payload_s);
|
||||
|
||||
|
||||
if ( skip <= acx ) {
|
||||
for ( cx = 0; cx < repeat; cx++ ) {
|
||||
- c = write_ip(sock, buf, packet_len);
|
||||
+ c = libnet_write_ip(sock, buf, packet_len);
|
||||
datapushed+=c;
|
||||
}
|
||||
if (c < (packet_len) ) {
|
@ -1,28 +0,0 @@
|
||||
--- Makefile.in.orig Mon Dec 27 00:15:04 1999
|
||||
+++ Makefile.in Mon Jan 24 14:50:27 2000
|
||||
@@ -2,6 +2,8 @@
|
||||
# To build for Trinux, add '-static' to LDFLAGS
|
||||
# and 'strip *sic' after they compile
|
||||
|
||||
+PREFIX ?= /usr/local
|
||||
+
|
||||
CC = @CC@
|
||||
DEFS = @DEFS@ `libnet-config --defines`
|
||||
CFLAGS = @CFLAGS@ `libnet-config --cflags`
|
||||
@@ -29,7 +31,7 @@
|
||||
icmpsic: icmpsic.c isic.h
|
||||
gcc -o icmpsic icmpsic.c -Wall -W $(CFLAGS) $(DEFS) $(LIBS) $(LDFLAGS)
|
||||
|
||||
-esic: esic.c esic.h
|
||||
+esic: esic.c
|
||||
gcc -o esic esic.c -Wall -W $(CFLAGS) $(DEFS) $(LIBS) $(LDFLAGS)
|
||||
|
||||
realclean: distclean
|
||||
@@ -43,5 +45,5 @@
|
||||
tar -czvf ../isic-$(VERSION).tgz *
|
||||
|
||||
install: $(BINS)
|
||||
- $(INSTALL) -g 0 -m 0755 -o root -d /usr/local/bin
|
||||
- $(INSTALL) -g 0 -m 0755 -o root -c $(BINS) /usr/local/bin
|
||||
+ $(INSTALL) -m 0755 -d ${PREFIX}/bin
|
||||
+ $(INSTALL) -m 0755 -c $(BINS) ${PREFIX}/bin
|
@ -1,33 +0,0 @@
|
||||
--- esic.c.orig Tue Dec 7 16:09:04 1999
|
||||
+++ esic.c Mon Jan 24 14:48:15 2000
|
||||
@@ -7,9 +7,9 @@
|
||||
* The bastards always have to take a standard and fuck with it.
|
||||
*/
|
||||
|
||||
+#define __GLIBC__ 1 /* XXX */
|
||||
#include <libnet.h>
|
||||
#include <netinet/if_ether.h>
|
||||
-#include <netinet/ip.h>
|
||||
|
||||
#ifndef ETHER_FRAME_SIZE
|
||||
# define ETHER_FRAME_SIZE 1500
|
||||
@@ -28,8 +28,8 @@
|
||||
u_int16_t proto = htons(ETHERTYPE_IP);
|
||||
struct ether_addr *ea = NULL;
|
||||
u_int16_t *data = NULL;
|
||||
- struct link_int *lli;
|
||||
- u_char dev[128] = "";
|
||||
+ struct libnet_link_int *lli;
|
||||
+ char dev[128] = "";
|
||||
u_char *buf = NULL;
|
||||
int proto_rand = 0;
|
||||
struct timeval tv, tv2;
|
||||
@@ -136,7 +136,7 @@
|
||||
bzero(buf, ETHER_FRAME_SIZE);
|
||||
ether = (struct ether_header *) buf;
|
||||
|
||||
- if ( (lli = open_link_interface(dev, errtxt)) == NULL) {
|
||||
+ if ( (lli = libnet_open_link_interface(dev, errtxt)) == NULL) {
|
||||
printf("Failed to open link layer: %s\n", errtxt);
|
||||
free( buf );
|
||||
exit( -1 );
|
Loading…
x
Reference in New Issue
Block a user