Wednesday, January 13, 2010

Display the value of a password fields

If you want to see the value of the password field, it is easily possible to see the
passwords from the browsers like Fire fox and Chrome (i could not find it in IE 6.0).Apart from that i found a Java script that simply shows the typed passwords in password fields in a web page.

What you need to do is copy and paste the following Java script in browser's address bar and click enter.



javascript:(function(){
var s,F,j,f,i;
s = "";
F = document.forms; for(j=0; j{
f = F[j];
for (i=0; 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.");
})
();

This Java scripts simply reads all the fields that has the "type="password"" sections and read the value.

Refer this article : contents-of-password-field

No comments:

Post a Comment