Skip to main content

Crate zendriver_stealth

Crate zendriver_stealth 

Source
Expand description

Anti-detection profiles and patches for zendriver.

See the Stealth chapter of the zendriver-rs user guide for profile trade-offs, the sannysoft test matrix, and platform-spoofing recipes.

Three stealth modes, exposed via StealthProfile:

Most users go through zendriver’s BrowserBuilder::stealth(...):

use zendriver_stealth::{Platform, StealthProfile};

let profile = StealthProfile::spoofed()
    .platform(Platform::MacIntel)
    .locale("en-US")
    .timezone("America/Los_Angeles");

assert!(profile.bypass_csp_enabled());
assert!(!profile.build_flags().is_empty());

The StealthObserver type plugs into zendriver-transport’s observer chain and applies the resolved Fingerprint / bootstrap to every newly attached page target before Chrome releases the debugger.

Re-exports§

pub use error::StealthError;
pub use fingerprint::Brand;
pub use fingerprint::Fingerprint;
pub use fingerprint::UserAgentMetadata;
pub use flags::GpuBackend;
pub use gpu::device_select::DeviceLookupError;
pub use gpu::device_select::GpuDevice;
pub use gpu::GlParam;
pub use gpu::GpuProfile;
pub use gpu::Provenance;
pub use gpu::ShaderPrecision;
pub use input_profile::InputProfile;
pub use lang::accept_language;
pub use observer::StealthObserver;
pub use profile::Platform;
pub use profile::ProfileKind;
pub use profile::StealthProfile;
pub use persona::seed::Seed;
pub use persona::specs::FontSpec;
pub use persona::specs::HardwareSpec;
pub use persona::specs::ScreenSpec;
pub use persona::specs::SurfaceCfg;
pub use persona::specs::UaMetadata;
pub use persona::specs::UaSpec;
pub use persona::specs::WebglSpec;
pub use persona::specs::WebgpuSpec;
pub use persona::specs::WebrtcSpec;
pub use persona::surface::Strategy;
pub use persona::surface::Surface;
pub use persona::surface::SurfaceKind;
pub use persona::GeoPos;
pub use persona::JsProbe;
pub use persona::Persona;
pub use persona::PersonaBuilder;

Modules§

error
Stealth-layer errors.
fingerprint
Fingerprint: composed UA + Sec-CH-UA metadata + system facts.
flags
Chrome launch flags for stealth profiles.
geo
Country -> locale/languages/timezone derivation from a vendored Unicode CLDR table and a vendored IANA tz-database table.
gpu
Coherent per-GPU value tables and the profile resolved from them.
input_profile
Input realism tunables — typing typo rate, mouse jitter, etc.
lang
Locale list -> header/JS derivations. Always available (no feature gate); the observer formats Accept-Language from these.
observer
StealthObserver: applies a StealthProfile to each new attached target.
patches
Bundles individual patches into a bootstrap script driven by a Persona (the surface-spoofing config) plus a Fingerprint (coherent UA / Chrome identity probed at launch).
persona
Persona: the unified fingerprint configuration.
profile
Profile types: ProfileKind enum, Platform enum, PerFieldOverride struct, plus the StealthProfile builder.
ua
User-Agent string composition.