Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 08:56 am EST
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:
//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
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
18
19
Quote
All times are EST. The time is now 08:56 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