mirror of
https://github.com/GrandDuke1106/MCBBSAutoSignIn.git
synced 2024-09-28 23:06:03 -04:00
19 lines
366 B
PHP
19 lines
366 B
PHP
<?php
|
|
|
|
set_time_limit(130);
|
|
|
|
require(__DIR__ . '/../src/autoloader.php');
|
|
|
|
$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
|
|
|
|
try {
|
|
$result = $solver->canvas([
|
|
'file' => __DIR__ . '/images/canvas.jpg',
|
|
'hintText' => 'Draw around apple',
|
|
]);
|
|
} catch (\Exception $e) {
|
|
die($e->getMessage());
|
|
}
|
|
|
|
die('Captcha solved: ' . $result->code);
|