Traffic Generators

From Network Security Wiki


Siege

Siege is an open source stress / regression test and benchmark utility.

siege -c100 -t30S -d10 -b -v aman.info.tm

Some Extensions

--header="Cookie: SESSb43b2d1d084de3872c89b0b125b64564=Jafuk06rppYAXIxWaU0LY2VmqxN997DsKU3BSgfArCM" 
-f /path/to/some-urls.txt

The some-urls.txt file is just a simple list of URLs on newlines:

http://www.mywebsite.com/about-us
http://www.mywebsite.com/contact-us

Httperf

Installation:

sudo apt install httperf

Usage:

httperf --server waf.avitest.com --port 80 --num-conns 100 --rate 10 --timeout 1

Curl with Parallel

curl -s -o /dev/null -w "%{http_code}" http://waf.avitest.com
seq 100 | parallel -j0 curl -s -o /dev/null -w "%{http_code}" http://waf.avitest.com


Apache Benchmark

ab -t 1 -n 1000 -c 300 http://waf.avitest.com/
curl -s -o /dev/null -w "%{http_code}" http://waf.avitest.com/