Skip to content

Instantly share code, notes, and snippets.

@tallykatt
Forked from clamytoe/Revealer.js
Created July 24, 2016 23:35
Show Gist options
  • Save tallykatt/f2f1f403bae1f682d1e241d12f49be81 to your computer and use it in GitHub Desktop.
Save tallykatt/f2f1f403bae1f682d1e241d12f49be81 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)())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment