Changeset 499
- Timestamp:
- 08/09/2010 04:00:25 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/plugins/nikto_subdomain.plugin (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/nikto_subdomain.plugin
r486 r499 49 49 50 50 # Host is an IP address, don't bother! 51 nprint("Host supply to subdomain is an IP address or an unqualified hostname; skipping", 52 "v"); 51 nprint("Host given to subdomain is an IP address or an unqualified hostname; skipping", "v"); 53 52 return; 54 53 } 55 54 56 55 # Check if the start of the domain is "www" 57 if ($host =~ /^www\./) { 58 59 # Remove the www. 60 $host =~ s/^www\.//; 61 } 56 $host =~ s/^www\.//; 62 57 63 58 my $nocache_enabled = 0; … … 69 64 # Use nfetch to minimize extra code 70 65 # First we need to mangle the host. 71 my $newhost = $item->{'subdomain'} . "." . $host; 72 $mark->{'hostname'} = $newhost; 66 $mark->{'hostname'} = $item->{'subdomain'} . "." . $host; 73 67 my ($result, $content, $error) = nfetch($mark, "/", "GET", "", "subdomain"); 74 68 75 69 if ($error eq "") { 76 add_vulnerability($mark, "Subdomain $item->{'subdomain'} found", $item->{'nikto_id'}, 77 0); 78 } # End if 70 add_vulnerability($mark, "Subdomain $item->{'subdomain'} found", $item->{'nikto_id'}, 0); 71 } 79 72 80 73 } # End foreach
Note: See TracChangeset
for help on using the changeset viewer.