Saturday, March 12, 2011

See passwords behind stars!


Hello guys,

I am going to show you in a short tutorial how to read out a password of a web browser.

Example:

http://www.gmail.com

Username: [email protected]
Password: **

What's my password?

Alright, now you could read out the **-stuff with a simple javascript code.

Code:
javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Passwords in forms on this page:\n\n" + s); else alert("There are no passwords in forms on this page.");})();

All you need is to copy & paste it in the URL-address bar.
Delete http://www.gmail.com and paste the code into it.

10 comments: