Advertisement
Guest User

Untitled

a guest
Oct 6th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. $ie = New-Object -Com "InternetExplorer.application"
  2. $ie.Navigate("https://anav-rt.acs.whcaas.com")
  3. while($ie.Busy){Start-Sleep -Milliseconds 100}
  4. $doc = $ie.Document
  5. $doc.getElementsByTagName("input") | % {
  6. if($_.name -ne $null){
  7. if($_.name.Contains("txtUsername")){ $user = $_ }
  8. if($_.name.Contains("txtPassword")){ $pass = $_ }
  9. if($_.name.Contains("btnLogin")){$btn = $_ }
  10. }
  11. }
  12.  
  13. $user.value = "wallboard"
  14. $pass.value = "OH NO YOU DONT"
  15. $btn.click()
  16. $ie.Visible = $true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement