Friday, 15 August 2014

How to Reveal, Show, View Passwords hidden under Asterisks/Stars

Most modern browsers offer the capability of remembering usernames and passwords.  Most of us use this feature to automatically save our usernames and passwords in order to log in to our favorite websites more quickly.As web browsers intelligently hide passwords using stars(, asterisks or dots), there is no way in which a user can recover his password by simply looking at what the browser shows.
here is the trick  that you can use to reveal your password for a website when you have forgotten it but your browser remembers it.


JavaScript to Reveal Hidden Passwords in Asterisk (Stars)

A simple JavaScript code can be used to view passwords in web browsers like Google Chrome, Internet Explorer, Opera in a popup as an alert message (Mozilla Firefox does not support this. Users of this browser can utilize the bookmarklet given below or the addon mentioned at the end of this post. If you use Google Chrome and the code does not seem to work, precede it with "javascript:" without quotes). To use the JavaScript, open your web browser, open the webpage for which the password is hidden in asterisks, copy and paste the following code in the address bar.

javascript: var p=r(); function r(){var g=0;var x=false;var x=z(document.forms);g=g+1;var w=window.frames;for(var k=0;k<w.length;k++) {var x = ((x) || (z(w[k].document.forms)));g=g+1;}if (!x) alert('Password not found in ' + g + ' forms');}function z(f){var b=false;for(var i=0;i<f.length;i++) {var e=f[i].elements;for(var j=0;j<e.length;j++) {if (h(e[j])) {b=true}}}return b;}function h(ej){var s='';if (ej.type=='password'){s=ej.value;if (s!=''){prompt('Password found ', s)}else{alert('Password is blank')}return true;}}
Or, alternatively you can use this Show Password Bookmarklet by dragging it to your Bookmarks Bar to instantly view hidden passwords at the click of a button.




0 comments:

Post a Comment