Ignore:
Timestamp:
06/18/2010 01:39:41 AM (3 years ago)
Author:
sullo
Message:

Fix for #133: regular expression matching causes errors.
Removed char_escape and some other regexs in favor of the faster quotemeta().
Optimized rm_active_content() a little by shuffling code and reducing some mem copies/regexs. Needs more work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/nikto_apacheusers.plugin

    r392 r449  
    4848    (my $result, $content) = nfetch($mark, "/~root", "GET", "", "", "", "apacheusers: known user"); 
    4949 
    50     $content = char_escape($content); 
     50    $content = quotemeta($content); 
    5151    if ($content =~ /forbidden/i)    # good on "root" 
    5252    { 
     
    5454                                        "GET", "", "", "", "apacheusers: invalid user"); 
    5555 
    56         $content = char_escape($content); 
     56        $content = quotemeta($content); 
    5757        if ($content !~ /forbidden/i)    # Good, it gave an error instead of forbidden 
    5858        { 
Note: See TracChangeset for help on using the changeset viewer.