<?php
require("PHP_CSRF_Test.inc.php");
// Test for wordpress admin panel
$formAction="DOMAIN_NAME/wp-login.php";
$formElements=array();
$formElements['log']="admin";
$formElements['pwd']="admin";
$formElements['rememberme']="forever";
$formElements['wp-submit']="Log In";
$formElements['redirect_to']=$formAction;
$formElements['testcookie']="0";
$obj = new PHP_CSRF_Test($formAction, $formElements);
$response = $obj->postFormViaPostMethod();
echo $response;
?>
|