Changeset 499


Ignore:
Timestamp:
08/09/2010 04:00:25 AM (3 years ago)
Author:
sullo
Message:

Output tweak and minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/nikto_subdomain.plugin

    r486 r499  
    4949 
    5050        # 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"); 
    5352        return; 
    5453    } 
    5554 
    5655    # 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\.//; 
    6257 
    6358    my $nocache_enabled = 0; 
     
    6964        # Use nfetch to minimize extra code 
    7065        # First we need to mangle the host. 
    71         my $newhost = $item->{'subdomain'} . "." . $host; 
    72         $mark->{'hostname'} = $newhost; 
     66        $mark->{'hostname'} = $item->{'subdomain'} . "." . $host; 
    7367        my ($result, $content, $error) = nfetch($mark, "/", "GET", "", "subdomain"); 
    7468 
    7569        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        } 
    7972 
    8073    }    # End foreach 
Note: See TracChangeset for help on using the changeset viewer.