initial import of siphon-0.666:
-- The Siphon Project is a portable passive network mapping suite. In the latest public version, Siphon passively maps TCP ports and performs passive operating system detection. Through the magic of RFC ambiguity and programmer uniqueness, different machines exhibit telltale characteristics that enable Siphon to make a fairly accurate guess at what operating system is running on machines sending packets out over the wire. The beauty of this method is that our tool does not need to send out a slew of non-RFC compliant packets that trip intrusion detection systems. In fact, we send out no packets at all. Whereas nmap crashes some machines and network hardware when performing its active OS detection tests, Siphon would never crash remote machines. Siphon is available for UNIX and Win32. WWW: http://www.gravitino.net/projects/siphon/ Submitted by Jason Peel <jsyn@nthought.com>
This commit is contained in:
parent
64c76705fd
commit
fbf9768fcf
32
security/siphon/Makefile
Normal file
32
security/siphon/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2001/06/16 14:56:26 lebel Exp $
|
||||
|
||||
COMMENT= "passive network mapping tool"
|
||||
|
||||
DISTNAME= siphon-v.666
|
||||
PKGNAME= siphon-0.666
|
||||
CATEGORIES= security net
|
||||
NEED_VERSION= 1.414
|
||||
|
||||
HOMEPAGE= http://www.gravitino.net/projects/siphon/
|
||||
|
||||
MAINTAINER= Jason Peel <jsyn@nthought.com>
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= http://www.gravitino.net/projects/siphon/ \
|
||||
http://packetstorm.securify.com/UNIX/utilities/siphon/
|
||||
|
||||
MAKE_ENV= SYSCONFDIR="${SYSCONFDIR}"
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/siphon ${PREFIX}/bin
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/siphon
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/siphon
|
||||
${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/siphon
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/siphon
|
||||
${INSTALL_DATA} ${WRKSRC}/osprints.conf ${PREFIX}/share/examples/siphon
|
||||
|
||||
.include <bsd.port.mk>
|
3
security/siphon/files/md5
Normal file
3
security/siphon/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (siphon-v.666.tar.gz) = 064c63e738235626aeb7820241ce478b
|
||||
RMD160 (siphon-v.666.tar.gz) = 60fbcfe8d1954a0df82cbdd7521f0850dfac3e94
|
||||
SHA1 (siphon-v.666.tar.gz) = c95504d4ec088039aed42d6ab033d5f05ed9ba99
|
20
security/siphon/patches/patch-Makefile
Normal file
20
security/siphon/patches/patch-Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2001/06/16 14:56:26 lebel Exp $
|
||||
--- Makefile.orig Fri Jun 15 18:45:00 2001
|
||||
+++ Makefile Fri Jun 15 18:46:07 2001
|
||||
@@ -1,6 +1,6 @@
|
||||
CC = gcc
|
||||
CCFLAGS = -Wall -pthread -ggdb
|
||||
-CFLAGS = -Wall -O2 -pthread -ggdb -I.
|
||||
+CFLAGS = -Wall -O2 -pthread -ggdb -I. -DSYSCONFDIR="\"${SYSCONFDIR}\""
|
||||
LIBS = -lpcap
|
||||
OBJS = parse.o sniff.o main.o log.o
|
||||
SRCS = ${OBJS:.o=.c}
|
||||
@@ -9,7 +9,7 @@ TARGET = siphon
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
- $(CC) $(CCFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
|
||||
+ $(CC) -DSYSCONFDIR="\"${SYSCONFDIR}\"" $(CCFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) *~ *.core core siphon
|
12
security/siphon/patches/patch-log_c
Normal file
12
security/siphon/patches/patch-log_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-log_c,v 1.1.1.1 2001/06/16 14:56:26 lebel Exp $
|
||||
--- log.c.orig Fri Jun 15 18:36:47 2001
|
||||
+++ log.c Fri Jun 15 18:36:55 2001
|
||||
@@ -137,7 +137,7 @@ char *oslookup(int window, int ttl, int
|
||||
FILE *osprints;
|
||||
static char line[80], *oswin, *osttl, *osdf, *os, hexed[10];
|
||||
static int check = 0;
|
||||
- osprints = fopen("osprints.conf","r");
|
||||
+ osprints = fopen(SYSCONFDIR "/osprints.conf","r");
|
||||
|
||||
if(!osprints) {
|
||||
perror("Unable to find osprints.conf\n");
|
25
security/siphon/pkg/DEINSTALL
Normal file
25
security/siphon/pkg/DEINSTALL
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/06/16 14:56:26 lebel Exp $
|
||||
#
|
||||
# siphon de-installation
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONFIG_FILE=${SYSCONFDIR}/osprints.conf
|
||||
|
||||
if [ -d $CONFIG_DIR ]; then
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need to perform"
|
||||
echo "| this step as root:"
|
||||
echo "|"
|
||||
echo "| rm -f $CONFIG_FILE"
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing $1"
|
||||
echo "| at some future time."
|
||||
echo "+---------------"
|
||||
echo
|
||||
fi
|
||||
|
||||
exit 0
|
14
security/siphon/pkg/DESCR
Normal file
14
security/siphon/pkg/DESCR
Normal file
@ -0,0 +1,14 @@
|
||||
The Siphon Project is a portable passive network mapping suite. In
|
||||
the latest public version, Siphon passively maps TCP ports and
|
||||
performs passive operating system detection. Through the magic of
|
||||
RFC ambiguity and programmer uniqueness, different machines exhibit
|
||||
telltale characteristics that enable Siphon to make a fairly accurate
|
||||
guess at what operating system is running on machines sending packets
|
||||
out over the wire. The beauty of this method is that our tool does
|
||||
not need to send out a slew of non-RFC compliant packets that trip
|
||||
intrusion detection systems. In fact, we send out no packets at
|
||||
all. Whereas nmap crashes some machines and network hardware when
|
||||
performing its active OS detection tests, Siphon would never crash
|
||||
remote machines. Siphon is available for UNIX and Win32.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
67
security/siphon/pkg/INSTALL
Normal file
67
security/siphon/pkg/INSTALL
Normal file
@ -0,0 +1,67 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1.1.1 2001/06/16 14:56:26 lebel Exp $
|
||||
#
|
||||
# Pre/post-installation setup of siphon
|
||||
|
||||
# exit on errors, use a sane path and install prefix
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONFIG_FILE=${SYSCONFDIR}/osprints.conf
|
||||
SAMPLE_CONFIG_DIR=$PREFIX/share/examples/siphon
|
||||
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The existing $1 configuration file in $CONFIG_FILE,"
|
||||
echo "| have NOT been changed. You may want to compare them to the"
|
||||
echo "| current sample file in $SAMPLE_CONFIG_DIR,"
|
||||
echo "| and update your configuration as needed."
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
do_install()
|
||||
{
|
||||
install -o root -g wheel -m 644 $SAMPLE_CONFIG_DIR/osprints.conf \
|
||||
$CONFIG_FILE
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The $1 configuration file have been installed into"
|
||||
echo "| $CONFIG_FILE. Please view this file and change the configuration"
|
||||
echo "| to meet your needs."
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
# verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify/process the command
|
||||
#
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
: nothing to pre-install for this port
|
||||
;;
|
||||
POST-INSTALL)
|
||||
if [ ! -d $CONFIG_DIR ]; then
|
||||
do_install $1
|
||||
elif [ ! -f $CONFIG_DIR/Muttrc ]; then
|
||||
do_install $1
|
||||
else
|
||||
do_notice $1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
7
security/siphon/pkg/PLIST
Normal file
7
security/siphon/pkg/PLIST
Normal file
@ -0,0 +1,7 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/06/16 14:56:26 lebel Exp $
|
||||
bin/siphon
|
||||
share/doc/siphon/LICENSE
|
||||
share/doc/siphon/README
|
||||
share/examples/siphon/osprints.conf
|
||||
@dirrm share/examples/siphon
|
||||
@dirrm share/doc/siphon
|
Loading…
Reference in New Issue
Block a user