Skip to content

Instantly share code, notes, and snippets.

@Eun
Last active January 21, 2016 19:15
Show Gist options
  • Save Eun/917375aff1ddaad4d0bc to your computer and use it in GitHub Desktop.
Save Eun/917375aff1ddaad4d0bc to your computer and use it in GitHub Desktop.
Uncover and view passwords in Firefox, Chrome, IE, Safari
// this gist demonstrates how easy an attacker can get all your saved passwords in almost any browser
// usage:
// 1. goto any website where your browser has stored a password for you
// 2. open the Developer Console (F12), may vary from browser to browser
// 3. paste following code & execute it
for (var els = document.querySelectorAll("input[type=password]"), i = els.length - 1; i >= 0; --i)
{
els[i].type = "text";
}
// bookmarklet
javascript:(function(){for(var t=document.querySelectorAll('input[type=password]'),e=t.length-1;e>=0;--e)t[e].type='text'})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment