Skip to main content

Crate jsdet_browser

Crate jsdet_browser 

Source
Expand description

§jsdet-browser — Browser API bridges for URL detonation

Implements the Bridge trait with a complete fake browser environment:

  • DOM — Arena-allocated HTML tree. document.createElement, querySelector, getAttribute, innerHTML, appendChild, etc.
  • Windowlocation, open, history, postMessage, setTimeout, setInterval
  • NavigatoruserAgent, platform, language, clipboard (persona-configurable)
  • Networkfetch(), XMLHttpRequest (programmable fake responses, no real network)
  • StoragelocalStorage, sessionStorage, document.cookie
  • CanvastoDataURL() returns template-based fingerprints from real Chrome captures
  • CSSgetComputedStyle(), selector matching for keylogger detection
  • MutationMutationObserver backed by the observation stream
  • Persona — Configurable UA, platform, timezone, screen resolution, referrer

Used by Sear for URL detonation. Each module is a separate file implementing a focused piece of the browser API surface.

Re-exports§

pub use bridge::BrowserBridge;
pub use dom::Dom;
pub use persona::Persona;
pub use sear_compat::SandboxSummary;

Modules§

bridge
canvas
css
dom
har
mutation
navigator
network
persona
sear_compat
storage
window