From f592d34285e3f2ef801613fae1ef654857d997a7 Mon Sep 17 00:00:00 2001 From: jakob Date: Thu, 7 Nov 2002 18:02:16 +0000 Subject: [PATCH] tls/ssl sniffer; port contributed by patroklos g argyroudis --- net/sslsniffer/Makefile | 27 +++++++++++++++++++++ net/sslsniffer/distinfo | 3 +++ net/sslsniffer/patches/patch-Makefile | 35 +++++++++++++++++++++++++++ net/sslsniffer/pkg/DESCR | 6 +++++ net/sslsniffer/pkg/PLIST | 4 +++ 5 files changed, 75 insertions(+) create mode 100644 net/sslsniffer/Makefile create mode 100644 net/sslsniffer/distinfo create mode 100644 net/sslsniffer/patches/patch-Makefile create mode 100644 net/sslsniffer/pkg/DESCR create mode 100644 net/sslsniffer/pkg/PLIST diff --git a/net/sslsniffer/Makefile b/net/sslsniffer/Makefile new file mode 100644 index 00000000000..fdf1cf6e48a --- /dev/null +++ b/net/sslsniffer/Makefile @@ -0,0 +1,27 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2002/11/07 18:02:16 jakob Exp $ + +COMMENT= "SSLv3/TLS and SSLv2 sniffer" + +DISTNAME= sslsniffer-1.21 +CATEGORIES= net security +HOMEPAGE= http://crypto.stanford.edu/~eujin/sslsniffer/ +MASTER_SITES= ${HOMEPAGE} + +MAINTAINER= Patroklos Argyroudis + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MAKE_FLAGS= CC='${CC}' + +WRKDIST= ${WRKDIR}/sslsniffer + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sslsniffer ${PREFIX}/sbin + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sslsniffer + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sslsniffer + +.include diff --git a/net/sslsniffer/distinfo b/net/sslsniffer/distinfo new file mode 100644 index 00000000000..4797ae58397 --- /dev/null +++ b/net/sslsniffer/distinfo @@ -0,0 +1,3 @@ +MD5 (sslsniffer-1.21.tar.gz) = 8a3b8e72c393d1fffbe1060e834ebfe5 +RMD160 (sslsniffer-1.21.tar.gz) = 2b42ff5f6aad20a226dab22f0208bce4ae6c86ba +SHA1 (sslsniffer-1.21.tar.gz) = 6c5cb518a9574a24f1b1c589b64659258d4d7ee3 diff --git a/net/sslsniffer/patches/patch-Makefile b/net/sslsniffer/patches/patch-Makefile new file mode 100644 index 00000000000..283d7787819 --- /dev/null +++ b/net/sslsniffer/patches/patch-Makefile @@ -0,0 +1,35 @@ +# $OpenBSD: patch-Makefile,v 1.1.1.1 2002/11/07 18:02:16 jakob Exp $ +--- Makefile.orig Mon Oct 8 23:11:16 2001 ++++ Makefile Thu Nov 7 16:52:05 2002 +@@ -1,26 +1,23 @@ +-CC= gcc + PFLAGS= -cache-dir=/tmp/${USER} + PURIFY= purify ${PFLAGS} +-INCS= -I/usr/local/ssl/include +-LIBS= -L/usr/local/ssl/lib -L. -lnsl -lssl -lcrypto -lutl ++INCS= -I/usr/include ++LIBS= -L/usr/lib -L. -lssl -lcrypto -lutl + SRCS= sslsniffer.c + OBJS= ${SRCS:.c=.o} + BINS= sslsniffer + UTL_LIB= libutl.a + UTL_SRCS= general_utilities.c net_utilities.c + AR= ar +-ARFLAGS= rs ++ARFLAGS= r + BINS.PURIFY= sslpure + +-CCFLAGS= -g -Wall -O3 -pedantic ${INCS} +- + all: $(UTL_LIB) ${BINS} + + %.o: %.c +- ${CC} ${CCFLAGS} -c $< ++ ${CC} ${CFLAGS} ${INCS} -c $< + + ${BINS}: ${OBJS} +- ${CC} ${CCFLAGS} -o $@ ${OBJS} ${LIBS} ++ ${CC} ${CFLAGS} ${INCS} -o $@ ${OBJS} ${LIBS} + + $(UTL_LIB): general_utilities.o net_utilities.o + ${AR} ${ARFLAGS} $@ general_utilities.o net_utilities.o diff --git a/net/sslsniffer/pkg/DESCR b/net/sslsniffer/pkg/DESCR new file mode 100644 index 00000000000..bfd55324098 --- /dev/null +++ b/net/sslsniffer/pkg/DESCR @@ -0,0 +1,6 @@ +A SSLv3/TLS and SSLv2 proxy server that sniffs SSL/TLS packets and prints +out the contents of packets in stdout. It can also serve as a (not very +efficient) proxy server. Note that this tool does not decrypt or even +attempt to decrypt the traffic that is routed through it. + +WWW: ${HOMEPAGE} diff --git a/net/sslsniffer/pkg/PLIST b/net/sslsniffer/pkg/PLIST new file mode 100644 index 00000000000..950484aec34 --- /dev/null +++ b/net/sslsniffer/pkg/PLIST @@ -0,0 +1,4 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2002/11/07 18:02:16 jakob Exp $ +sbin/sslsniffer +share/doc/sslsniffer/README +@dirrm share/doc/sslsniffer