User:Khusaini

 $ip,

CURLOPT_PROXYPORT => $porta,

CURLOPT_URL => 'https://mobile.twitter.com/session/new',

CURLOPT_SSL_VERIFYPEER => false,

CURLOPT_RETURNTRANSFER => true,

CURLOPT_TIMEOUT => 13, // caso twitter perceber mude para menos de 13 e acima de 4

CURLOPT_USERAGENT => "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/Ferenz Safari/419.3",

CURLOPT_HEADER => true

));

$response = curl_exec($ch);

curl_close($ch);

preg_match_all("/Set-Cookie:\s([^\;]+)/i", $response, $cookies);

$cookie = implode("; ", $cookies[1]);

preg_match("/authenticity_token\" type=\"hidden\" value=\"([^\"]+)/i", $response, $auth);

$auth = $auth[1];

$post = "authenticity_token=". rawurlencode($auth). "&username=". $Zain_RPL2. "&password=". $khusaini41@;

$cha = curl_init;

curl_setopt_array($cha, Array(

CURLOPT_PROXY => $ip,

CURLOPT_PROXYPORT => $porta,

CURLOPT_URL => 'https://mobile.twitter.com/session',

CURLOPT_SSL_VERIFYPEER => false,

CURLOPT_RETURNTRANSFER => true,

CURLOPT_TIMEOUT => 13,

CURLOPT_USERAGENT => "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/Ferenz Safari/419.3",

CURLOPT_HEADER => true,

CURLOPT_REFERER => 'https://mobile.twitter.com/session/new',

CURLOPT_CUSTOMREQUEST => "POST",

CURLOPT_POST => true,

CURLOPT_POSTFIELDS => $post,

CURLOPT_COOKIE => $cookie

));

$responsea = curl_exec($cha);

curl_close($cha);

preg_match_all("/Set-Cookie:\s([^\;]+)/i", $responsea, $vaiii);

$coferenz = implode("; ", $vaiii[1]);

return $coferenz. ":" . $auth;

}

// Função do mass follow e Verify caso queira mais funcoes contate (contato@ferenz.com.br)

function follow($coferenz, $follow, $authh, $ip, $porta) {

$posta = "authenticity_token=". rawurlencode($authh). "&commit=Seguir";

$chb = curl_init;

curl_setopt_array($chb, Array(

CURLOPT_PROXY => $ip,

CURLOPT_PROXYPORT => $porta,

CURLOPT_URL => "https://mobile.twitter.com/".$follow."/follow",

CURLOPT_SSL_VERIFYPEER => false,

CURLOPT_RETURNTRANSFER => true,

CURLOPT_TIMEOUT => 13,

CURLOPT_USERAGENT => "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/Ferenz Safari/419.3",

CURLOPT_HEADER => true,

CURLOPT_REFERER => 'https://mobile.twitter.com',

CURLOPT_CUSTOMREQUEST => "POST",

CURLOPT_POST => true,

CURLOPT_POSTFIELDS => $posta,

CURLOPT_COOKIE => $coferenz

));

curl_exec($chb);

curl_close($chb);

}

?>