Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #######index.php
- #<html>
- #<body>
- #
- #<form action="welcome.php" method="post">
- #Name: <input type="text" name="name"><br>
- #E-mail: <input type="text" name="email"><br>
- #<input type="submit" name="button">
- #</form>
- #
- #</body>
- #</html>
- ########welcome.php
- #<html>
- #<body>
- #
- #Welcome <?php echo $_POST["name"]; ?><br>
- #Your email address is: <?php echo $_POST["email"]; ?>
- #
- #</body>
- #</html>
- #The auto filling script - Must be run with Administrator rights
- If($ie) { Remove-Variable ie }
- $ie = New-Object -Com InternetExplorer.Application
- $ie.Visible = $true
- $ie.Navigate("http://localhost/fillform/index.php")
- Start-Sleep -m 300
- while ($ie.ReadyState -ne 4) {Start-Sleep -m 100}; #$ie.ReadyState -ne 4 #$ie.IsBusy
- $form = $ie.document.forms[0]
- $inputs = $form.GetElementsByTagName("input")
- ($inputs | where {$_.Name -eq "name"}).Value = "Michelet"
- ($inputs | where {$_.Name -eq "email"}).Value = "amichzel@lol.com"
- Start-Sleep -Second 1
- ($inputs | where {$_.Name -eq "button"}).Click()
Add Comment
Please, Sign In to add comment