This PHP Script will automatically post a thread on any ************* forum. :]
If you want to use it, just change this fields:
Code:
$fields['username'] = 'Your Account';
$fields['password'] = 'Your Password';
$fields2['subject'] = 'Thread Subject';
$fields2['message'] = 'Thread Mesage';
Script:
[PHP]
<?php
$url = 'https://padclan.dark bb.com/post.forum?mode=newtopic&f=2';
//Making a temporary file for the cookies
$ckfile = tempnam ("/tmp", "CURLCOOKIE");
//Here is all the fields to login
$fields = array();
$fields['username'] = 'test';
$fields['password'] = '123098';
$fields['login'] = 'Log in';
//urlencoding the fields
$post = '';
foreach($fields as $key=>$val) {
$post .= $key . '=' .urlencode($val).'&';
}
$post = substr($post, 0, -1);
//HEre is all the fields for submiting the thread
$fields2 = array();
$fields2['subject'] = 'cURL Spammer ';
$fields2['message'] = 'You got ownd by my spam.';
$fields2['post'] = 'Send';
$post2 = '';
//urlencoding the fields
foreach($fields2 as $key=>$val) {
$post2 .= $key.'='.urlencode($val).'&';
}
$post2 = substr($post2, 0, -1);
//Start the curl session
$ch = curl_init();
//Set up the remote URL
curl_setopt($ch, CURLOPT_URL, 'https://padclan.dark bb.com/login.forum?connexion' );
//We Instruct curl curl to a regualer HTTP Post
curl_setopt($ch, CURLOPT_POST, TRUE);
//Now we tell it which data to send in the HTTP POST
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
//Faking user agent
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5");
//Saving the cookies in the temporary file
curl_setopt ($ch, CURLOPT_COOKIEJAR, $ckfile);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
$results = curl_exec($ch);
//Start the curl session in the second time, with the cookies of the first curl session
$ch = curl_init ($url);
curl_setopt ($ch, CURLOPT_COOKIEFILE, $ckfile);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch,CURLOPT_POST, TRUE);
curl_setopt($ch,CURLOPT_POSTFIELDS,$post2);
$output = curl_exec($ch);
//Closing curl session
curl_close($ch);
//outputs the result(HTML)
echo $output;
?>
[/PHP]
If you want to use it for another forum just PM me and il make you the script.
-Zebra