mirror of
https://github.com/GrandDuke1106/MCBBSAutoSignIn.git
synced 2024-10-01 16:26:11 -04:00
23 lines
508 B
PHP
23 lines
508 B
PHP
<?php
|
|
|
|
set_time_limit(130);
|
|
|
|
require(__DIR__ . '/../src/autoloader.php');
|
|
|
|
$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
|
|
|
|
try {
|
|
$result = $solver->hcaptcha([
|
|
'sitekey' => '10000000-ffff-ffff-ffff-000000000001',
|
|
'url' => 'https://www.site.com/page/',
|
|
'proxy' => [
|
|
'type' => 'HTTPS',
|
|
'uri' => 'login:password@IP_address:PORT',
|
|
],
|
|
]);
|
|
} catch (\Exception $e) {
|
|
die($e->getMessage());
|
|
}
|
|
|
|
die('Captcha solved: ' . $result->code);
|