Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <#
- Basic Web form filling in PowerShell and IE
- you need to start power shell like this:
- PowerShell -ExecutionPolicy Bypass <script.ps1>
- #>
- $Browser = New-Object -COM "InternetExplorer.Application"
- $URL = "http://filmsbykris.com/v6/index.php"
- $Browser.visible = $true
- $Browser.Navigate($URL)
- While ($Browser.ReadyState -ne 4) { Start-Sleep -Seconds 1 }
- $Inputs = $Browser.Document.getElementsByTagName("input")
- ($Inputs |select -first 1).value = "metal"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement