<?php
if(isset($_POST['login'])){
function cURL($p = "",$h = false, $ck = null, $follow = true, $postdata = null) {
$ch = curl_init($p);
curl_setopt($ch, CURLOPT_URL, $p);
if(!is_null($ck)){
curl_setopt($ch, CURLOPT_COOKIE, $ck);
}
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, $follow);
if (!is_null($postdata)){
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded; charset=UTF-8"));
}
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HEADER, $h);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
return curl_exec($ch);
}
function cookie($user, $pass){
$req = cURL("http://www.formspring.me/account/login", true, null, false, "login=1&username=$user&password=$pass");
preg_match('/formspringme_login=(.*);/i', $req, $r);
$cookie=$r[0];
if($cookie=$r[0]){
return $cookie;
}else{
return false;
}
}
function token($user, $cookie){
$req = cURL("http://www.formspring.me/$user", true, $cookie);
preg_match("%name\=\"token\" value\=\"(.*?)\"%i", $req, $token);
return $token[1];
}
function posta($cookie, $token, $texto, $user){
return cURL("http://www.formspring.me/profile/ask/$user", true, $cookie, false, "token=$token&question=$texto&anonymous=0&ajax=1");
}
function zerainbox(){
}
$looogins = $_POST['login']."\n".$_POST['login']."\n".$_POST['login']."\n".$_POST['login'];
$logins = explode("\n",$looogins);
$j = count($logins)-1;
$perfil = $_POST['perfil'];
$texto = $_POST['texto'];
for($i=0;$i<=$j;++$i){
$login = $logins[$i];
$login = explode(":",$login);
$l = $login[0];
$l = trim($l);
$p = $login[1];
$p = trim($p);
$cookie = cookie($l, $p);
if($cookie){
echo $l." - Logou com sucesso <br>";
$token = token($perfil, $cookie);
for($a=0;$a<20;$a++){
echo posta($cookie, $token, $texto.rand('11111111111111', '5555555555566665'), $perfil)."<br>";
ob_flush();
flush();
sleep(rand(0,1));
}
}else{
echo $l." - Erro ao logar <br>";
}
}
}else{
echo "<form method='POST'>
Fakes: <br><textarea name='login' cols='45' rows='10'></textarea><br>
Perfil a ser floodado: <input type='text' name='perfil'></input><br>
Texto: <textarea name='texto'> </textarea><br>
<input type='submit' value='Enviar'>
";
}
?>