Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke
Author Message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Sun Jan 23, 2005 1:43 pm Reply with quote

Open your modules.php and before
global $nukeuser, $db, $prefix;

Add something like
Code:


if($op=="modload" AND $name!="SPChat")
{
   die("Whatever you want to tell the goofs here");
}

Or using custom errors
Code:


if($op=="modload" AND $name!="SPChat")
{
   Header("Location: error.php?op=modload&name=Error&file=403");
               exit;
}


Search your logs for legitimate uses of modload mostly older modules now. But I know SPChat is one so I put that in there as an exclusion. You can use OR to add as many exclusions as you wish.

Code:


if($op=="modload" AND $name!="SPChat" OR $name!="OldModname" OR $name!="OldModname")
{
   Header("Location: error.php?op=modload&name=Error&file=403");
               exit;
}


If you have more then a couple of old modules that use modload this is probably not for you.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
sixonetonoffun







PostPosted: Tue Jan 25, 2005 4:34 pm Reply with quote

I'm going to post a revision here the above failed with more then one protected module.
This works much better simular to something chat and ganja came up with a while back.
Code:


if (stripos_clone($modstring, 'modload') AND (!$_REQUEST['name']=="gallery" || !$_REQUEST['name']=="SPChat")) header("Location: error.php?op=modload&name=Error&file=403");
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - PHP Nuke

View next topic
View previous 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©