用javascript找回浏览器中存储的星号密码
1.打开浏览器转到你保存了密码的登陆页面
2.在浏览器的地址栏中输入以下javascript脚本
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:nn" + s); else alert("There are no passwords in forms on this page.");})();
3.按回车键,密码就会弹出来
比如我这个网页存的密码是hackhp,就会弹出提示:Passwords in forms on this page:nnhackhpn