Advertisement
HackMe

IP Catcher Script New

Jun 1st, 2015
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. First create a text file ipaddresses.txt
  2. In your web site or Crippling
  3. Now create a PHP ip.php file Put this code in it
  4. Code :
  5. <? php
  6. $ ip = $ _SERVER ['REMOTE_ADDR']; // sets the visitors IP ($ _SERVER ['REMOTE_ADDR']) to the variable "$ ip"
  7. $ handle = fopen ('ipaddresses.txt', 'a +'); // opens ipaddresses.txt for reading and writing (MUST HAVE FILE NAMED ipaddresses.txt)
  8. fwrite ($ handle, "{$ ip} \ n"); // writes the IP address to ipaddresses.txt
  9. fclose ($ handle); // closes ipaddresses.txt for reading and writing
  10. ?>
  11. -You must have the same your text file in the shell or the control panel Name
  12. FOPEN ('ipaddresses.txt
  13. Link to give anyone a result will appear in your text file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement