Retrieve hidden passwords from a webpage

HTML pages hide passwords in text fields called “input” that have “password” as type. To display a¬†password is super easy. Just open the Javascript console by pressing F12 in chrome, then you paste the following lines of code… et voila’!!!

is = document.getElementsByTagName(‘input’);
for (var i=0; i < is.length; i++) { if (is[i].type == ‘password’) { is[i].type = ‘text’; } }

Leave a Reply

Your email address will not be published. Required fields are marked *