by gruez · 8y ago · 0 comments
or you could go to the site, autofill the password, then extract the password input's value using the dev console.
kidding aside, this could be run from a USB key, automatically, in a very stealthy way. so yeah, worse.
Are you actually able to reproduce?
Edit: It works if you change the input type. Sigh. The web is brutal.
var inputs = document.getElementsByTagName('input'); for(var i = 0; i < inputs.length; i++) { if(inputs[i].type.toLowerCase() == 'password') { alert(inputs[i].value); } }