1 2 3 4 5 6 7 8 9 |
$form=(((Invoke-WebRequest 'https://www.jesusninoc.com/wp-login.php/').AllElements).where{$_.tagName -eq "form"}) $form.action $postParams = @{'user_login'='login';'user_pass'='pass'} $web=Invoke-WebRequest -Uri $form.action -Method $form.method -Body $postParams $web.Content $postParams = @{'log'='LOIGNUSER';'pwd'='ADFASDFSADFPASSS'} $result=Invoke-WebRequest -Uri "https://www.jesusninoc.com/wp-login.php" -Method POST -Body $postParams -SessionVariable variable $result.Content |