aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/slowloris
diff options
context:
space:
mode:
authorpgollucci <pgollucci@FreeBSD.org>2009-07-14 06:40:20 +0800
committerpgollucci <pgollucci@FreeBSD.org>2009-07-14 06:40:20 +0800
commit09010300eb602df4548bd0239753f075d219bf7c (patch)
tree298881961264947ca19e5a5ac7760a08780d8484 /benchmarks/slowloris
parentc22d1a570371b41134dd1dc43c06cbe6154d05be (diff)
downloadfreebsd-ports-gnome-09010300eb602df4548bd0239753f075d219bf7c.tar.gz
freebsd-ports-gnome-09010300eb602df4548bd0239753f075d219bf7c.tar.zst
freebsd-ports-gnome-09010300eb602df4548bd0239753f075d219bf7c.zip
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/ PR: ports/136281 Submitted by: Alexey V. Degtyarev
Diffstat (limited to 'benchmarks/slowloris')
-rw-r--r--benchmarks/slowloris/Makefile43
-rw-r--r--benchmarks/slowloris/distinfo3
-rw-r--r--benchmarks/slowloris/files/extra-nothreads7
-rw-r--r--benchmarks/slowloris/pkg-descr12
4 files changed, 65 insertions, 0 deletions
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/