Changeset 448


Ignore:
Timestamp:
06/17/2010 04:03:34 AM (3 years ago)
Author:
sullo
Message:

More regex optimizations

Location:
trunk/plugins
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/nikto_msgs.plugin

    r344 r448  
    5454    # Special stuff to pull information from results 
    5555    # McAfee ePO 
    56     if ($mark->{'banner'} =~ /(Agent-ListenServer-HttpSvr\/1\.0)\b/i) { 
     56    if ($mark->{'banner'} =~ /Agent-ListenServer-HttpSvr\/1\.0\b/i) { 
    5757        my ($RES, $CONTENT) = 
    5858          nfetch($mark, "/", "GET", "", "", "", "msgs: Agent-ListenServer-HttpSvr"); 
     
    7373 
    7474    # HP WBEM 
    75     if ($mark->{'banner'} =~ /(CompaqHTTPServer)/i) { 
     75    if ($mark->{'banner'} =~ /CompaqHTTPServer/i) { 
    7676        my ($RES, $CONTENT) = 
    7777          nfetch($mark, "/cpqlogin.htm", "GET", "", "", "", "msgs: CompaqHTTPServer"); 
  • trunk/plugins/nikto_robots.plugin

    r439 r448  
    5353                chomp($line); 
    5454                $line =~ s/\#.*$//; 
    55                 $line =~ s/(^\s+|\s+$)//g; 
     55                $line =~ s/(?:^\s+|\s+$)//g; 
    5656                $line =~ s/\s+/ /g; 
    5757                $line =~ s/\\t/ /g; 
    58                 $line =~ s/(dis)?allow(\\:)?( )?//i; 
     58                $line =~ s/(?:dis)?allow(?:\\:)?\s?//i; 
    5959                $line =~ s/\*//g; 
    6060                $line =~ s/\/+/\//g; 
  • trunk/plugins/nikto_tests.plugin

    r439 r448  
    6262                  if $CLI{'display'} =~ /3/; 
    6363                } 
    64             elsif ($res =~ /30([0-3]|7)/) { 
     64            elsif ($res =~ /30(?:[0-3]|7)/) { 
    6565                nprint(  "+ $uri - Redirects ($res) to " 
    6666                       . $headers{'location'} 
Note: See TracChangeset for help on using the changeset viewer.