bryan39

http://power.rhythmspoon.work/8ee3ac592f9c0ccfc75eea59f8a4e1

Oct 12th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $username = "xxxxxx";
  2. $password = "xxxxxx";
  3. $url = "www.facebook.com/login";
  4.  
  5. $ie = New-Object -com internetexplorer.application;
  6. $ie.visible = $true;
  7. $ie.navigate($url);
  8.  
  9. ($ie.document.getElementsByName("email") |select -first 1).value = $username;
  10.  
  11. Exception from HRESULT: 0x800A01B6
  12. At line:1 char:1
  13. + ($ie.document.getElementsByName("email") |select -first 1).value = $u ...
  14. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15. + CategoryInfo : OperationStopped: (:) [], NotSupportedException
  16. + FullyQualifiedErrorId : System.NotSupportedException
  17.  
  18. $username="myname"
  19. $password="mypass"
  20. $url = "www.facebook.com/login"
  21. $ie = New-Object -com internetexplorer.application
  22. $ie.visible = $true
  23. $ie.navigate($url)
  24.  
  25. # Sleep while IE is busy. Check 10 times per second, adjust delay as needed
  26. while($ie.Busy) { Start-Sleep -Milliseconds 100 }
  27.  
  28. # IE is not busy with document anymore, pass credentials and click the logon
  29. ($ie.document.getElementsByName("email") |select -first 1).value = $username
  30. ($ie.document.getElementsByName("pass") |select -first 1).value = $password
  31. ($ie.document.getElementsByName("login") |select -first 1).click()
Add Comment
Please, Sign In to add comment