I have written GreaseMonkey script to automate captive portal login.
document.getElementById("username").value="myUserName";
document.getElementById("passwd").value=B64.encode("myPassword");
document.form.submit();
Browser's inbuilt password manager can log me into web-based captive portal only if I'm on actual captive login URL. (say http://192.168.1.1/login.html). But what if login-page appears while I am on stackoverflow.com. In this case, I need to enter my password, then I get redirected to same page which I was on, and foolish browser offers me to save password for stackoverflow.com
Is there any way to programmatically retrieve passwords from browser password manager. I found LastPass can retrieve my stored passwords in this way.
What I wanted to achieve?
- Auto-Login (without need of hitting login button)
- Using Browser's inbuilt password manager.( I can set master password, I can use Sync)
- Make browser able to detect captive login page. (Using
@include *, in greasemonkey script) - Dont want to save password in plain-text.