mirror of
https://github.com/GrandDuke1106/MCBBSAutoSignIn.git
synced 2024-10-01 16:26:11 -04:00
26 lines
618 B
PHP
26 lines
618 B
PHP
<?php
|
|
|
|
set_time_limit(130);
|
|
|
|
require(__DIR__ . '/../src/autoloader.php');
|
|
|
|
$solver = new \TwoCaptcha\TwoCaptcha('YOUR_API_KEY');
|
|
|
|
try {
|
|
$result = $solver->rotate([
|
|
'files' => [
|
|
__DIR__ . '/images/rotate.jpg',
|
|
__DIR__ . '/images/rotate_2.jpg',
|
|
__DIR__ . '/images/rotate_3.jpg',
|
|
],
|
|
'angle' => 40,
|
|
'lang' => 'en',
|
|
// 'hintImg' => __DIR__ . '/images/rotate_hint.jpg'
|
|
'hintText' => 'Put the images in the correct way up',
|
|
]);
|
|
} catch (\Exception $e) {
|
|
die($e->getMessage());
|
|
}
|
|
|
|
die('Captcha solved: ' . $result->code);
|