Scripted/Auto Web GUI Login…..
-
Hey Team PFSense,
Can't believe I've been a pfsense user for donkeys years and only now just registered - but I have an issue that has stumped me (and also our web-developer!)
I'd really like to be able to automate the logging in process to the webgui.
e.g.
http://192.168.1.1/index.php?username=foo&password=bar
We could then include a link in our asset management system - so that techs can connect to the client VPN - and then hit a single link.
Any ideas would be appreciated. I understand from my web developer who has looked - that javascript and a POST request are both being used - which makes the process much harder to do.
TIA!
T
-
I know being the first to reply to my own post probably isn't cool - but I may put this out to bounty.
I had a thought that maybe someone who knows how the GUI login process works could write a new PHP (e.g. autoscriptlogin.php) and we could then pass variables directly to it
e.g. http://192.168.1.1/autoscriptlogin.php?username=admin&password=foobar
Hmmm….just a thought!
-
You might want to disable auto CSRF…