Traffic Generators: Difference between revisions

From Network Security Wiki
Content added Content deleted
No edit summary
Line 7: Line 7:


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


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


{{UC}}
{{UC}}

= 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/

Revision as of 09:44, 25 May 2018


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
        This section is under construction.

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/