mirror of
https://github.com/GrandDuke1106/MCBBSAutoSignIn.git
synced 2024-11-16 17:35:46 -05:00
28 lines
806 B
PHP
28 lines
806 B
PHP
|
<?php
|
||
|
|
||
|
set_time_limit(130);
|
||
|
|
||
|
require(__DIR__ . '/../src/autoloader.php');
|
||
|
|
||
|
$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
|
||
|
|
||
|
try {
|
||
|
$result = $solver->funcaptcha([
|
||
|
'sitekey' => '69A21A01-CC7B-B9C6-0F9A-E7FA06677FFC',
|
||
|
'url' => 'https://mysite.com/page/with/funcaptcha',
|
||
|
'surl' => 'https://client-api.arkoselabs.com',
|
||
|
'userAgent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36',
|
||
|
'data' => [
|
||
|
'anyKey' => 'anyStringValue',
|
||
|
],
|
||
|
'proxy' => [
|
||
|
'type' => 'HTTPS',
|
||
|
'uri' => 'login:password@IP_address:PORT',
|
||
|
],
|
||
|
]);
|
||
|
} catch (\Exception $e) {
|
||
|
die($e->getMessage());
|
||
|
}
|
||
|
|
||
|
die('Captcha solved: ' . $result->code);
|