mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-12 11:21:50 +01:00
SlowHTTPTest is a highly configurable tool that simulates some Application Layer Denial of Service attacks. It implements most common low-bandwidth Application Layer DoS attacks, such as slow-loris, Slow HTTP POST, Slow Read attack (based on TCP persist timer exploit) by draining concurrent connections pool, as well as Apache Range Header attack by causing very significant memory and CPU usage on the server. http://code.google.com/p/slowhttptest/ ease enter the commit message for your changes. Lines starting
44 lines
940 B
Plaintext
44 lines
940 B
Plaintext
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=slowhttptest
|
|
pkgver=1.5
|
|
pkgrel=0
|
|
pkgdesc="An application Layer DoS attack simulator"
|
|
url="http://code.google.com/p/slowhttptest"
|
|
arch="all"
|
|
license="Apache2"
|
|
depends=""
|
|
depends_dev=""
|
|
makedepends="openssl-dev"
|
|
install=""
|
|
subpackages="$pkgname-doc"
|
|
source="http://slowhttptest.googlecode.com/files/$pkgname-$pkgver.tar.gz"
|
|
|
|
_builddir="$srcdir"/$pkgname-$pkgver
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
./configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/share/man \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make DESTDIR="$pkgdir" install || return 1
|
|
rm -f "$pkgdir"/usr/lib/*.la
|
|
}
|
|
|
|
md5sums="1437fdac96e99305f765a7f0b075b006 slowhttptest-1.5.tar.gz"
|