nexusphp

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package nexusphp implements the NexusPHP-schema CloakBrowser driver. Phase 1 sentinel: T11 must pass before T12-T14 (Unit3D, Gazelle, mTorrent CloakBrowser drivers) may proceed in parallel (Metis AP-1).

The driver is the v2.0 fallback transport for NexusPHP-schema sites where cookie-only HTTP probing is blocked by Cloudflare/ja3 fingerprinting. It is invoked by the cloakdriver dispatcher when a site has EnableCloakFallback=true and the HTTP probe (T4) returned a fallback-eligible status (RATE_LIMITED / CHALLENGE / NETWORK_ERROR).

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 NexusPHP-schema CloakBrowser transport.

func NewDriver

func NewDriver(manager cloakdriver.ManagerClient) *Driver

NewDriver constructs a NexusPHP 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 (launch → CDP connect → inject cookies → navigate → extract → close) and returns a populated *sitelogin.ProbeResult with Source=ProbeSourceCloak.

The (result, err) tuple follows v1 probe convention: classification errors are encoded into the result; only programming-level errors (nil manager, empty URL, empty profile) return non-nil err.

R35 (clear-before-inject) is enforced inside CDPSession.InjectCookies. The launched profile is always Stop()ped via defer, even on error. Timestamps in the result are UTC-normalised.

Jump to

Keyboard shortcuts

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