Sunday, 24 December 2017

Script Membuat Bot Comment WordPress

$url = ""; //address of blog
//$postfields - array with required data
//author            - name of author
//email             - email
//comment_post_ID   - post_ID in a blog 
//comment           - comment
//url               - url
$postfields = array("action" => "submit", "author" => "test", "email" => "", 
                     "comment_post_ID" => 14, "comment" => "Very Interesting post",
                     "url" => "'",
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url."wp-comments-post.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
curl_setopt($ch, CURLOPT_USERAGENT, "User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Widows NT");
curl_setopt($ch, CURLOPT_REFERER, "");
curl_setopt($ch, CURLOPT_HEADER, 0);
$result = curl_exec($ch);
?>----That's all. Of course, with this script isn't a lot of spaming, and just captcha can stoped it. These things are best done on a compiled language or python/perl.

Post written for educational purposes. The author assumes no liability for the use of the script.Source:

1 comment:

Anonymous said...

Wordpress cms are easier than others so developer and designer like to work on it. However, you need to contact WordPress development company to have the website that has the good interface.