Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Feb 2005 14:03:23 +0100 (CET)
From:      Christian Brueffer <chris@unixpages.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/77348: [PATCH] Update security/scanssh 1.6b -> 2.0
Message-ID:  <20050210130323.C4DA228439@haakonia.hitnet.rwth-aachen.de>
Resent-Message-ID: <200502101310.j1ADAN6h004534@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         77348
>Category:       ports
>Synopsis:       [PATCH] Update security/scanssh 1.6b -> 2.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 10 13:10:22 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Christian Brueffer
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
	
>Description:
	This patch updates security/scanssh to version 2.0.

	The program currently crashes 5.x and 6.x SMP machines,
	this update will hopefully help people to easily reproduce
	these crashes.

	Changelog:
	o Supports open proxy detection.
	o High performance by using libevent.
>How-To-Repeat:
	
>Fix:

	



--- scanssh.diff begins here ---
diff -ruN /usr/ports/security/scanssh/Makefile scanssh/Makefile
--- /usr/ports/security/scanssh/Makefile	Wed Feb  9 14:02:01 2005
+++ scanssh/Makefile	Wed Feb  9 14:04:14 2005
@@ -6,24 +6,24 @@
 #
 
 PORTNAME=	scanssh
-PORTVERSION=	1.60b
-PORTREVISION=	1
+PORTVERSION=	2.0
+PORTREVISION=	0
 CATEGORIES=	security net
 MASTER_SITES=	http://www.monkey.org/~provos/
-DISTNAME=	${PORTNAME}-1.6b
 
 MAINTAINER=	kris@FreeBSD.org
-COMMENT=	Scanssh scans a subnet and reports the version of SSH installed
+COMMENT=	Scans networks for open proxies, SSH, Web and SMTP servers
+
+BUILD_DEPENDS=	${LOCALBASE}/lib/libdnet.a:${PORTSDIR}/net/libdnet \
+		${LOCALBASE}/lib/libevent.a:${PORTSDIR}/devel/libevent
 
 GNU_CONFIGURE=	YES
+PLIST_FILES=	bin/scanssh
 
 MAN1=		scanssh.1
-WRKSRC=		${WRKDIR}/scanssh
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/scanssh ${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/scanssh.1 ${PREFIX}/man/man1
-	${MKDIR} ${PREFIX}/share/scanssh/
-	${TOUCH} ${PREFIX}/share/scanssh/exclude.list
 
 .include <bsd.port.mk>
diff -ruN /usr/ports/security/scanssh/distinfo scanssh/distinfo
--- /usr/ports/security/scanssh/distinfo	Wed Feb  9 14:02:01 2005
+++ scanssh/distinfo	Tue Feb  8 23:55:43 2005
@@ -1,2 +1,2 @@
-MD5 (scanssh-1.6b.tar.gz) = b0b7a4e6953a878b188156449ae0750f
-SIZE (scanssh-1.6b.tar.gz) = 51064
+MD5 (scanssh-2.0.tar.gz) = 994f214868fcfac1e86009a19b28985b
+SIZE (scanssh-2.0.tar.gz) = 85694
diff -ruN /usr/ports/security/scanssh/files/patch-aa scanssh/files/patch-aa
--- /usr/ports/security/scanssh/files/patch-aa	Wed Feb  9 14:02:01 2005
+++ scanssh/files/patch-aa	Thu Jan  1 01:00:00 1970
@@ -1,10 +0,0 @@
---- exclude.c.orig	Fri Sep  8 02:53:19 2000
-+++ exclude.c	Fri Sep  8 02:53:34 2000
-@@ -40,7 +40,7 @@
- 
- #include "exclude.h"
- 
--char *excludefile = "exclude.list";
-+char *excludefile = PREFIX "/share/scanssh/exclude.list";
- struct exclude_list excludequeue;
- struct exclude_list rndexclqueue;
diff -ruN /usr/ports/security/scanssh/files/patch-ab scanssh/files/patch-ab
--- /usr/ports/security/scanssh/files/patch-ab	Wed Feb  9 14:02:01 2005
+++ scanssh/files/patch-ab	Thu Jan  1 01:00:00 1970
@@ -1,10 +0,0 @@
---- Makefile.in.orig	Fri Mar  9 19:07:36 2001
-+++ Makefile.in	Fri Mar  9 19:07:57 2001
-@@ -6,7 +6,7 @@
- VPATH= @srcdir@
- 
- CC= @CC@
--CFLAGS= @CFLAGS@ @DEFS@ -I. -I$(srcdir) -I$(srcdir)/missing @PCAPINC@ -D_BSD_SOURCE
-+CFLAGS= @CFLAGS@ @DEFS@ -I. -I$(srcdir) -I$(srcdir)/missing @PCAPINC@ -D_BSD_SOURCE -DPREFIX=\"@prefix@\"
- LDFLAGS= @LDFLAGS@
- LIBS= @LIBS@ @PCAPLIB@
diff -ruN /usr/ports/security/scanssh/files/patch-pcapu.c scanssh/files/patch-pcapu.c
--- /usr/ports/security/scanssh/files/patch-pcapu.c	Wed Feb  9 14:02:01 2005
+++ scanssh/files/patch-pcapu.c	Thu Jan  1 01:00:00 1970
@@ -1,16 +0,0 @@
-
-$FreeBSD: ports/security/scanssh/files/patch-pcapu.c,v 1.1 2003/03/03 23:37:22 naddy Exp $
-
---- pcapu.c.orig	Mon Mar  3 17:55:38 2003
-+++ pcapu.c	Mon Mar  3 17:56:03 2003
-@@ -47,8 +47,8 @@
- #include "config.h"
- 
- struct phdr { 
--  unsigned long saddr;
--  unsigned long daddr;
-+  in_addr_t saddr;
-+  in_addr_t daddr;
-   char zero;
-   unsigned char protocol;
-   unsigned short length;
diff -ruN /usr/ports/security/scanssh/pkg-descr scanssh/pkg-descr
--- /usr/ports/security/scanssh/pkg-descr	Wed Feb  9 14:02:01 2005
+++ scanssh/pkg-descr	Wed Feb  9 00:27:51 2005
@@ -1,3 +1,8 @@
-Scanssh scans a subnet and reports the version of SSH installed.
+ScanSSH supports scanning a list of addresses and networks for open proxies,
+SSH protocol servers, Web and SMTP servers. Where possible ScanSSH, displays
+the version number of the running services. ScanSSH protocol scanner supports
+random selection of IP addresses from large network ranges and is useful for
+gathering statistics on the deployment of SSH protocol servers in a company
+or the Internet as whole.
 
 WWW: http://www.monkey.org/~provos/
diff -ruN /usr/ports/security/scanssh/pkg-plist scanssh/pkg-plist
--- /usr/ports/security/scanssh/pkg-plist	Wed Feb  9 14:02:01 2005
+++ scanssh/pkg-plist	Thu Jan  1 01:00:00 1970
@@ -1,3 +0,0 @@
-bin/scanssh
-share/scanssh/exclude.list
-@dirrm share/scanssh
--- scanssh.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050210130323.C4DA228439>