PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16976
Location: Kansas

PostPosted: Mon Jul 19, 2004 7:52 am Reply with quote Back to top

Well, sorry to here about the dDos atack, but I am glad to hear that your website is safe!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
jonmcc33
Hangin' Around


Joined: May 17, 2004
Posts: 40
Location: Dayton, OH

PostPosted: Mon Oct 04, 2004 11:13 pm Reply with quote Back to top

Question:

In PHPNuke 7.5 the auth.php file is no longer used so where would you put the following code in the admin.php file:

Code:
require_once('myprivatefile.php');
require_once('basicauthfile.php');


I've been using your script since PHPNuke 7.1 and it's been awesome. I'd like to continue using it.
View user's profile Send private message Visit poster's website AIM Address ICQ Number
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16976
Location: Kansas

PostPosted: Tue Oct 05, 2004 12:06 am Reply with quote Back to top

Actually auth.php is still used - it's just already included in admin.php instead of being an 'included' file. In admin.php, find
Code:
if (ereg("[^a-zA-Z0-9_-]",trim($aid))) {
    die("Begone");
}
$aid = substr("$aid", 0,25);
$pwd = substr("$pwd", 0,18);
which is the beginning of the auth.php code. Place the 2 require_once statments right before the above code like
Code:
require_once('myprivatefile.php');
require_once('basicauthfile.php');
if (ereg("[^a-zA-Z0-9_-]",trim($aid))) {
    die("Begone");
}
$aid = substr("$aid", 0,25);
$pwd = substr("$pwd", 0,18);


Having said that, I would strongly recommend using NukeSentinel instead as it incorporates all of my original script and so much more for protection.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
mrisis
New Member
New Member


Joined: Jan 01, 2005
Posts: 3

PostPosted: Sat Jan 01, 2005 2:12 pm Reply with quote Back to top

Edited


Last edited by mrisis on Sun Jan 02, 2005 1:43 am; edited 1 time in total
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16976
Location: Kansas

PostPosted: Sat Jan 01, 2005 2:22 pm Reply with quote Back to top

HTTPAuth is the default NukeSentinel authorization method. It does not require .htaccess.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
mrisis
New Member
New Member


Joined: Jan 01, 2005
Posts: 3

PostPosted: Sat Jan 01, 2005 2:29 pm Reply with quote Back to top

Yes, But only when you run it as an apache module
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16976
Location: Kansas

PostPosted: Sat Jan 01, 2005 2:31 pm Reply with quote Back to top

I understand that. But, that's what your link provides, standard HTTPAuth, so, that's why I responded in kind.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
mrisis
New Member
New Member


Joined: Jan 01, 2005
Posts: 3

PostPosted: Sat Jan 01, 2005 2:53 pm Reply with quote Back to top

Very good point, dont take me wrong as I use sentinel on my main site
View user's profile Send private message
MaSePoes
New Member
New Member


Joined: Apr 11, 2005
Posts: 21

PostPosted: Fri Jul 01, 2005 3:16 am Reply with quote Back to top

this is one of the best methods I've used. I use them on all my sites. In fact I didn't use it on one site and that one got hacked. For months I haven't been hacked becuase I use this method with Nuke Sentinel.

okay one can never be 100% secure, but you can try.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16976
Location: Kansas

PostPosted: Fri Jul 01, 2005 7:52 am Reply with quote Back to top

RavensScripts Thanks for the testimonial RavensScripts
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
hero
New Member
New Member


Joined: Oct 08, 2005
Posts: 4

PostPosted: Sat Oct 08, 2005 3:00 am Reply with quote Back to top

Hi Raven,

I'm newbie at phpnuke. I have a server with nukesentinel installed. I was actually looking for a very secured HTTP AUTH program for my site. Luckily, I found this topic and follow every single instruction that you wrote here. Fortunately, I made it work on my site without any errors. Thanx dude !!!!

There is one question I wanted to ask..... since you said the beauty about those 2 files ( myprivate.php & basicauthfile.php) are that we can put it any where we want. Right now I placed those 2 files inside my html folder and its working. But, my question is, what if I wanted to put those files outside my html folder ? Are these still gonna work ?

I am running my server through my computer. So, I want my admin can only access to the admin.php from my computer not any other remote computer. How, can I make this work ? Any help will be appriceated.

Thanx in advance
View user's profile Send private message
hero
New Member
New Member


Joined: Oct 08, 2005
Posts: 4

PostPosted: Sat Oct 08, 2005 3:55 am Reply with quote Back to top

actually I just changed the path of those 2 files which is out of my html folder ...and its working !!!!!!

require_once('c:\Myserver\myprivatefile.php');
require_once('c:\Myserver\basicauthfile.php');

do you think that will do the trick ? do you think people can access to my admin.php file from remote computer ????
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16976
Location: Kansas

PostPosted: Sat Oct 08, 2005 7:49 am Reply with quote Back to top

That should do the trick. Regardless of where those files are stored, it provides the same protection. The added benefit of moving the files outside of the web root is that there is no way that they can view the files from their browser unless you have bad code elsewhere that allows a hole or access otherwise.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
CoffeeOD
New Member
New Member


Joined: Nov 05, 2005
Posts: 11

PostPosted: Mon Jan 16, 2006 2:06 am Reply with quote Back to top

Hey Raven, im using phpnuke 7.7 and this script looks nice but (there�s always but, eh?) I dont find this line
Code:
require("auth.php");
I thinked that I could place it before
Code:
require_once("mainfile.php");
, but I wanna be sure.

[admin.php - admin fix] Also, I tried that admin fix you said earlier (http://www.ravenphpscripts.com/postt345.html), but I cannot find
Code:
require_once("mainfile.php");
get_lang(admin);
in my include/auth.php and I dont got any other auth.php

[auth.php admin fix] I tried that admin fix you said earlier about auth.php, (http://www.ravenphpscripts.com/postt349.html), I dont find those two starting lines, my starting lines are
Code:
if ( !defined('IN_PHPBB') )
{
        die("Hacking attempt");
        exit;

I didnt see answers in those threads, or maybe I didnt look enough. I use newest Sentinel and thanks for that, it�s great tool and just the thing I have been looking for.
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16976
Location: Kansas

PostPosted: Mon Jan 16, 2006 8:36 am Reply with quote Back to top

As stated above, auth.php was integrated into admin.php in v7.5. But if you use NukeSentinel(tm) this thread is irrellevant.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
redhairz
Worker
Worker


Joined: Nov 17, 2006
Posts: 222

PostPosted: Mon Dec 04, 2006 4:01 pm Reply with quote Back to top

i think someone hacked my phpmyadmin when i log out exit it promt me wrong user and wrong password could it be hacked?
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Dec 04, 2006 4:39 pm Reply with quote Back to top

I'm not sure what you mean. You say you cannot log into phpMyAdmin?
Or the saved forms in your browser are incorrect - that just sounds like a browser thing
View user's profile Send private message Visit poster's website
redhairz
Worker
Worker


Joined: Nov 17, 2006
Posts: 222

PostPosted: Mon Dec 04, 2006 6:13 pm Reply with quote Back to top

hey evaders99 Smile i always get this (Wrong username/password. Access denied.) when exiting from phpmyadmin...... i can use the phpmyadmin but when i login out as exit i will get the message above. becos there have been 2 incident when hacker deleted all the DB. the hosting admin restored back eventually. my question is could the hacker edit the user of the phpmyadmin which cause the above message to appear? i login into the phpmyadmin from cpanel mysql. what is your view? i had disable ftp and change pword. could the hacker hack into the nuke portal to do that kind of damage? from admin or folder cmod 777?
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Dec 04, 2006 9:17 pm Reply with quote Back to top

I don't think so. It may just be its trying to read some login value that is no longer there since you logged out. Don't worry about
View user's profile Send private message Visit poster's website
shock1964
New Member
New Member


Joined: Apr 28, 2007
Posts: 1

PostPosted: Sat Apr 28, 2007 1:46 pm Reply with quote Back to top

hey, i got this md4 bf off of a friend. the creator is matthias fichtner and its supposed to unlock the halo 3 beta on my xbox 360, can anyone tell me what it really does? i can send u the file if u email me or add me on my msn
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sat Apr 28, 2007 11:12 pm Reply with quote Back to top

What? This has nothing to do with this thread, or phpNuke for that matter.
Spam?
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum