Install tor
first.
On Mac OS X, install typing brew install tor
.
<?php
$b = new Brutor([
'times_per_ip' => 3,
'times' => 'forever',
'sleep_per_ip' => 10,
'sleep' => 120,
'random_ua' => true,
'curl_request' => "'http://www.google.com' -X POST -H 'Origin: http://www.google.com'",
'curl_continue' => function() { return true; },
'curl_continue_per_ip' => function($resp) {
return !!preg_match("/something/i", $resp);
}
]);
$b->start();
The CURL shell request
A callback that parses (optionally) the request and can break the entire cycle
A callback that parses (optionally) the request and can break the requests per IP
Set how many times make requests per IP
Set how many times make requets globally
Set how many seconds sleep after each request per IP
Set how many seconds sleep after each grouped request
Set to true
to random user agents for each request