Technohacks, Vulnerability

How to Retrieve Passwords From Asterisks



We use the “Remember Me” feature in most form logins to help the signing in process faster. But taking advantage of that sometimes makes us forget what our real passwords are. If you often stare at the asterisks and wonder what’s your actual password, try this trick. This trick  uses Javascript alert popup to reveal you the password behind the asterisks.

Retrieving Password Behind Asterisks

This trick only work on Firefox browser. On any page or login forms with asterisks passwords, copy paste the following Javascript into the url bar and hit enter. Your password should display on a popup window.

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.”);})();



Make A Bookmarklet

bookmarklets

 

 

 

if you think you will be using this quite often, try creating a bookmarket out of it. Just download/open this text file Retrieve Passwd then copy the entire text and add this to your Firefox bookmark toolbar, rename if you want.



The next time you want to retrieve your passwords from asterisks, just click on your bookmarklet.



Previous ArticleNext Article

Founder and Editor-in-Chief of ‘Professional Hackers India’. Technology Evangelist, Security Analyst, Cyber Security Expert, PHP Developer and Part time hacker.