PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  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
soc
Hangin' Around


Joined: Apr 14, 2004
Posts: 26

PostPosted: Wed Apr 14, 2004 12:44 pm Reply with quote Back to top

Hello,

i put the hackalert code in my site(code in mainfile, image and hackattempt.php) in my site, but it gives me an error when i hit the "test" url INSTALL file has.

error :

Parse error: parse error in /home/mysite/public_html/hackattempt.php
on line 25

(line 25 is $msgToHacker = <<< _MSG_)

I use a clear phpnuke 6.5.

Any idea about?


Thanks in advance Smile
View user's profile Send private message
bones
Hangin' Around


Joined: Sep 18, 2003
Posts: 36

PostPosted: Wed Apr 14, 2004 1:31 pm Reply with quote Back to top

you have to make sure that the code goes at the top of the mainfile.php like this.

<?php
if (stristr($_SERVER["QUERY_STRING"],'%20union%20')) {
$loc = $_SERVER['QUERY_STRING'];
header("Location: hackattempt.php?$loc");
die();
}
/************************************************************************/
/* PHP-NUKE: Advanced Content Management System */
/* ============================================ */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/*
Only registered users can see links on this board!
Get registered or login to the forums!
*/
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
and the hackattemp.php file gones into your root
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Wed Apr 14, 2004 2:04 pm Reply with quote Back to top

Have you edited the message?
View user's profile Send private message Visit poster's website
soc
Hangin' Around


Joined: Apr 14, 2004
Posts: 26

PostPosted: Wed Apr 14, 2004 3:17 pm Reply with quote Back to top

i didn't change nothing, i use the default code. In mainfile.php the code i put is ok and in hackattempt.php file i have the original from here.

I can't understand why it gives me parsing error.

Strange things ... Smile
View user's profile Send private message
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Wed Apr 14, 2004 7:29 pm Reply with quote Back to top

PM me the hackattempt.php (copy paste) so I can compare it with mine Wink
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


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

PostPosted: Wed Apr 14, 2004 8:58 pm Reply with quote Back to top

What version of php are you using? If you are using a version prior to 4.1 you will need to change $_SERVER to $HTTP_SERVER_VARS. Also, some setups require fully qualified urls in the header. Try this
header("Location:
Only registered users can see links on this board!
Get registered or login to the forums!
");

Of course if your hackattempt script is in a subfolder you will need to add that also.


Last edited by Raven on Thu Apr 15, 2004 12:06 pm; edited 1 time in total
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
soc
Hangin' Around


Joined: Apr 14, 2004
Posts: 26

PostPosted: Thu Apr 15, 2004 11:59 am Reply with quote Back to top

hi,

i rewrote on hand the code again in another txt file and uploaded it, and ... it works now.

mysterious things, mysterious php ...


thanks Smile
View user's profile Send private message
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