-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgeetest_options.php
More file actions
33 lines (27 loc) · 905 Bytes
/
geetest_options.php
File metadata and controls
33 lines (27 loc) · 905 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
31
32
33
<?php
set_time_limit(130);
require(__DIR__ . '/../src/autoloader.php');
$solver = new \SolveCaptcha\SolveCaptcha([
'apiKey' => 'YOUR_API_KEY',
'server' => 'https://solvecaptcha.com'
]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://launches.endclothing.com/distil_r_captcha_challenge");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$resp = curl_exec($ch);
$challenge = explode(";", $resp)[0];
try {
$result = $solver->geetest([
'gt' => 'f2ae6cadcf7886856696502e1d55e00c',
'apiServer' => 'api-na.geetest.com',
'challenge' => $challenge,
'url' => 'https://launches.endclothing.com/distil_r_captcha.html',
'proxy' => [
'type' => 'HTTPS',
'uri' => 'login:password@IP_address:PORT',
],
]);
} catch (\Exception $e) {
die($e->getMessage());
}
die('Captcha solved: ' . $result->code);