mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
upgrade to 0.3.7.beta
This commit is contained in:
parent
23ccf010b7
commit
8f6a263ee7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=12570
@ -4,11 +4,11 @@
|
||||
# Date created: 28 Mar 1998
|
||||
# Whom: bsdx
|
||||
#
|
||||
# $Id$
|
||||
# $Id: Makefile,v 1.1.1.1 1998/04/04 04:58:25 obrien Exp $
|
||||
#
|
||||
|
||||
DISTNAME= sniffit.0.3.5
|
||||
PKGNAME= sniffit-0.3.5
|
||||
DISTNAME= sniffit.0.3.7.beta
|
||||
PKGNAME= sniffit-0.3.7b
|
||||
CATEGORIES= net security
|
||||
MASTER_SITES= http://reptile.rug.ac.be/~coder/sniffit/files/
|
||||
|
||||
|
@ -1 +1 @@
|
||||
MD5 (sniffit.0.3.5.tar.gz) = bd116c62669372d7ea7f59c337f6822a
|
||||
MD5 (sniffit.0.3.7.beta.tar.gz) = 2697cc18878480199fe6db1e61134d5a
|
||||
|
@ -1,26 +1,25 @@
|
||||
--- Makefile.in.orig Fri Apr 18 17:33:57 1997
|
||||
+++ Makefile.in Wed Jul 1 20:17:08 1998
|
||||
--- Makefile.in.orig Thu Jul 16 09:17:10 1998
|
||||
+++ Makefile.in Sun Aug 16 23:20:29 1998
|
||||
@@ -10,10 +10,10 @@
|
||||
LIBS = @LIBS@
|
||||
DEFS = @DEFS@
|
||||
OS_OPT = @OS_OPT@
|
||||
-OBJ_FLAG = -w -O2 -c
|
||||
-OBJ_OPT = -I./libpcap-0.3 -L./libpcap-0.3
|
||||
-OBJ_OPT = -I./libpcap -L./libpcap
|
||||
-EXE_FLAG = -w -O2 -o sniffit
|
||||
-EXE_OPT = -I./libpcap-0.3 -L./libpcap-0.3 -lpcap
|
||||
+OBJ_FLAG = ${CFLAGS} -w -c
|
||||
+#OBJ_OPT = -I./libpcap-0.3 -L./libpcap-0.3
|
||||
+EXE_FLAG = ${CFLAGS} -w -o sniffit
|
||||
-EXE_OPT = -I./libpcap -L./libpcap -lpcap
|
||||
+OBJ_FLAG = $(CFLAGS) -w -c
|
||||
+#OBJ_OPT = -I./libpcap -L./libpcap
|
||||
+EXE_FLAG = $(CFLAGS) -w -o sniffit
|
||||
+EXE_OPT = -lpcap
|
||||
EXE_OBJ = sn_packets.o sn_generation.o sn_interface.o sn_cfgfile.o \
|
||||
sn_logfile.o
|
||||
DEP_FILES = sn_config.h pcap.h sn_data.h sn_defines.h sn_plugins.h \
|
||||
@@ -21,7 +21,7 @@
|
||||
sn_generation.o sn_interface.o sn_cfgfile.o sn_logfile.o
|
||||
sn_logfile.o sn_resolv.o
|
||||
DEP_FILES = sn_config.h ./libpcap/pcap.h sn_data.h sn_defines.h sn_plugins.h \
|
||||
@@ -26,7 +26,6 @@
|
||||
@echo "Succesfull compilation..."
|
||||
|
||||
sniffit: $(SNIFFIT) $(DEP_FILES)
|
||||
- cd libpcap-0.3; make; cd ..
|
||||
+ #cd libpcap-0.3; make; cd ..
|
||||
- cd libpcap; make; cd ..
|
||||
$(CC) $(EXE_FLAG) $(SNIFFIT) $(EXE_OBJ) $(EXE_OPT) $(LIBS) $(DEFS) $(OS_OPT)
|
||||
strip sniffit
|
||||
|
||||
|
@ -1,35 +1,11 @@
|
||||
--- sniffit.0.3.5.c.orig Fri Apr 18 02:33:58 1997
|
||||
+++ sniffit.0.3.5.c Fri Apr 3 20:44:10 1998
|
||||
@@ -411,11 +411,22 @@
|
||||
proto=unwrap_packet(sp, info);
|
||||
if(proto == NO_IP) return DONT_EXAMINE; /* no use in trying */
|
||||
if(proto == NO_IP_4) return DONT_EXAMINE; /* no use in trying */
|
||||
+ if(proto == CORRUPT_IP)
|
||||
+ {
|
||||
+ printf("Suspicious Packet detected... (Split header)\n");
|
||||
+ return DONT_EXAMINE;
|
||||
+ }
|
||||
--- sn_resolv.c.orig Thu Jul 16 09:17:10 1998
|
||||
+++ sn_resolv.c Sun Aug 16 23:25:58 1998
|
||||
@@ -2,6 +2,8 @@
|
||||
/* - getaddrbyname: Godmar Back / Shudoh Kazuyuki */
|
||||
|
||||
memcpy(&iphead,(sp+PROTO_HEAD),sizeof(struct IP_header));
|
||||
so=(unsigned char *)&(iphead.source);
|
||||
dest=(unsigned char *)&(iphead.destination);
|
||||
#include "sn_defines.h"
|
||||
+#include <sys/types.h>
|
||||
+#include <netinet/in.h>
|
||||
#include <netdb.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
+ if(info->FRAG_nf!=0)
|
||||
+ {
|
||||
+ printf("Fragment Skipped...\n");
|
||||
+ return DONT_EXAMINE;
|
||||
+ }
|
||||
+
|
||||
if((proto==TCP)&&(PROTOCOLS&F_TCP))
|
||||
{
|
||||
#ifdef DEBUG_ONSCREEN
|
||||
@@ -1220,6 +1231,9 @@
|
||||
proto=unwrap_packet(sp, info);
|
||||
if(proto == NO_IP) return DONT_EXAMINE; /* no use in trying */
|
||||
if(proto == NO_IP_4) return DONT_EXAMINE; /* no use in trying */
|
||||
+ if(proto == CORRUPT_IP) return DONT_EXAMINE; /* no use in trying */
|
||||
+
|
||||
+ if(info->FRAG_nf!=0) return DONT_EXAMINE;
|
||||
|
||||
(*IP_nr_of_packets)++;
|
||||
if(proto==ICMP)
|
||||
|
@ -1,8 +1,13 @@
|
||||
--- sn_packetstructs.h.orig Fri Apr 18 02:33:58 1997
|
||||
+++ sn_packetstructs.h Fri Apr 3 20:41:08 1998
|
||||
@@ -48,4 +48,5 @@
|
||||
{
|
||||
int IP_len, TCP_len, ICMP_len, UDP_len; /* header lengths */
|
||||
int DATA_len;
|
||||
+ char FRAG_nf; /* not the first fragment */
|
||||
};
|
||||
--- sn_data.h.orig Sun Aug 16 23:29:35 1998
|
||||
+++ sn_data.h Sun Aug 16 23:30:48 1998
|
||||
@@ -38,8 +38,8 @@
|
||||
char *NETDEV[]={"ppp","ed"};
|
||||
int HEADSIZE[]={4 ,14};
|
||||
*/
|
||||
-#define NETDEV_NR 1
|
||||
-char *NETDEV[]={"ed"};
|
||||
+#define NETDEV_NR 6
|
||||
+char *NETDEV[]={"fxp","de","ed","ppp","tun","lo"};
|
||||
int HEADSIZE[]={14};
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user