black hat method.

sergbot

Junior Member
Joined
Jan 20, 2010
Messages
176
Reaction score
10
anyway, i really need help, i never did anything like this so im asking you guys.

basically there is a website, where you have to click 4 buttons, and then wait 60 seconds and click the final button. this is where you get a code.

i need to write a php script that will use a proxy list and will mimic a php form being sent so it will get to the code immediately and then will save all the codes in php file.

this is the page im talking about
unled2mh.png


and this is where its located on the web, for those who need to use it

http://199.59.163.134/vote/vote.php

does anyone know how to do any of this?

thank you in advance, i love you all.
 
Last edited:
I was bored so here's a start. I am posting this just as an example. I don't support the use of cheating scripts, the voting buttons are there for a reason.
PHP:
<?
$proxy='127.0.0.1:8800'; //your proxy here, you could write a script to load from file

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://199.59.163.134/vote/vote.php'); //url of page
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
//curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'user:password');
curl_setopt($ch,CURLOPT_POST,2);
curl_setopt($ch,CURLOPT_POSTFIELDS,'confirm=true&voteid=');  //really only one form field for validation

$result = curl_exec($ch);
curl_close($ch);

preg_match_all('/auth-(.*?) /',$result,$matches);
$code=$matches[1][1];
echo $code; //there's your code you could add it to DB etc..
?>

You could modify it to load proxies from a file.

Cheers!
 
Last edited:
I was bored so here's a start. I am posting this just as an example. I don't support the use of cheating scripts, the voting buttons are there for a reason.
PHP:
<?
$proxy='127.0.0.1:8800'; //your proxy here, you could write a script to load from file

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://199.59.163.134/vote/vote.php'); //url of page
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
//curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'user:password');
curl_setopt($ch,CURLOPT_POST,2);
curl_setopt($ch,CURLOPT_POSTFIELDS,'confirm=true&voteid=');  //really only one form field for validation

$result = curl_exec($ch);
curl_close($ch);

preg_match_all('/auth-(.*?) /',$result,$matches);
$code=$matches[1][1];
echo $code; //there's your code you could add it to DB etc..
?>

You could modify it to load proxies from a file.

Cheers!

lol okay, im gonna start by thanking, and giving u thanx + rep lol. im trying 2 understand the script. did you rip this off? or did u write this? im impressed.

anyway.

how does the script go to the final page? i saw some variables, do you need to specifically get the variables? because i know of a copy of this voting pages source floating around.
 
I was bored so here's a start. I am posting this just as an example. I don't support the use of cheating scripts, the voting buttons are there for a reason.
PHP:
<?
$proxy='127.0.0.1:8800'; //your proxy here, you could write a script to load from file

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://199.59.163.134/vote/vote.php'); //url of page
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, 1);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
//curl_setopt($ch, CURLOPT_PROXYUSERPWD, 'user:password');
curl_setopt($ch,CURLOPT_POST,2);
curl_setopt($ch,CURLOPT_POSTFIELDS,'confirm=true&voteid=');  //really only one form field for validation

$result = curl_exec($ch);
curl_close($ch);

preg_match_all('/auth-(.*?) /',$result,$matches);
$code=$matches[1][1];
echo $code; //there's your code you could add it to DB etc..
?>

You could modify it to load proxies from a file.

Cheers!

Next time you're bored hit me up, I got some jobs for you haha :)
 
when i grow up i wanna be like him

damn i got 8 months 2 be like him -.- why cruel world, why did i sit on my ass and do nothing all my life
 
lol okay, im gonna start by thanking, and giving u thanx + rep lol. im trying 2 understand the script. did you rip this off? or did u write this? im impressed.

anyway.

how does the script go to the final page? i saw some variables, do you need to specifically get the variables? because i know of a copy of this voting pages source floating around.

There was a couple of variables that it checks when you vote setVoteStatus(a) voteTimer() but they just keep the page from submitting the form (document.forms.voted.submit()). So the script I set up for you, skips all that and just submits the form.

Just an example of why all validation should be done server side not client.
 
There was a couple of variables that it checks when you vote setVoteStatus(a) voteTimer() but they just keep the page from submitting the form (document.forms.voted.submit()). So the script I set up for you, skips all that and just submits the form.

Just an example of why all validation should be done server side not client.

Fatal error: Call to undefined function curl_init() in C:\xampp\htdocs\code.php on line 4

confused. spoon feed plz
 
Use phpinfo() to make sure curl is installed/enabled.

yeah i did so it works now. but now im getting
Code:
Notice: Undefined offset: 1 in C:\xampp\htdocs\code.php on line 18

it seems that the result variable is empty.
 
Last edited:
yeah i did so it works now. but now im getting
Code:
Notice: Undefined offset: 1 in C:\xampp\htdocs\code.php on line 18

it seems that the result variable is empty.

The array must be empty, try to comment out the preg_match and the array and just print_r($result) to see if the page is correct.

The vote script checks if port 80 is open to avoid public proxies. So that could be a problem.

If the page is correct print_r($matches) to see preg_match is finding the result.

Good luck!
 
The array must be empty, try to comment out the preg_match and the array and just print_r($result) to see if the page is correct.

The vote script checks if port 80 is open to avoid public proxies. So that could be a problem.

If the page is correct print_r($matches) to see preg_match is finding the result.

Good luck!

fuck ya, shit works lol.

im gonna rep u a few more times lol.

also.

now i need proxy lists >.>
 
The array must be empty, try to comment out the preg_match and the array and just print_r($result) to see if the page is correct.

The vote script checks if port 80 is open to avoid public proxies. So that could be a problem.

If the page is correct print_r($matches) to see preg_match is finding the result.

Good luck!

it works but for 1/10 proxies
 
Back
Top