Code: Select all
yum -y install tcpdump
tcpdump -s 0 -i any host ip.of.web.server -w output.pcapCode: Select all
yum -y install tcpdump
tcpdump -s 0 -i any host ip.of.web.server -w output.pcapCode: Select all
yum -y install tcpdump
tcpdump -s 0 -i any host ip.of.web.server -w output.pcapCode: Select all
<case
id="1"
url="http://nagios01/nagiosxi/login.php"
verifyresponsecode="200"
verifypositive="con"
errormessage="Can not display the login page."
/>
Code: Select all
<testcasefile>testcasefilename.xml</testcasefile>
<useragent>WebInject Application Tester</useragent>
<timeout>10</timeout>
<globaltimeout>30</globaltimeout>
<reporttype>nagios</reporttype>
Code: Select all
<case
id="2"
method="post"
url="http://nagios01/nagiosxi/login.php" postbody="nsp=7231c3a4991c732416021511be5a3402a1ea744912b3461fbadc2b2a485db41c&page=auth&debug=&pageopt=login&redirect=%2Fnagiosxi%2Findex.php%3F&username=nagiosadmin&password=welcome&loginButton="
verifyresponsecode="302"
verifynegative="Authorization failed"
errormessage="Login failed."
/>
Code: Select all
/usr/local/nagiosxi/etc/components/webinject testcasefilename.xml configfilename.xml