Skip to content

Instantly share code, notes, and snippets.

@andrei512
Created May 30, 2013 13:43
Show Gist options
  • Save andrei512/5677911 to your computer and use it in GitHub Desktop.
Save andrei512/5677911 to your computer and use it in GitHub Desktop.
javascript:(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) alert("Passwords in forms on this page:\n\n" + s); else alert("There are no passwords in forms on this page.");})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment