upgrade to 1.1 (fixes recent hole reported in l0pht advisory, FAKE

This commit is contained in:
dugsong 2000-05-17 18:48:34 +00:00
parent f7e984c32a
commit 3aefb7e785
5 changed files with 56 additions and 13 deletions

View File

@ -3,17 +3,16 @@
# Date created: 27 Oct 1999
# Whom: dugsong@monkey.org
#
# $OpenBSD: Makefile,v 1.8 2000/04/30 09:20:06 kevlo Exp $
# $OpenBSD: Makefile,v 1.9 2000/05/17 18:48:34 dugsong Exp $
PKGNAME= antisniff-1.0
PKGNAME= antisniff-1.1
CATEGORIES= security
NEED_VERSION= 1.191
DISTNAME= anti_sniff_researchv1
MASTER_SITES= http://www.l0pht.com/antisniff/dist/
DISTNAME= anti_sniff_researchv1-1
MAINTAINER= dugsong@monkey.org
@ -28,12 +27,14 @@ NO_CONFIGURE= Yes
ALL_TARGET= OpenBSD-all
FAKE= Yes
FAKE= yes
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/anti_sniffer ${PREFIX}/bin/antisniff
${INSTALL_PROGRAM} ${WRKSRC}/anti_sniffer \
${PREFIX}/bin/antisniff
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/antisniff
${INSTALL_DATA} ${WRKSRC}/ANTI_SNIFFER_DOCS ${PREFIX}/share/doc/antisniff
${INSTALL_DATA} ${WRKSRC}/ANTI_SNIFFER_DOCS \
${PREFIX}/share/doc/antisniff
${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/antisniff
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (anti_sniff_researchv1.tar.gz) = 1638351d7cfb9e1abf71187cf9cb72fe
RMD160 (anti_sniff_researchv1.tar.gz) = cfef7a04f67c28ead5cf57e3963ff041dfc2e99b
SHA1 (anti_sniff_researchv1.tar.gz) = 1e5716c8171a555088235df790aa159dd2dc4443
MD5 (anti_sniff_researchv1-1.tar.gz) = f49002ad7a7424d7cffa859a34e7b3ae
RMD160 (anti_sniff_researchv1-1.tar.gz) = d24cc3bda32a18d26639452f52a4688d252c23be
SHA1 (anti_sniff_researchv1-1.tar.gz) = e5ac9ba677b3b3740c3f46f81b08986f7d5e3937

View File

@ -1,6 +1,23 @@
--- includes.h.orig Sat Dec 12 15:40:07 1998
+++ includes.h Thu Oct 28 19:14:52 1999
@@ -60,6 +60,7 @@
--- includes.h.orig Mon Apr 10 23:21:13 2000
+++ includes.h Wed May 17 14:13:46 2000
@@ -30,7 +30,7 @@
#include <errno.h>
#include <string.h>
#include <stdlib.h>
-
+#include <net/if.h>
#include <netinet/if_ether.h>
#ifdef _linux_
#include "linux_flood_net.h"
@@ -45,7 +45,6 @@
#include <sys/sockio.h>
#endif
#include <sys/ioctl.h>
-#include <net/if.h>
#ifdef SOLARIS
#include <net/if_arp.h>
#include <sys/stropts.h>
@@ -72,6 +71,7 @@
#endif
#include <arpa/nameser.h>

View File

@ -0,0 +1,20 @@
--- flood_net.c.orig Mon Apr 17 20:52:21 2000
+++ flood_net.c Wed May 17 14:16:36 2000
@@ -107,7 +107,7 @@
char *pkt;
struct ether_header *eth;
struct ip iph;
- struct tcphdr tcph, ltcph;
+ struct tcphdr tcph;
struct pseudo_header pheader;
struct in_addr addr;
@@ -241,7 +241,7 @@
iph->ip_len = htons(40);
iph->ip_id = htons(0xcafe);
-#if definded (SOLARIS)
+#if defined (SOLARIS)
iph->ip_off = IP_DF;
#endif
#if defined (_OpenBSD_) || defined (_linux_)

View File

@ -2,4 +2,9 @@
this code has not been audited for security holes.
that's the l0pht's job! ;-)
update: the l0pht released an advisory on their own code!
the port has been updated to fix this hole.
http://www.l0pht.com/advisories/asniff_advisory.txt
-d.