Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


IP stealing via website.

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> Computer Talk
View previous topic :: View next topic  
Author Message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Wed Aug 20, 2008 1:06 pm    Post subject: IP stealing via website. Reply with quote

I made a little website. And I want a script to steal to steal IP's of all user that visit.

Last edited by OSIRIS on Wed Aug 20, 2008 11:13 pm; edited 2 times in total
Back to top
View user's profile Send private message
pkyourface
Master Cheater
Reputation: 0

Joined: 26 Dec 2006
Posts: 252

PostPosted: Wed Aug 20, 2008 1:22 pm    Post subject: Reply with quote

Just wonder what does stealing IP's do for you?

EDIT: Stupid spelling errors.
Back to top
View user's profile Send private message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Wed Aug 20, 2008 1:36 pm    Post subject: Reply with quote

Im going to advertise my website on my Facebook page. And I would want to know to which of them has viewed my website.

And its also just a good thing to know, in case I ever got h4x0rd.
Back to top
View user's profile Send private message
pkyourface
Master Cheater
Reputation: 0

Joined: 26 Dec 2006
Posts: 252

PostPosted: Wed Aug 20, 2008 1:39 pm    Post subject: Reply with quote

Can't you just check the server log files?
Back to top
View user's profile Send private message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Wed Aug 20, 2008 1:41 pm    Post subject: Reply with quote

Im just using a free webhost.

www.freehostia.com

all I got is my index.html

and my logs.txt.


My logs.txt is where I want the IPs to go.
Back to top
View user's profile Send private message
pkyourface
Master Cheater
Reputation: 0

Joined: 26 Dec 2006
Posts: 252

PostPosted: Wed Aug 20, 2008 1:54 pm    Post subject: Reply with quote

Sorry I took so long I had to make an account on there and test it out. First of all make a file call logging.php and put this code in there:
Code:

<?php
$curFile = $_SERVER['PHP_SELF']; // what file is being accessed
$ip = $REMOTE_ADDR; // visitors IP

// writing to log file
$filename = 'log.txt';
$fp = fopen($filename, "a"); // appending to the end
$today = date ("F j, Y, g:i a");
$toFile = "$ip -- $today -- $curFile\r\n";
$write = fputs($fp, $toFile);
fclose($fp);
?>


Then create another file called log.txt and whenever a user visits the page it will show up as 70.52.161.21 -- August 20, 2008, 7:50 pm -- /logging.php
Back to top
View user's profile Send private message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Wed Aug 20, 2008 1:57 pm    Post subject: Reply with quote

thanks, +rep

but how would I change the Time it sets. It think this is it

("F j, Y, g:i a")


but what if I wanted EST time? How would I modify that?
Back to top
View user's profile Send private message
pkyourface
Master Cheater
Reputation: 0

Joined: 26 Dec 2006
Posts: 252

PostPosted: Wed Aug 20, 2008 3:26 pm    Post subject: Reply with quote

Right above $today put :
Code:
putenv("TZ=Your Timezone Here");

To find out what to put after TZ= go here and find your timezone: http://ca.php.net/timezones
Back to top
View user's profile Send private message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Wed Aug 20, 2008 3:33 pm    Post subject: Reply with quote

thanks allot Very Happy
Back to top
View user's profile Send private message
Tofu
Grandmaster Cheater
Reputation: 0

Joined: 25 Sep 2007
Posts: 620

PostPosted: Wed Aug 20, 2008 9:46 pm    Post subject: Reply with quote

AY! Thanks. Going to use this on my website too!
_________________
Stuff by me:
Bioshock [AA Script]
TaskManager Fix
Cheetah wrote:
Forum rep is serious business.

Back to top
View user's profile Send private message
OSIRIS
Grandmaster Cheater
Reputation: 0

Joined: 27 Aug 2006
Posts: 654

PostPosted: Wed Aug 20, 2008 11:14 pm    Post subject: Reply with quote

It works perfectly. Although you dont need to put that file in logging.php , I put mine on my home page.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> Computer Talk All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites