mirror of
https://github.com/GrandDuke1106/MCBBSAutoSignIn.git
synced 2024-10-01 16:26:11 -04:00
20 lines
439 B
PHP
20 lines
439 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' => 'https://www.mysite.com/captcha/',
|
|
'api_server' => 'https://jp.api.capy.me/'
|
|
]);
|
|
} catch (\Exception $e) {
|
|
die($e->getMessage());
|
|
}
|
|
|
|
die('Captcha solved: ' . $result->code);
|