WordPress.org

Plugin Directory

Changeset 558081


Ignore:
Timestamp:
06/14/12 18:35:59 (22 months ago)
Author:
duck_
Message:

Check for unknown files in the wp-includes/wp-admin directories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • exploit-scanner/trunk/exploit-scanner.php

    r534130 r558081  
    698698                        ) ); 
    699699                    } 
     700                } else { 
     701                    list( $dir ) = explode( '/', $file ); 
     702                    if ( $dir == 'wp-includes' || $dir == 'wp-admin' ) { 
     703                        $severity = substr( $file, -4 ) == '.php' ? 'severe' : 'warning'; 
     704                        $this->add_result( $severity, array( 
     705                            'loc' => $file, 
     706                            'desc' => 'Unknown file found in wp-includes/ or wp-admin/ directory.' 
     707                        ) ); 
     708                    } 
    700709                } 
    701710 
Note: See TracChangeset for help on using the changeset viewer.