Copy the code and paste it in notepad.exe, TextEdit.app or your favorite text editor. Save the file with a .php extension, for instance stealer.php. Then create a new file, save it as log.txt and leave it blank.
Note: If you want to change the name of your log.txt file, remember to edit the .php file as well, otherwise your script will not work.
The above stealer.php file will collect the IP address, the cookie, and then store the data in our log.txt file.