PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  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
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Wed Mar 31, 2004 4:16 pm Reply with quote Back to top

heloo i have download that modul and now it's not working

it says this in the install file


- Edit your mainfile.php by adding this code as your first code AFTER the opening

<? tag.

if (stristr($_SERVER["QUERY_STRING"],'%20union%20')) {
$loc = $_SERVER['QUERY_STRING'];
header("Location: hackattempt.php?$loc");
die();
}


but when I edit that this is what my page looks like

Parse error: parse error in /home/bosanci/public_html/mainfile.php on line 14

Fatal error: Call to a member function on a non-object in /home/bosanci/public_html/index.php on line 18


Im runinh this version of MySQL MySQL Version 4.0.18-standard

can anybody tell me what's wrong Smile

thank you
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Mar 31, 2004 4:24 pm Reply with quote Back to top

Have you placed the hackattempt.php script in the same folder as mainfile.php?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Wed Mar 31, 2004 8:12 pm Reply with quote Back to top

yes I have it is in public_html with other files such as

header.php
mainfile.php
config.php
and others Smile
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Mar 31, 2004 9:25 pm Reply with quote Back to top

Please post lines 1 to 20. Thanks.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Wed Mar 31, 2004 9:51 pm Reply with quote Back to top

what do you mean?
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Mar 31, 2004 9:53 pm Reply with quote Back to top

Please post lines 1-20 of mainfile.php and lin 18 of index.php.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Wed Mar 31, 2004 9:59 pm Reply with quote Back to top

<?php

<? tag.

if (stristr($_SERVER["QUERY_STRING"],'%20union%20')) {
$loc = $_SERVER['QUERY_STRING'];
header("Location: hackattempt.php?$loc");
die();
}


$phpver = phpversion();
if ($phpver >= '4.0.4pl1' && strstr($HTTP_USER_AGENT,'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}

that what is in bold is from the Install file wich says

- Edit your mainfile.php by adding this code as your first code AFTER the opening <? tag.

if (stristr($_SERVER["QUERY_STRING"],'%20union%20')) {
$loc = $_SERVER['QUERY_STRING'];
header("Location: hackattempt.php?$loc");
die();
}


and this is index.php

$result = $db->sql_query($sql);
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Mar 31, 2004 10:03 pm Reply with quote Back to top

What is this : <? tag.

If that is really in your code remove it. Your code should start with <?php and then your code.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Wed Mar 31, 2004 10:04 pm Reply with quote Back to top

like this

<?php


if (stristr($_SERVER["QUERY_STRING"],'%20union%20')) {
$loc = $_SERVER['QUERY_STRING'];
header("Location: hackattempt.php?$loc");
die();
}

$phpver = phpversion();
if ($phpver >= '4.0.4pl1' && strstr($HTTP_USER_AGENT,'compatible')) {
if (extension_loaded('zlib')) {
ob_end_clean();
ob_start('ob_gzhandler');
}
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Mar 31, 2004 10:07 pm Reply with quote Back to top

Yes
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Wed Mar 31, 2004 10:08 pm Reply with quote Back to top

ok thank you so much now it works good so how does this work it can actually track hackers down for real?
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Mar 31, 2004 10:11 pm Reply with quote Back to top

Have you tried the test hack script on my site? You will get an email informing you of the attack. What is your url? I will "attack" you and we'll see what happens Smile
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Wed Mar 31, 2004 10:12 pm Reply with quote Back to top

Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Wed Mar 31, 2004 10:13 pm Reply with quote Back to top

bnut dont destroy me Smile
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Mar 31, 2004 10:19 pm Reply with quote Back to top

Done and it caught me! You should be receiving an email telling you all about it, assuming you set this in the hacattempt script
Code:
$eMailTo           = "YOUR_EMAIL_ADDY";
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Wed Mar 31, 2004 10:21 pm Reply with quote Back to top

I did i hace set it to the e-mail

$eMailTo = "webmaster@bosanci.net";
$eMailSubject = "Hack Attempt";
$eMailExtraHeaders = "From: $eMailTo\n";
$sendAdminEmail = TRUE;

where can i test that on your page you said
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Mar 31, 2004 10:22 pm Reply with quote Back to top

Did you get the email?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Wed Mar 31, 2004 10:29 pm Reply with quote Back to top

very cool i have receved e-mail with some names and stuff like that

where can I test the script on your site ? you said something about it hehe
View user's profile Send private message
Raven
Site Admin/Owner


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

PostPosted: Wed Mar 31, 2004 10:33 pm Reply with quote Back to top

It's the same script. It will show you what the USER will see
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 AIM Address Yahoo Messenger
badkemo
Worker
Worker


Joined: Mar 31, 2004
Posts: 111

PostPosted: Wed Mar 31, 2004 10:36 pm Reply with quote Back to top

very cool Smile thznk you 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