mirror of
https://github.com/GrandDuke1106/MCBBSAutoSignIn.git
synced 2025-01-23 16:17:28 -05:00
19 lines
416 B
PHP
19 lines
416 B
PHP
<?php
|
|
|
|
set_time_limit(130);
|
|
|
|
require(__DIR__ . '/../src/autoloader.php');
|
|
|
|
$image = __DIR__ . '/images/canvas.jpg';
|
|
$base64 = base64_encode(file_get_contents($image));
|
|
|
|
$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
|
|
|
|
try {
|
|
$result = $solver->canvas(['base64' => $base64, 'hintText' => 'Draw around apple']);
|
|
} catch (\Exception $e) {
|
|
die($e->getMessage());
|
|
}
|
|
|
|
die('Captcha solved: ' . $result->code);
|