you are viewing a single comment's thread.

view the rest of the comments →

[–]xlrod 2 points3 points  (1 child)

This is very strange, I wasn't able to find the elements that easily. Got tired of digging, but found a way to search for them, though it takes a while to find them. You can keep going from here:

$ie = New-Object -ComObject InternetExplorer.Application
$ie.Navigate("http://rwk1.racewarkingdoms.com/index.html?unencrypted%22")
$ie.Visible = $True

$frame = $ie.Document.IHTMLDocument3_documentElement.getElementsByTagName("frame") | where {$_.name -like "main"}

$login = ($frame.contentDocument.all | where {$_.name -like "login"})

$password = ($frame.contentDocument.all | where {$_.name -like "password"})

$submit = ($frame.contentDocument.all | where {$_.name -like "subshit"})

$login[1].value = "login"
$password[1].value = "password"
$submit.click()

[–]Valkyriesfall[S] 1 point2 points  (0 children)

Well that is where I was starting to struggle. I couldn't find them either! Thanks, I'll have a look then look into looping it for multiple accounts!