mirror of
https://github.com/GrandDuke1106/MCBBSAutoSignIn.git
synced 2024-10-03 01:06:11 -04:00
24 lines
548 B
PHP
24 lines
548 B
PHP
|
<?php
|
||
|
|
||
|
set_time_limit(130);
|
||
|
|
||
|
require(__DIR__ . '/../src/autoloader.php');
|
||
|
|
||
|
$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
|
||
|
|
||
|
try {
|
||
|
$result = $solver->capy([
|
||
|
'sitekey' => 'PUZZLE_Abc1dEFghIJKLM2no34P56q7rStu8v',
|
||
|
'url' => 'http://mysite.com/',
|
||
|
'api_server' => 'https://jp.api.capy.me/',
|
||
|
'proxy' => [
|
||
|
'type' => 'HTTPS',
|
||
|
'uri' => 'login:password@IP_address:PORT',
|
||
|
],
|
||
|
]);
|
||
|
} catch (\Exception $e) {
|
||
|
die($e->getMessage());
|
||
|
}
|
||
|
|
||
|
die('Captcha solved: ' . $result->code);
|