PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  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
Panthera
Hangin' Around


Joined: May 16, 2004
Posts: 28
Location: Northern California, USA

PostPosted: Sun May 16, 2004 11:28 pm Reply with quote Back to top

Hello!

I am just recovering from my first hack and my head is still spinning. I installed the Hack Alert but when I test it I get my own 404 Error page.

Here is what I inserted:

Code:
// Raven http://ravenphpscripts.com
$queryString = strtolower($HTTP_SERVER_VARS['QUERY_STRING']);
if (strstr($queryString,'%20union%20') OR strstr($queryString,'/*')) {
   header("Location: hackattempt.php?$queryString");
   die();
}



Admittedly, I'm a phpNuke newbie (running 7.1) but I cannot find the $LOC in the coding. Am I missing something??

Quote:
- NOTE: SOME SETUPS REQUIRE THE TRAILING SLASH AFTER THE $LOC AND SOME WILL NOT WORK IF THE TRAILING SLASH IS PRESENT. IF YOU ARE EXPERIENCING PROBLEMS THEN TRY ADDING/REMOVING THE TRAILING SLASH AS NEEDED.


Only registered users can see links on this board!
Get registered or login to the forums!


What am I doing wrong?

Panthera
View user's profile Send private message Yahoo Messenger
Raven
Site Admin/Owner


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

PostPosted: Mon May 17, 2004 12:05 am Reply with quote Back to top

First of all, make sure that you have the hackattempt.php file in the same directory as mainfile.php. Now, the $LOC has been changed to $queryString and I forgot to update the statement in the INSTALL file - sorry (it's fixed now)! So, try this
Code:
// Raven http://ravenphpscripts.com
$queryString = strtolower($HTTP_SERVER_VARS['QUERY_STRING']);
if (strstr($queryString,'%20union%20') OR strstr($queryString,'/*')) {
   header("Location: hackattempt.php?$queryString/");
   die();
}
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Panthera
Hangin' Around


Joined: May 16, 2004
Posts: 28
Location: Northern California, USA

PostPosted: Mon May 17, 2004 12:47 am Reply with quote Back to top

Raven wrote:
First of all, make sure that you have the hackattempt.php file in the same directory as mainfile.php.


Hi Raven,

Thanks for the quick reply. They are in the same directory and I updated the code to the above you included. I still get my own 404 Error page.

Should I replace the code that is there currently? Or just place it above it? [I replaced it]

Code:
$queryString = strtolower($_SERVER['QUERY_STRING']);
if (strstr($queryString,'%20union%20') OR strstr($queryString,'/*')) {
header("Location: index.php");
die();
}


Thanks!
View user's profile Send private message Yahoo Messenger
Raven
Site Admin/Owner


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

PostPosted: Mon May 17, 2004 12:53 am Reply with quote Back to top

Replace it. Make sure you don't have a typo in the script name. Review the error message to see what path it is attempting to goto. That should give an indication as to the pathing error. Try this if nothing else works
Code:
header("Location: http://yourdomain.com/hackattempt.php?$queryString");
Of course adjust the url to point to the script.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Panthera
Hangin' Around


Joined: May 16, 2004
Posts: 28
Location: Northern California, USA

PostPosted: Mon May 17, 2004 1:17 am Reply with quote Back to top

Well, it doesn't look as if there are any typos ... i tried expanding the path location as you suggested and then back again.
Code:
// Raven http://ravenphpscripts.com
$queryString = strtolower($HTTP_SERVER_VARS['QUERY_STRING']);
if (strstr($queryString,'%20union%20') OR strstr($queryString,'/*')) {
   header("Location: hackattempt.php?$queryString/");
   die();
}


I still get my own 404 page. Crying or Very sad

Here is what shows at the bottom of that page:
Code:
http://ravenphpscripts.com/modules.php?name=Forums&file=viewtopic&p=10457 69.104.2.35 /modules.php?name=Web_Links&l_op=viewlink&cid=1%20union%20select
Only registered users can see links on this board!
Get registered or login to the forums!
Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; AT&T CSM6.0; yie6) 404


I'm at a loss. It should be so simple ...

Panthera
View user's profile Send private message Yahoo Messenger
Panthera
Hangin' Around


Joined: May 16, 2004
Posts: 28
Location: Northern California, USA

PostPosted: Mon May 17, 2004 1:21 am Reply with quote Back to top

Oh, and I have tried it with and without the trailing slash / at the end of the location string. Confused
View user's profile Send private message Yahoo Messenger
bones
Hangin' Around


Joined: Sep 18, 2003
Posts: 36

PostPosted: Mon May 17, 2004 1:54 am Reply with quote Back to top

no wonder you have the wrong url which is
Only registered users can see links on this board!
Get registered or login to the forums!
change that to your url.
View user's profile Send private message Visit poster's website
Panthera
Hangin' Around


Joined: May 16, 2004
Posts: 28
Location: Northern California, USA

PostPosted: Mon May 17, 2004 7:32 am Reply with quote Back to top

hey bones,

that bit with raven's url just is showing i ran that link from this site. same thing happens when i run
Only registered users can see links on this board!
Get registered or login to the forums!
from my site.
View user's profile Send private message Yahoo Messenger
Raven
Site Admin/Owner


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

PostPosted: Mon May 17, 2004 8:58 am Reply with quote Back to top

Is your site url in Admin Preferences
Only registered users can see links on this board!
Get registered or login to the forums!
? That's what your site shows for your main page. If you type
Only registered users can see links on this board!
Get registered or login to the forums!
, does that work?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Panthera
Hangin' Around


Joined: May 16, 2004
Posts: 28
Location: Northern California, USA

PostPosted: Mon May 17, 2004 12:58 pm Reply with quote Back to top

Raven wrote:
If you type
Only registered users can see links on this board!
Get registered or login to the forums!
, does that work?


Bless you Raven!!! Mr. Green

And I am BLIND!!!!!!! and feeling stupid for missing such a simple thing Embarassed

Yes, it works beautifully now!

Hugs, Panthera
View user's profile Send private message Yahoo Messenger
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