mirror of
https://github.com/GrandDuke1106/MCBBSAutoSignIn.git
synced 2024-10-01 16:26:11 -04:00
27 lines
664 B
PHP
27 lines
664 B
PHP
<?php
|
|
|
|
set_time_limit(130);
|
|
|
|
require(__DIR__ . '/../src/autoloader.php');
|
|
|
|
$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
|
|
|
|
try {
|
|
$result = $solver->normal([
|
|
'file' => __DIR__ . '/images/normal_2.jpg',
|
|
'numeric' => 4,
|
|
'minLen' => 4,
|
|
'maxLen' => 20,
|
|
'phrase' => 1,
|
|
'caseSensitive' => 1,
|
|
'calc' => 0,
|
|
'lang' => 'en',
|
|
// 'hintImg' => __DIR__ . '/images/normal_hint.jpg',
|
|
// 'hintText' => 'Type red symbols only',
|
|
]);
|
|
} catch (\Exception $e) {
|
|
die($e->getMessage());
|
|
}
|
|
|
|
die('Captcha solved: ' . $result->code);
|