diff options
author | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2009-07-13 22:40:20 +0000 |
---|---|---|
committer | Philip M. Gollucci <pgollucci@FreeBSD.org> | 2009-07-13 22:40:20 +0000 |
commit | 597ef6d7b7fbe197f71cd6ce8a0c4a097c907839 (patch) | |
tree | 5bf69fc8c5af872f007348bac01f7a77e27aae8e /benchmarks | |
parent | 01a2bc5b359f9e3a93bbab396c1c34b88ef4722f (diff) | |
download | ports-597ef6d7b7fbe197f71cd6ce8a0c4a097c907839.tar.gz ports-597ef6d7b7fbe197f71cd6ce8a0c4a097c907839.zip |
Notes
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/Makefile | 1 | ||||
-rw-r--r-- | benchmarks/slowloris/Makefile | 43 | ||||
-rw-r--r-- | benchmarks/slowloris/distinfo | 3 | ||||
-rw-r--r-- | benchmarks/slowloris/files/extra-nothreads | 7 | ||||
-rw-r--r-- | benchmarks/slowloris/pkg-descr | 12 |
5 files changed, 66 insertions, 0 deletions
diff --git a/benchmarks/Makefile b/benchmarks/Makefile index f841f822afe9..ec69b43062e6 100644 --- a/benchmarks/Makefile +++ b/benchmarks/Makefile @@ -53,6 +53,7 @@ SUBDIR += scimark2c SUBDIR += siege SUBDIR += sipp + SUBDIR += slowloris SUBDIR += stream SUBDIR += super-smack SUBDIR += sysbench diff --git a/benchmarks/slowloris/Makefile b/benchmarks/slowloris/Makefile new file mode 100644 index 000000000000..475005fd8f2c --- /dev/null +++ b/benchmarks/slowloris/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: slowloris +# Date created: Fri 03 Jul 2009 +# Whom: Alexey V. Degtyarev +# +# $FreeBSD$ +# + +PORTNAME= slowloris +PORTVERSION= 0.7 +CATEGORIES= benchmarks +MASTER_SITES= ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/ + +MAINTAINER= alexey@renatasystems.org +COMMENT= The low bandwidth, yet greedy and poisonous HTTP client + +USE_PERL5= yes +NO_BUILD= yes + +RUN_DEPENDS= p5-IO-Socket-SSL>=0:${PORTSDIR}/security/p5-IO-Socket-SSL \ + p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long + +PLIST_FILES= bin/slowloris + +.include <bsd.port.pre.mk> + +PERL_THREADS= no + +.if exists(${PERL}) +PERL_THREADS!= ${PERL} -V::usethreads +.if ${PERL_THREADS} == "'define';" +RUN_DEPENDS+= p5-threads-shared>=0:${PORTSDIR}/devel/p5-threads-shared +PERL_THREADS= yes +.endif +.endif + +.if ${PERL_THREADS} != "yes" +EXTRA_PATCHES+= ${FILESDIR}/extra-nothreads +.endif + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/slowloris.pl ${PREFIX}/bin/slowloris + +.include <bsd.port.post.mk> diff --git a/benchmarks/slowloris/distinfo b/benchmarks/slowloris/distinfo new file mode 100644 index 000000000000..d072f578f937 --- /dev/null +++ b/benchmarks/slowloris/distinfo @@ -0,0 +1,3 @@ +MD5 (slowloris-0.7.tar.gz) = e2f11939daccc1c623acda7ab337ec1b +SHA256 (slowloris-0.7.tar.gz) = 72aa764570bc5c7c97caca585cdc67dcfd731ca0184e01d81ceb3917e4b04ff9 +SIZE (slowloris-0.7.tar.gz) = 6306 diff --git a/benchmarks/slowloris/files/extra-nothreads b/benchmarks/slowloris/files/extra-nothreads new file mode 100644 index 000000000000..bc8d7eacde1d --- /dev/null +++ b/benchmarks/slowloris/files/extra-nothreads @@ -0,0 +1,7 @@ +--- slowloris.pl.orig 2009-06-29 18:05:27.000000000 +0400 ++++ slowloris.pl 2009-07-03 14:31:35.000000000 +0400 +@@ -96,2 +96,2 @@ +- use threads; +- use threads::shared; ++# use threads; ++# use threads::shared; diff --git a/benchmarks/slowloris/pkg-descr b/benchmarks/slowloris/pkg-descr new file mode 100644 index 000000000000..0e28659ef698 --- /dev/null +++ b/benchmarks/slowloris/pkg-descr @@ -0,0 +1,12 @@ +Slowloris both helps identify the timeout windows of a HTTP server or Proxy +server, can bypass httpready protection and ultimately performs a fairly low +bandwidth denial of service. It has the added benefit of allowing the server +to come back at any time (once the program is killed), and not spamming the +logs excessively. It also keeps the load nice and low on the target server, so +other vital processes don't die unexpectedly, or cause alarm to anyone who is +logged into the server for other reasons. + +The main audience using slowloris is of course a system administrators wanting +to measure their webserver's performance and vulnerability. + +WWW: http://ha.ckers.org/slowloris/ |