Private Server Autovote

08/20/2010 12:50 st33lcap#1
Hi,

i got some code from an old rf private server i played on and which one i used for autovoting on all my accounts. now i got trouble changing it to another private servers vote "System". its pretty much the same, just doesnt work as i want it to. im not really a coder so i got some trouble figuring it out.
if anyone wants to help me with this .) its written in php and really simple... it doesnt really need to do anything except submitting a form for the right side with account name...
08/20/2010 13:02 Madd Eye#2
you can post your code here then we can help you

if you only want one guy who want payment to code this for you pleas post it again in the Request Section of the forum
08/20/2010 13:54 st33lcap#3
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
08/20/2010 14:22 Madd Eye#4
The Code has no mistake but this won't work for this, because the Votesite use Javascript for the Votingsystem, which means that no form is used so you can, with some researches you can find an url and then you can have success with a hitfaker
08/20/2010 15:24 st33lcap#5
Quote:
Originally Posted by Madd Eye View Post
The Code has no mistake but this won't work for this, because the Votesite use Javascript for the Votingsystem, which means that no form is used so you can, with some researches you can find an url and then you can have success with a hitfaker
i forgot that i got this link also

javascript:votesystem('http://xtremetop100.com/in.php?site=11323xxxxx','XTreme Top 100','accountname')

[Only registered and activated users can see links. Click Here To Register...]

does that help?