aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-09-04 21:28:15 +0800
committeredwin <edwin@FreeBSD.org>2003-09-04 21:28:15 +0800
commita8242e463d7239a5429de158aaaf0d1086b9566f (patch)
tree20ec77c04dee25125e90caeb108be5876dcf0feb
parent2f4e31df883575c83e9cc9e5047cd6f5a756241d (diff)
downloadfreebsd-ports-gnome-a8242e463d7239a5429de158aaaf0d1086b9566f.tar.gz
freebsd-ports-gnome-a8242e463d7239a5429de158aaaf0d1086b9566f.tar.zst
freebsd-ports-gnome-a8242e463d7239a5429de158aaaf0d1086b9566f.zip
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 <Yonatan@xpert.com>
-rw-r--r--security/Makefile1
-rw-r--r--security/hmap/Makefile44
-rw-r--r--security/hmap/distinfo1
-rw-r--r--security/hmap/files/patch-hmap.py11
-rw-r--r--security/hmap/pkg-descr6
-rw-r--r--security/hmap/pkg-plist36
6 files changed, 99 insertions, 0 deletions
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 <Yonatan@xpert.com>
+#
+# $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 <bsd.port.mk>
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