ports/57161: New port: security/doscan version 0.1.6
Janos Mohacsi
mohacsi at niif.hu
Wed Sep 24 12:10:18 UTC 2003
>Number: 57161
>Category: ports
>Synopsis: New port: security/doscan version 0.1.6
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 24 05:10:14 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: Janos Mohacsi
>Release: FreeBSD 5.1-CURRENT i386
>Organization:
NIIF
>Environment:
System: FreeBSD norfolk.ki.iif.hu 5.1-CURRENT FreeBSD 5.1-CURRENT #3: Wed Sep 24 06:43:56 CEST 2003 root at norfolk.ki.iif.hu:/usr/obj/usr/src/sys/NORFOLK i386
>Description:
Doscan is a tool to quickly scan network for machines listening on a
TCP port. It can scan for Microsoft DCOM vulnerability.
>How-To-Repeat:
Apply this shar.
>Fix:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# doscan
# doscan/pkg-plist
# doscan/pkg-descr
# doscan/Makefile
# doscan/distinfo
# doscan/files
# doscan/files/patch-src::subnets.c
#
echo c - doscan
mkdir -p doscan > /dev/null 2>&1
echo x - doscan/pkg-plist
sed 's/^X//' >doscan/pkg-plist << 'END-of-doscan/pkg-plist'
Xbin/doscan
X%%PORTDOCS%%%%DOCSDIR%%/README
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-doscan/pkg-plist
echo x - doscan/pkg-descr
sed 's/^X//' >doscan/pkg-descr << 'END-of-doscan/pkg-descr'
XDoscan is a tool to quickly scan your network for machines listening on a
XTCP port, opening thousands of TCP connections in parallel.
XFeatures
X High scanning rate: five to ten minutes per 100,000 addresses (which
Xare sparsely populated with hosts), with rather conservative timeouts.
X Load distribution: doscan scans the addresses in a seemingly random
Xorder. If your scan host is connected to a central router, this ensures
Xthat the load is distributed across your network, and you are
Xstress-tesing just a single router, and not your edge devices.
X Low memory consumption: memory usage is proportional to the number
Xof hosts which have responded so far, and to the number of parallel
Xconnections. The total number of addresses does not influence memory usage
Xin any way.
X Can collect responses: doscan optionally records data which is sent
Xby the hosts which are being scanned. You can even specify a regular
Xexpresson to extract part of a server banner, and a message to send to
Xtrigger a response (great for determining HTTP server versions).
X Extensibility: It is possible to add special handlers for TCP-based
Xprotocols, using a straightforward interface.
X It supports scanning the vulnerable Microsoft DCOM implementation.
X
XWWW: http://www.enyo.de/fw/software/doscan/
X
XJanos Mohacsi <janos.mohacsi at bsd.hu>
END-of-doscan/pkg-descr
echo x - doscan/Makefile
sed 's/^X//' >doscan/Makefile << 'END-of-doscan/Makefile'
X# New ports collection makefile for: doscan
X# Date created: 24 Sept 2003
X# Whom: Janos.Mohacsi at bsd.hu
X#
X# $FreeBSD$
X#
X
XPORTNAME= doscan
XPORTVERSION= 0.1.6
XCATEGORIES= security net
XMASTER_SITES= http://static.enyo.de/fw/releases/doscan/
X
XMAINTAINER= Janos.Mohacsi at bsd.hu
XCOMMENT= Tool to quickly scan your network for machines listening on a TCP port
X
XLIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
X
XGNU_CONFIGURE= yes
XUSE_GMAKE= yes
XDOC_FILES= README
XMAN1= doscan.1
X
Xpost-install:
X.ifndef(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X.for file in ${DOC_FILES}
X @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-doscan/Makefile
echo x - doscan/distinfo
sed 's/^X//' >doscan/distinfo << 'END-of-doscan/distinfo'
XMD5 (doscan-0.1.6.tar.gz) = e915c705c69e76d30f65333ea39625b1
END-of-doscan/distinfo
echo c - doscan/files
mkdir -p doscan/files > /dev/null 2>&1
echo x - doscan/files/patch-src::subnets.c
sed 's/^X//' >doscan/files/patch-src::subnets.c << 'END-of-doscan/files/patch-src::subnets.c'
X--- src/subnets.c.orig Wed Sep 24 13:28:27 2003
X+++ src/subnets.c Wed Sep 24 13:29:59 2003
X@@ -37,7 +37,6 @@
X
X #include <stdio.h>
X #include <stdlib.h>
X-#include <malloc.h>
X
X static ipv4_prefix_t *subnets = 0;
X /* list of subnets, terminated by the 0/0 prefix */
END-of-doscan/files/patch-src::subnets.c
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list