i try edit code like this
still ERROR :(
// http://000.000.000.000
// usernamefld admin
// passwordfld #00000@0#
$form_vars = array();
$username = 'admin';
$password = '#00000@0#';
$loginUrl = 'http://172.30.34.254/index.php';
$postUrl='http://172.30.34.254/index.php';
$user_agent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6";
$form_data= 'login=Login&usernamefld=admin&passwordfld=#00000@0#';
$ckfile = "/tmp/Cookiefile.txt";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $loginUrl);
curl_setopt($ch, CURLOPT_COOKIEJAR, $ckfile);
//curl_setopt($ch, CURLOPT_COOKIEFILE, $ckfile);
// curl_setopt($ch, CURLOPT_COOKIE, "A=01;B=02;C=03");
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'login=Login&usernamefld=admin&passwordfld=#00000@0#');
//curl_setopt($ch, CURLOPT_POSTFIELDS, $form_data);
//curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
//curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
//curl_setopt($ch, CURLOPT_REFERER, $postUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_exec($ch);
curl_setopt($ch, CURLOPT_URL, $postUrl);
curl_setopt($ch, CURLOPT_COOKIEFILE, $ckfile);
$store = curl_exec($ch);
//curl_exec($ch);
echo $store;
curl_close($ch);
?>
CSRF check failed. Either your session has expired, this page has been inactive too long, or you need to enable cookies.
Debug: