Plugin Directory

Changeset 2870801


Ignore:
Timestamp:
02/24/2023 11:14:03 PM (3 years ago)
Author:
aixeiger
Message:

add support for more files recognition and fix the recognition of the error_log file

Location:
files-fence/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • files-fence/trunk/README.txt

    r2825466 r2870801  
    33Tags: security, files security, files, checksum security, files integrity
    44Tested up to: 6.1
    5 Stable tag: 0.1.2
     5Stable tag: 0.1.3
    66Requires PHP: 7.4
    77License: GPLv2 or later
     
    2424
    25250.1.1       03-nov-22   fix: update the scanned version on wp update, and add .user.ini, php.ini, error_log to the ignored files
     260.1.2       23-feb-22   Add the Processing time, and fix properly the recognition of the error_log file in the multiple folders, and recognition of the php.ini and .htaccess file
  • files-fence/trunk/filesfence.php

    r2825466 r2870801  
    66 * Author: TocinoDev
    77 * Author URI: https://tocino.mx
    8  * Version: 0.1.2
     8 * Version: 0.1.3
    99 * Tested up to: 6.1
    1010 * Requires PHP: 7.4
  • files-fence/trunk/src/Admin.php

    r2825466 r2870801  
    3232            <h4>Current version of WordPress: <?php echo esc_html(get_bloginfo('version')); ?></h4>
    3333            <h4>Current version checked of WordPress: <?php echo esc_html(get_option('filesfence_wp_version')); ?></h4>
     34            <h4>Processing Time: <?php echo round(get_option('filesfence_search_main_files', 0), 3); ?></h4>
    3435            <h3>Unknown or Modified Files (<?php echo count($unknown_checksums); ?>)</h3>
    3536            <table class="wp-list-table widefat fixed striped table-view-list posts">
     
    3738                    <tr>
    3839                        <td style="width: 700px;">File Name</td>
    39                         <td style="width: 120px">Status</td>
     40                        <td style="width: 120px">Status or Type</td>
    4041                        <td>MD5 Hash</td>
    4142                        <td>MD5 Hash Original</td>
     
    5556                            && $data['md5_hash'] !== $known_checksums[$filename]['md5_hash_original']){
    5657                            echo 'Modified Known File';
    57                         } else if($filename == 'error_log'){
    58                             echo 'Modified Log File';
     58                        } else if(str_ends_with($filename, 'error_log')){
     59                            echo 'Modified LOG File';
     60                        } else if($filename == 'php.ini'){
     61                            echo 'PHP Configuration File';
     62                        } else if($filename == '.htaccess'){
     63                            echo 'Server Configuration File';
    5964                        } else if(isset($ignored_checksums[$filename]['md5_hash_original'])
    6065                            && $data['md5_hash'] !== $ignored_checksums[$filename]['md5_hash_original']){
  • files-fence/trunk/src/Scanner.php

    r2811314 r2870801  
    2424        $this->process_files(ABSPATH, '');
    2525
    26         // this is for testing and benck purposes
     26        // this is for testing and benchmark purposes
    2727        $end = microtime(true);
    2828        $time = $end - $start;
Note: See TracChangeset for help on using the changeset viewer.