Quote:
<?php
set_time_limit(420);
ignore_user_abort(true);
$accounts = array("name1", "name2", "...");
$siteIDs = array("1", "2", "3", "5", "8", "15", "16");
echo "Account count: ".count($accounts)."<br>";
echo "Wait, voting in progress..<br><br>";
flush();
/* Stolen from the official site:
* <form action="http://site.com/vote.php" method="post" target="_blank">
<input type="text" name="vote_account" />
<input type="hidden" name="vote_id" value="'+siteID+'">
<input type="submit" name="Vote!" value="Vote!">
</form>*/
function PostRequest($url, $referer, $_data)
{
$data = array();
while(list($n,$v) = each($_data)){
$data[] = "$n=$v";
}
$data = implode('&', $data);
// format --> test1=a&test2=b etc.
// parse the given URL
$url = parse_url($url);
if ($url['scheme'] != 'http') {
die('Only HTTP request are supported !');
}
// extract host and path:
$host = $url['host'];
$path = $url['path'];
// open a socket connection on port 80
$fp = fsockopen($host, 80);
// send the request headers:
fputs($fp, "POST $path HTTP/1.1\r\n");
fputs($fp, "Host: $host\r\n");
fputs($fp, "Referer: $referer\r\n");
fputs($fp, "Content-type: application/x-www-form-urlencoded\r\n");
fputs($fp, "Content-length: ". strlen($data) ."\r\n");
fputs($fp, "Connection: close\r\n\r\n");
fputs($fp, $data);
$result = '';
// receive the results of the request
while(!feof($fp)) {
$result .= fgets($fp, 128);
}
// close the socket connection:
fclose($fp);
// split the result header from the content
$result = explode("\r\n\r\n", $result, 2);
$header = isset($result[0]) ? $result[0] : '';
$content = isset($result[1]) ? $result[1] : '';
return array($header, $content);
}
for($i=0; $i<count($accounts); $i++)
{
//$i=0;
echo "voting on ".$accounts[$i].": ";
flush();
for($j=0; $j<count($siteIDs); $j++)
{
echo $siteIDs[$j].", ";
flush();
$data = array('vote_account' => $accounts[$i], 'vote_id' => $siteIDs[$j]);
PostRequest("http://site.com/something/vote.php", "http://site.com.com/something/", $data);
}
echo " - done<br>";
flush();
}
echo "<br><b>All done!</b>";
?>
|
this is the working thing for the other private server from rf.
now i got the problem, that the other one doesnt have siteids but a real url
this is from the "votesymbol" taken from the private server site
javascript
:votesystem(
[Only registered and activated users can see links. Click Here To Register...] Top 100','Accountname')
hope someone knows what i mean lol
here something i got when i used parosproxy
vote_account=accountname&vote_id=http%3A%2F%2Fwww. xtremetop100.com%2Fin.php%3Fsite%3D1xxxx84xx&Vote% 21=Vote%21
if anyone knows where the problem is and wants to test or something pm me for the real urls, i changed it a little bit, not sure if that was a good idea :P