Welcome to Geeklog, Anonymous Friday, March 29 2024 @ 02:11 am EDT

Geeklog Forums

Security : Check your index.php


Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/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:
Text 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 EDT. The time is now 02:11 am.

  • 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