Welcome to Geeklog Monday, December 09 2019 @ 07:27 pm EST

Geeklog Forums

Security : Check your index.php


Status: offline

::Ben

Forum User
Full Member
Registered: 14/01/05
Posts: 1569
Location:la rochelle, France
The main index.php file size is 16198 for the last geeklog release. If the size is different you have been hacked. To avoid this, add a fresh index.php in a secret folder out of your public_html folder, and add this code in your lib_custom.php file:
PHP Formatted Code

//Security check
$filename = $_CONF['path_html'] . 'index.php';
if (filesize($filename) <> 16198) {
        if (!copy($_CONF['path'] . 'my_secret_folder/index.php', $filename)) {
                $message = "Failed to replace index.php";
        } else {
                $message = "index.php was replaced!";
        }
        COM_mail($_CONF['site_mail'], $_CONF['site_name']. ' hacked!', $message);


Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

All times are EST. The time is now 07:27 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content