Skip to content

Commit

Permalink
Fix for #239, @Testid not being set in UA
Browse files Browse the repository at this point in the history
git-svn-id: http://svn2.assembla.com/svn/Nikto_2@752 cb301202-1dc0-4f3e-a0a0-cd5d3132b0a9
  • Loading branch information
jay.bahn committed May 31, 2012
1 parent 7f926d6 commit 4abc34a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions trunk/plugins/nikto_headers.plugin
Expand Up @@ -136,6 +136,8 @@ sub nikto_headers {
$request{'whisker'}->{'uri'} = "/";
$request{'whisker'}->{'method'} = "GET";
$request{'whisker'}{'version'} = "1.0";
$request{'User-Agent'} = $VARIABLES{'useragent'};
$request{'User-Agent'} =~ s/\@TESTID/headers:\ IIS\ internal\ IP/;

LW2::http_do_request_timeout(\%request, \%result);
$COUNTERS{'totalrequests'}++;
Expand All @@ -157,6 +159,8 @@ sub nikto_headers {
$request{'whisker'}->{'uri'} = "/images";
$request{'whisker'}->{'method'} = "GET";
$request{'whisker'}{'version'} = "1.0";
$request{'User-Agent'} = $VARIABLES{'useragent'};
$request{'User-Agent'} =~ s/\@TESTID/headers:\ IIS\ internal\ IP/;
delete $request{'whisker'}{'Host'};
delete $request{'Host'};
sleeper();
Expand Down Expand Up @@ -188,6 +192,8 @@ sub nikto_headers {
$request{'whisker'}->{'uri'} = ".";
$request{'whisker'}->{'method'} = "GET";
$request{'whisker'}{'version'} = "1.0";
$request{'User-Agent'} = $VARIABLES{'useragent'};
$request{'User-Agent'} =~ s/\@TESTID/headers:\ WebLogic\ internal\ IP/;
sleeper();
LW2::http_do_request_timeout(\%request, \%result);
$COUNTERS{'totalrequests'}++;
Expand Down

0 comments on commit 4abc34a

Please sign in to comment.