<?php set_time_limit(0);
$names=file('sites.txt');
foreach($names as $randomname){
signup($randomname);
sleep(5);
}
function signup($randomname){
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL,'https://en.wordpress.com/signup/');
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
curl_setopt($ch, CURLOP

IMEOUT, 15);
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6");
curl_setopt ($ch, CURLOPT_REFERER, 'http://wordpress.com/signup/?ref=bigassorangeonleft');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_MAXREDIRS, 3); //follow up to 3 redirections - avoids loops
$data = curl_exec ($ch);
flush();
//echo $data;exit;
$pattern='/<input type=\'hidden\' name=\'signup_form_id\' value=\'(.*?)\'/si';
preg_match($pattern,$data,$match);
$signup_form_id=$match[1];
$pattern='/<input type=\"hidden\" id=\"_signup_form\" name=\"_signup_form\" value=\"(.*?)\"/si';
preg_match($pattern,$data,$match);
$_signup_form=$match[1];
$randomname=trim($randomname);
$randomname=strtolower($randomname);
$tld='.wordpress.com';
$blogname=$randomname;
$user_name=$randomname;
$password=makeRandomPassword();
//change this
$user_email=$randomname.'@yoursite.com';
$poststring="thevalueofthedropdown&form_type=blog&stage=&signup_form_id=$signup_form_id&_signup_form=$_signup_form&u=&blogname=$blogname&tld=$tld&user_name=$user_name&pass1=$password&pass2=$password&user_email=$user_email&wpcom_blog_sub=1&language=1&tos=1";
//echo $poststring;exit;
curl_setopt ($ch, CURLOPT_POST, 1);curl_setopt ($ch, CURLOPT_POSTFIELDS, $poststring);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
curl_setopt($ch, CURLOP

IMEOUT, 15);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_MAXREDIRS, 3); //follow up to 3 redirections - avoids loops
$data = curl_exec ($ch);
flush();
curl_close($ch);
if(stristr($data,'Activate Your WordPress.com Account')){echo "http://$blogname.wordpress.com||$blogname||$password";}
}
function makeRandomPassword() {
$salt = "abchefghjkmnpqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
srand((double)microtime()*1000000);
$i = 0;
while ($i <= 6) {
$num = rand() % 45;
$tmp = substr($salt, $num, 1);
$pass = $pass . $tmp;
$i++;
}
return $pass;
}
?>