Reveal Password Fields in Firefox


Never leave your Firefox browser unattended with your password keyed in. Your password can be stolen even before you know it.

To retrieve the password, someone just needs to run the following JavaScript code from the browser’s address bar and hit enter.

Note that the code below could be wrapped due to width/space constraints, the original code is on a single line.

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

You will get a popup message revealing all the hidden passwords for that page.

password revealed in firefox

This trick also works on IE, Google Chrome, Opera and Apple Safari.

Comments
No Comments Yet

You can be the first to comment!

Leave a Comment





XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>