From a8242e463d7239a5429de158aaaf0d1086b9566f Mon Sep 17 00:00:00 2001 From: edwin Date: Thu, 4 Sep 2003 13:28:15 +0000 Subject: New port: security/hmap - web server fingerprinting tool Web server fingerprinting tool, used to identify web servers that changed thier banners. PR: ports/50754 Submitted by: Yonatan@xpert.com --- security/Makefile | 1 + security/hmap/Makefile | 44 +++++++++++++++++++++++++++++++++++++++ security/hmap/distinfo | 1 + security/hmap/files/patch-hmap.py | 11 ++++++++++ security/hmap/pkg-descr | 6 ++++++ security/hmap/pkg-plist | 36 ++++++++++++++++++++++++++++++++ 6 files changed, 99 insertions(+) create mode 100644 security/hmap/Makefile create mode 100644 security/hmap/distinfo create mode 100644 security/hmap/files/patch-hmap.py create mode 100644 security/hmap/pkg-descr create mode 100644 security/hmap/pkg-plist diff --git a/security/Makefile b/security/Makefile index 14fc00e2de1f..fde4a25031a8 100644 --- a/security/Makefile +++ b/security/Makefile @@ -99,6 +99,7 @@ SUBDIR += hashish SUBDIR += heimdal SUBDIR += hlfl + SUBDIR += hmap SUBDIR += hostsentry SUBDIR += hping SUBDIR += hunch diff --git a/security/hmap/Makefile b/security/hmap/Makefile new file mode 100644 index 000000000000..5c4c5ed9e6ff --- /dev/null +++ b/security/hmap/Makefile @@ -0,0 +1,44 @@ +# Ports collection makefile for: hmap +# Date created: 29 Apr 2003 +# Whom: Yonatan +# +# $FreeBSD$ +# + +PORTNAME= hmap +PORTVERSION= 0.1 +CATEGORIES= security +MASTER_SITES= http://ujeni.murkyroc.com/hmap/code/current/ \ + http://wwwcsif.cs.ucdavis.edu/~leed/hmap/code/current/ +DISTNAME= ${PORTNAME} + +MAINTAINER= Yonatan@xpert.com +COMMENT= Web server fingerprinting utility + +RUN_DEPENDS= python:${PORTSDIR}/lang/python + +NO_WRKSUBDIR= yes +NO_BUILD= yes +USE_REINPLACE= yes + +pre-patch: + ${CP} ${WRKSRC}/hmap.py ${WRKSRC}/hmap.py.old + ${TR} -d "\r" < ${WRKSRC}/hmap.py.old > ${WRKSRC}/hmap.py + +post-patch: + ${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|' ${WRKSRC}/hmap.py + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/hmap.py ${PREFIX}/bin/ + ${MKDIR} ${PREFIX}/share/hmap/ +. for i in apache.1.3.12.win32 apache.2.0.44.win32 apache.1.3.14.win32 badblue.2.1.win32 apache.1.3.17.win32 dwhttpd.4.1a6.solaris.8 apache.1.3.22.win32 hpws.2.00.1454.solaris.8 apache.1.3.23.rhl.7.3 ibm_http_server.2.0.42.win32 apache.1.3.26.freebsd.4.6.2.r iis.5.0.win32 apache.1.3.26.solaris.8 jigsaw.2.0.5.win32 apache.1.3.27.freebsd.4.7 jigsaw.2.2.0.win32 apache.1.3.27.freebsd.5.0 jigsaw.2.2.2.solaris.8 apache.1.3.27.mac.10.1.5 ncsa.1.3.ultrix.4.4 apache.1.3.27.mac.10.2.4 thttpd.2.23beta1.freebsd.4.6.st apache.1.3.27.rhl.8.0 thttpd.2.23beta1.rhl.7.3 apache.1.3.9.win32 zope.2.6.0.solaris.8 apache.2.0.40.rhl.8.0 + ${INSTALL_DATA} ${WRKSRC}/known.servers/$i ${PREFIX}/share/hmap/ +. endfor +. if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +. for i in README BUGS GPL FAQS HIDING_GUIDE KNOWN_TESTS + ${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR} +. endfor +. endif + +.include diff --git a/security/hmap/distinfo b/security/hmap/distinfo new file mode 100644 index 000000000000..1ce0868dd2f0 --- /dev/null +++ b/security/hmap/distinfo @@ -0,0 +1 @@ +MD5 (hmap.tar.gz) = 83db5c76e7f466d0901a37616fc215f6 diff --git a/security/hmap/files/patch-hmap.py b/security/hmap/files/patch-hmap.py new file mode 100644 index 000000000000..b3a59c5db139 --- /dev/null +++ b/security/hmap/files/patch-hmap.py @@ -0,0 +1,11 @@ +--- hmap.py.orig Wed Apr 9 14:47:16 2003 ++++ hmap.py Wed Apr 9 14:50:45 2003 +@@ -859,7 +859,7 @@ + sys.exit() + + known_servers = [] +-for f in glob.glob('known.servers/*'): ++for f in glob.glob('PREFIX/share/hmap/*'): + ksf = file(f) + ks = eval(ksf.read()) + known_servers.append(ks) diff --git a/security/hmap/pkg-descr b/security/hmap/pkg-descr new file mode 100644 index 000000000000..917acb125032 --- /dev/null +++ b/security/hmap/pkg-descr @@ -0,0 +1,6 @@ +"hmap" is a tool for fingerprinting web servers. Basically, it collects +a number of characteristics and compares them with known profiles to find +a closest match. The closest match is its best guess for the identity of +the server. + +WWW: http://ujeni.murkyroc.com/hmap/ diff --git a/security/hmap/pkg-plist b/security/hmap/pkg-plist new file mode 100644 index 000000000000..98c863404aab --- /dev/null +++ b/security/hmap/pkg-plist @@ -0,0 +1,36 @@ +bin/hmap.py +share/hmap/apache.1.3.12.win32 +share/hmap/apache.2.0.44.win32 +share/hmap/apache.1.3.14.win32 +share/hmap/badblue.2.1.win32 +share/hmap/apache.1.3.17.win32 +share/hmap/dwhttpd.4.1a6.solaris.8 +share/hmap/apache.1.3.22.win32 +share/hmap/hpws.2.00.1454.solaris.8 +share/hmap/apache.1.3.23.rhl.7.3 +share/hmap/ibm_http_server.2.0.42.win32 +share/hmap/apache.1.3.26.freebsd.4.6.2.r +share/hmap/iis.5.0.win32 +share/hmap/apache.1.3.26.solaris.8 +share/hmap/jigsaw.2.0.5.win32 +share/hmap/apache.1.3.27.freebsd.4.7 +share/hmap/jigsaw.2.2.0.win32 +share/hmap/apache.1.3.27.freebsd.5.0 +share/hmap/jigsaw.2.2.2.solaris.8 +share/hmap/apache.1.3.27.mac.10.1.5 +share/hmap/ncsa.1.3.ultrix.4.4 +share/hmap/apache.1.3.27.mac.10.2.4 +share/hmap/thttpd.2.23beta1.freebsd.4.6.st +share/hmap/apache.1.3.27.rhl.8.0 +share/hmap/thttpd.2.23beta1.rhl.7.3 +share/hmap/apache.1.3.9.win32 +share/hmap/zope.2.6.0.solaris.8 +share/hmap/apache.2.0.40.rhl.8.0 +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/BUGS +%%PORTDOCS%%%%DOCSDIR%%/GPL +%%PORTDOCS%%%%DOCSDIR%%/FAQS +%%PORTDOCS%%%%DOCSDIR%%/HIDING_GUIDE +%%PORTDOCS%%%%DOCSDIR%%/KNOWN_TESTS +%%PORTDOCS%%@dirrm share/doc/hmap +@dirrm share/hmap -- cgit