unit3d

package
v0.45.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package unit3d implements the Unit3D-schema CloakBrowser driver. Unit3D is a Laravel-based PT site framework (BLU, HUNO, Aither, etc.). The HTTP probe path uses the JSON API (/api/user); this CloakBrowser fallback scrapes the rendered HTML user page when Cloudflare/ja3 fingerprinting blocks cookie-based HTTP probing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Manager cloakdriver.ManagerClient
}

Driver is the Unit3D-schema CloakBrowser transport.

func NewDriver

func NewDriver(manager cloakdriver.ManagerClient) *Driver

NewDriver constructs a Unit3D CloakBrowser driver bound to the given Manager client (T8).

func (*Driver) Probe

func (d *Driver) Probe(
	ctx context.Context,
	indexURL string,
	cookies []*http.Cookie,
	profileID string,
) (*sitelogin.ProbeResult, error)

Probe runs the full CloakBrowser lifecycle against a Unit3D site and returns a populated *sitelogin.ProbeResult with Source=ProbeSourceCloak.

Classification errors are encoded into the result; only programming errors (nil manager, empty URL, empty profile) return non-nil err. Timestamps in the result are UTC-normalised. R35 (clear-before-inject) is enforced inside CDPSession.InjectCookies. The launched profile is always Stop()ped via defer, even on error.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL