Reveal passwords on web forms
On web pages that require you to enter passwords, the passwords are usually shown as a sequence of symbols, usually the asterisk (*). There are many reasons you may want to see the real values in these password fields: the form says your password is wrong and you'd like to know what it thinks the password is, you want to make sure you entered correctly before you submit the form, or some fool typed in their password on a form and left the page up and you want to steal their password. Either way, it'd sure be handy to have a script that shows you these passwords. Well, here's just such a script:
javascript:(function(){var i,j,m,f;m="";f=document.forms;for(j=0; j<f.length; ++j) {for (i=0; i<f[j].length; ++i) {if (f[j][i].type.toLowerCase() == "password") m += f[j][i].value + "\n";}}if (m) alert("Passwords found on this page:\n\n" + m); else alert("No passwords found on this page");})();
Just copy this script as a single line and paste it into the address bar of your browser. With the cursor still in the address bar, hit the Enter key. It will then show the text entered for the password in any password form elements shown on the page.
javascript:(function(){var i,j,m,f;m="";f=document.forms;for(j=0; j<f.length; ++j) {for (i=0; i<f[j].length; ++i) {if (f[j][i].type.toLowerCase() == "password") m += f[j][i].value + "\n";}}if (m) alert("Passwords found on this page:\n\n" + m); else alert("No passwords found on this page");})();
Just copy this script as a single line and paste it into the address bar of your browser. With the cursor still in the address bar, hit the Enter key. It will then show the text entered for the password in any password form elements shown on the page.
| Rating: | 100% positive, 2 total Votes |
| Categories: | web security hack black hat |
| Added: | on Dec 17, 2007 at 1:23 pm |
| Added By: | an anonymous user |

