Skip to content

Instantly share code, notes, and snippets.

@clamytoe
Created July 16, 2016 21:55
Show Gist options
  • Save clamytoe/ded1587232cb42faa449c0a2abd5f1c6 to your computer and use it in GitHub Desktop.
Save clamytoe/ded1587232cb42faa449c0a2abd5f1c6 to your computer and use it in GitHub Desktop.
Bookmarklet code to reveal passwords on a web page.
javascript:void((function()%7Bvar%20a,b;b=%22%3C%22+%22html%3E%5Cn%3Cbody%3EPasswords%20in%20this%20page:%3Cp%3E%5Cn%22;(function(c)%7Bvar%20d,e,f,g,h;for(d=0;d%3Cc.length;d++)%7Btry%7Barguments.callee(c.frames[d]);%7Dcatch(i)%7B%7D%7De=c.document.forms;for(f=0;f%3Ce.length;f++)%7Bg=e[f];for(h=0;h%3Cg.length;h++)%7Bif(g[h].type.toLowerCase()==%22password%22)b+=g[h].value+%22%3Cbr%3E%5Cn%22;%7D%7D%7D)(top);b+=%22%3C/body%3E%5Cn%3C/html%3E%5Cn%22;a=window.open(%22%22,%22%22,%22width=200,height=300%22).document;a.open();a.write(b);a.close();%7D)())
@clamytoe
Copy link
Author

I didn't write this, but I have been using it for years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment