Last active
January 21, 2016 19:15
-
-
Save Eun/917375aff1ddaad4d0bc to your computer and use it in GitHub Desktop.
Uncover and view passwords in Firefox, Chrome, IE, Safari
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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