So I’ve been messing around with this for a couple hours and while I can find loads of info on how to do it with sites that use forms, I’m not finding anything helpful when the site doesn’t use any kind of standard web form.
In other words, after running the invoke command, $web.forms.count = 0.
This an internal site over SSL if that matters.
In chrome, using the network tab under developer tools, after logging in, I can see an
objs: > 0: > elements > login_password: “my password” login_username: “my usersname”
Any idea how I can translate that into a request to log into the site?
I’m probably not saying/asking this very well, I’m not well versed in web programming.
EDIT:I think I figured out what I need to do. The output from the network trace was easier to figure out in internet explorer, or maybe I just didn’t look at it the right way in chrome.
I was able to form a login string and submit it to the site, but there seems to be a security feature that generates a key when the login page is first brought up, and then generates a new key when it submits the credentials. If the new key doesn’t match what the server is expecting, it’s a no go.
I’m not sure I’ll be able to figure out a way around that, but I can’t call this a total failure as I did learn quite a bit that may help me automate less restrictive web interfaces in the future.
submitted by /u/potentialDevOpsDude
[link] [comments]
The post Logging into a Website appeared first on How to Code .NET.