Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Hack Attempt Script
Author Message
soc
Hangin' Around



Joined: Apr 14, 2004
Posts: 26

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

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

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! ] */
/* */
/* 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! ]
 
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

Have you edited the message?

_________________
Scott Johnson MIS Ubuntu/Linux 11.10 
View user's profile Send private message Visit poster's website
soc







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

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
 
Nukeum66







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

PM me the hackattempt.php (copy paste) so I can compare it with mine Wink
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

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

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! ]");

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
soc







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

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
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Hack Attempt Script

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 ©