From ca82e2b1ed68b430aabeb4fae94dd1bf45cbec60 Mon Sep 17 00:00:00 2001 From: Niels Heinen Date: Wed, 10 Mar 2010 22:07:09 +0000 Subject: [PATCH] OWASP WebScarab is aframework for analysing HTTP and HTTPS web application traffic Approved by: itetcu (mentor) WWW: http://www.owasp.org/index.php/Category:OWASP_WebScarab_Project --- security/Makefile | 1 + security/webscarab/Makefile | 52 +++++++++++++++++++++++++++ security/webscarab/distinfo | 3 ++ security/webscarab/files/webscarab.sh | 15 ++++++++ security/webscarab/pkg-descr | 8 +++++ security/webscarab/pkg-plist | 20 +++++++++++ 6 files changed, 99 insertions(+) create mode 100644 security/webscarab/Makefile create mode 100644 security/webscarab/distinfo create mode 100644 security/webscarab/files/webscarab.sh create mode 100644 security/webscarab/pkg-descr create mode 100644 security/webscarab/pkg-plist diff --git a/security/Makefile b/security/Makefile index 2654c5621ff6..77748b8384ce 100644 --- a/security/Makefile +++ b/security/Makefile @@ -859,6 +859,7 @@ SUBDIR += w3af SUBDIR += wapiti SUBDIR += webfwlog + SUBDIR += webscarab SUBDIR += wipe SUBDIR += xca SUBDIR += xinetd diff --git a/security/webscarab/Makefile b/security/webscarab/Makefile new file mode 100644 index 000000000000..79cad15cc777 --- /dev/null +++ b/security/webscarab/Makefile @@ -0,0 +1,52 @@ +# New ports collection makefile for: webscarab +# Date created: 2010-03-08 +# Whom: Niels Heinen +# +# $FreeBSD$ +# + +PORTNAME= webscarab +PORTVERSION= 20090427 +CATEGORIES= security www java +MASTER_SITES= ${MASTER_SITE_LOCAL} \ + http://people.freebsd.org/~niels/distfiles/ +MASTER_SITE_SUBDIR= niels +DISTNAME= ${PORTNAME}-${PORTVERSION} + +MAINTAINER= niels@FreeBSD.org +COMMENT= Framework for analysing HTTP and HTTPS web application traffic + +USE_ZIP= YES +USE_JAVA= YES +JAVA_VERSION= 1.4+ +NO_BUILD= yes +WRKSRC= ${WRKDIR}/${DISTNAME}-1304 +DATADIR= ${JAVASHAREDIR}/${PORTNAME} + +PORTDOCS= README LICENSE ChangeLog + +.include + +post-extract: + ${RM} ${WRKSRC}/lib/W32WinInet.dll + +pre-install: + @${SED} -e 's:%%PATH%%:${DATADIR}/:' \ + -e 's:%%JAVA_CMD%%:${JAVA}:' \ + -e 's:%%WEBSCARAB%%:${DATADIR}/${PORTNAME}.jar:' \ + < ${FILESDIR}/${PORTNAME}.sh > ${WRKDIR}/${PORTNAME} + +do-install: + ${MKDIR} ${DATADIR}/lib + ${INSTALL_DATA} ${WRKSRC}/lib/* ${DATADIR}/lib + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.jar ${DATADIR} + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}_lite +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +. for i in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +. endfor +.endif + +.include diff --git a/security/webscarab/distinfo b/security/webscarab/distinfo new file mode 100644 index 000000000000..f470b2e3f02c --- /dev/null +++ b/security/webscarab/distinfo @@ -0,0 +1,3 @@ +MD5 (webscarab-20090427.zip) = 1e1ddac4d8502aa11b86a13e3d9a3888 +SHA256 (webscarab-20090427.zip) = e61a7665aa09d593150a8d3bda6636c169a4883c738d8625f9f16119521471d0 +SIZE (webscarab-20090427.zip) = 3817110 diff --git a/security/webscarab/files/webscarab.sh b/security/webscarab/files/webscarab.sh new file mode 100644 index 000000000000..cdc29dcbcc52 --- /dev/null +++ b/security/webscarab/files/webscarab.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +TEST=`/usr/bin/basename $0` +OPTIONS="-DWebScarab.lite=false" + +if [ "${TEST}" = "webscarab_lite" ]; then + OPTIONS="" +fi + + +cd %%PATH%% +exec %%JAVA_CMD%% ${OPTIONS} -jar -Xmx256m %%WEBSCARAB%% "$@" diff --git a/security/webscarab/pkg-descr b/security/webscarab/pkg-descr new file mode 100644 index 000000000000..1145afe32386 --- /dev/null +++ b/security/webscarab/pkg-descr @@ -0,0 +1,8 @@ +WebScarab is a framework for analysing applications that communicate +using the HTTP and HTTPS protocols. In its most common usage, +WebScarab operates as an intercepting proxy, allowing the user to +review and modify requests created by the browser before they are +sent to the server, and to review and modify responses returned +from the server before they are received by the browser. + +WWW: http://www.owasp.org/index.php/Category:OWASP_WebScarab_Project diff --git a/security/webscarab/pkg-plist b/security/webscarab/pkg-plist new file mode 100644 index 000000000000..66d9fa976779 --- /dev/null +++ b/security/webscarab/pkg-plist @@ -0,0 +1,20 @@ +bin/webscarab +bin/webscarab_lite +%%DATADIR%%/lib/tagsoup-1.0rc2.jar +%%DATADIR%%/lib/bsh-2.0b1.jar +%%DATADIR%%/lib/chardet.jar +%%DATADIR%%/lib/commons-logging-1.0.4.jar +%%DATADIR%%/lib/concurrent.jar +%%DATADIR%%/lib/flex-messaging-common.jar +%%DATADIR%%/lib/flex-messaging-core.jar +%%DATADIR%%/lib/flex-messaging-remoting.jar +%%DATADIR%%/lib/help.jnlp +%%DATADIR%%/lib/htmlparser.jar +%%DATADIR%%/lib/jcommon-0.8.7.jar +%%DATADIR%%/lib/jfreechart-0.9.12.jar +%%DATADIR%%/lib/jhall-2.0_02.jar +%%DATADIR%%/lib/openamf.jar +%%DATADIR%%/lib/bsf-2.3.0.jar +%%DATADIR%%/webscarab.jar +@dirrm %%DATADIR%%/lib +@dirrm %%DATADIR%%/