From 306ade8d75bfa2769d5e1dd3e5b25ebc416ba81c Mon Sep 17 00:00:00 2001 From: Michael Landin Date: Thu, 15 May 2003 13:39:13 +0000 Subject: New port. A tcp based scanner, showing ttl of responses. PR: 50536 Approved by: roberto(mentor) --- net/ttlscan/Makefile | 33 +++++++++++++++++++++++++++++++++ net/ttlscan/distinfo | 1 + net/ttlscan/pkg-descr | 12 ++++++++++++ net/ttlscan/pkg-plist | 3 +++ 4 files changed, 49 insertions(+) create mode 100644 net/ttlscan/Makefile create mode 100644 net/ttlscan/distinfo create mode 100644 net/ttlscan/pkg-descr create mode 100644 net/ttlscan/pkg-plist (limited to 'net/ttlscan') diff --git a/net/ttlscan/Makefile b/net/ttlscan/Makefile new file mode 100644 index 000000000000..4aa3016b65c8 --- /dev/null +++ b/net/ttlscan/Makefile @@ -0,0 +1,33 @@ +# ex:ts=8 +# Ports collection makefile for: ttlscan +# Date created: Wed Apr 2, 2003 +# Whom: Michael L. Hostbaek (mich@freebsdcluster.org) +# +# $FreeBSD$ +# + +PORTNAME= ttlscan +PORTVERSION= 0.1.1 +CATEGORIES= net +MASTER_SITES= http://www.raisdorf.net/files/code/ + +MAINTAINER= mich@freebsdcluster.org +COMMENT= A tcp based scanner, showing ttl responses + +BUILD_DEPENDS= ${LOCALBASE}/include/dnet.h:${PORTSDIR}/net/libdnet + +LDFLAGS+= -lpcap -ldnet + +do-build: + (cd ${WRKSRC} && ${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib -D_XOPEN_SOURCE \ + `libnet-config --defines` ${PORTNAME}.c -o ${PORTNAME} `libnet-config --libs` ${LDFLAGS}) + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.endif + +.include diff --git a/net/ttlscan/distinfo b/net/ttlscan/distinfo new file mode 100644 index 000000000000..86162585233b --- /dev/null +++ b/net/ttlscan/distinfo @@ -0,0 +1 @@ +MD5 (ttlscan-0.1.1.tar.gz) = 2951a7ca5a1efef74215f6a54c67abb5 diff --git a/net/ttlscan/pkg-descr b/net/ttlscan/pkg-descr new file mode 100644 index 000000000000..c471143177bb --- /dev/null +++ b/net/ttlscan/pkg-descr @@ -0,0 +1,12 @@ +ttlscan is a libnet/libpcap based program that sends a TCP SYN packet to +each port of the host given via the command line. The answer is sniffed +of the wire. I use it to detect hosts that fake services by forwarding +packets to another host (behind a firewall). By reading header files +like the TTL, window size and IPID you might be able to see the OS +running on the host behind the firewall. + +WWW: http://www.raisdorf.net/projects/ttlscan +AUTHOR: Hendrik Scholz + + - Michael L. Hostbaek + mich@freebsdcluster.org diff --git a/net/ttlscan/pkg-plist b/net/ttlscan/pkg-plist new file mode 100644 index 000000000000..8b947910f075 --- /dev/null +++ b/net/ttlscan/pkg-plist @@ -0,0 +1,3 @@ +bin/ttlscan +%%PORTDOCS%%share/doc/ttlscan/README +%%PORTDOCS%%@dirrm /share/doc/ttlscan -- cgit v1.2.3