You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 55 guest(s) and 5 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Index.php gives homeproblem after the site was hacked [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
mytime
Nuke Cadet
Nuke Cadet


Joined: Mar 08, 2006
Posts: 3


PostPosted: Sun Jun 11, 2006 1:40 am Reply with quoteBack to top

Hi All,

I'am running an old 6.7 phpnuke site, which I wanted already to update.
But there maybe custom programming work in it so I thought maybe best is to set up a test server at home first and test the upgrede on that one, before upgrading the live server.
But I had just my testserver ready (sme-server 7.0 RC3 from contribs.org) and had my own phpnuke running when the site got hacked.
A hacker replaced index.php and mysql.php (resides in db directory).
I restored those from a backup but now I got:



Code:

sql_fetchrow($db->sql_query("SELECT main_module from ".$prefix."_main")); $name = $row['main_module']; $home = 1; if ($httpref==1) { $referer = $_SERVER["HTTP_REFERER"]; $referer = htmlspecialchars(strip_tags($referer)); if ($referer=="" OR eregi("^unknown", $referer) OR substr("$referer",0,strlen($nukeurl))==$nukeurl OR eregi("^bookmark",$referer)) { } else { $result = $db->sql_query("INSERT INTO ".$prefix."_referer VALUES (NULL, '$referer')"); } $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_referer")); if($numrows>=$httprefmax) { $result2 = $db->sql_query("DELETE FROM ".$prefix."_referer"); } } if (!isset($mop)) { $mop="modload"; } if (!isset($mod_file)) { $mod_file="index"; } $name = trim($name); $file = trim($file); $mod_file = trim($mod_file); $mop = trim($mop); if (ereg("\.\.",$name) || ereg("\.\.",$file) || ereg("\.\.",$mod_file) || ereg("\.\.",$mop)) { echo "You are so cool..."; } else { $ThemeSel = get_theme(); if (file_exists("themes/$ThemeSel/module.php")) { include("themes/$ThemeSel/module.php"); if (is_active("$default_module") AND file_exists("modules/$default_module/".$mod_file.".php")) { $name = $default_module; } } if (file_exists("themes/$ThemeSel/modules/$name/".$mod_file.".php")) { $modpath = "themes/$ThemeSel/"; } $modpath .= "modules/$name/".$mod_file.".php"; if (file_exists($modpath)) { include($modpath); } else { echo "freek"; echo $modpath; $index = 1; include("header.php"); OpenTable(); if (is_admin($admin)) { echo "
"._HOMEPROBLEM."

[ "._ADDAHOME." ]
"; } else { echo "
"._HOMEPROBLEMUSER."
"; } CloseTable(); include("footer.php"); } } ?>


I tried to set the home to "News" in the phpadmin module, didn't help.
I dumped the sql of the board and downloaded it, and imported it in the testserver at home, this one works fine with it.
I've not seen any other file replaced by the hacker in the nuke folder than mysql.php and index.php.
Due to fact that its not a database problem, we access the forum to a temporary inex.html file that links to the News module, but I don't want to keep it that way, if any idea, please help!

Mytime[/code]
Find all posts by mytimeView user's profileSend private message
mytime
Nuke Cadet
Nuke Cadet


Joined: Mar 08, 2006
Posts: 3


PostPosted: Sun Jun 11, 2006 1:48 am Reply with quoteBack to top

Ok,

I've already fixed this.
It was a corrupt index.php file.

Mytime
Find all posts by mytimeView user's profileSend private message
gillie
Nuke Cadet
Nuke Cadet


Joined: Nov 16, 2006
Posts: 1


PostPosted: Wed Nov 15, 2006 4:15 pm Reply with quoteBack to top

I ran into this same problem. Could you advise how to fix it. I use 7.5
Find all posts by gillieView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.161 Seconds - 325 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::