Skip to content

Instantly share code, notes, and snippets.

@mechiland
Created June 28, 2010 02:35
Show Gist options
  • Select an option

  • Save mechiland/455383 to your computer and use it in GitHub Desktop.

Select an option

Save mechiland/455383 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.");})();
@mechiland

Copy link
Copy Markdown
Author

copy and paste it in browser location bar and press 'ENTER', all the passwords fields will be displayed.

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