-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathtemu.php
More file actions
31 lines (21 loc) · 744 Bytes
/
temu.php
File metadata and controls
31 lines (21 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
use TwoCaptcha\TwoCaptcha;
set_time_limit(610);
require(__DIR__ . '/../src/autoloader.php');
//$argv[1] = YOUR_API_KEY
$solver = new TwoCaptcha($argv[1]);
$body = base64_encode(file_get_contents(__DIR__ . '/resources/temu/body.png'));
$part1 = base64_encode(file_get_contents(__DIR__ . '/resources/temu/part1.png'));
$part2 = base64_encode(file_get_contents(__DIR__ . '/resources/temu/part2.png'));
$part3 = base64_encode(file_get_contents(__DIR__ . '/resources/temu/part3.png'));
try {
$result = $solver->temu([
'body' => $body,
'part1' => $part1,
'part2' => $part2,
'part3' => $part3,
]);
} catch (\Exception $e) {
die($e->getMessage());
}
die('Captcha solved: ' . $result->code);