form bot 05-23-2011, 04:31 PM
#1
I can't seem to get this form bot to work. I tired the following in PHP and it submits but doesn't reach the site even though it signals success. Could be a Wordpress prevention thing as the page it links to is a wp posting page not the actual page:
Test page to post to: http://www.learntotradethemarket.com/for...orex-trade
The website in question is a con website aimed at tricking newbies out of their money.
If I can get 1 oage working then I need to spider the site for all pages with comment boxes.
r
Test page to post to: http://www.learntotradethemarket.com/for...orex-trade
The website in question is a con website aimed at tricking newbies out of their money.
If I can get 1 oage working then I need to spider the site for all pages with comment boxes.
Code:
<?
$url = "http://www.learntotradethemarket.com/wp-comments-post.php";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url); // set url to post to
curl_setopt($ch, CURLOPT_FAILONERROR, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); // allow redirects
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable
curl_setopt($ch, CURLOPT_TIMEOUT, 0); // times out after Ns
curl_setopt($ch, CURLOPT_POST, 1); // set POST method
curl_setopt($ch, CURLOPT_POSTFIELDS, "author=blah&email=blah@blah.com&comment=Do you all realise this guy is a conman? He only needs 150 newbies for his $300+ course per year to earn 50k, there is no way he is a real trader"); // add POST fields
curl_setopt($ch, CURLOPT_FAILONERROR, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_COOKIEFILE, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$result = curl_exec($ch); // run the whole process
curl_close($ch);
echo $result;
?>
r