pub struct PeripheralStealthConfig {
pub iframe_inner_width: bool,
pub always_visible: bool,
pub fake_media_devices: bool,
pub block_port_scan: bool,
pub history_length: bool,
pub raf_timing: bool,
pub pdf_viewer: bool,
pub seed: NoiseSeed,
}Expand description
Per-subsystem toggles for peripheral stealth injection.
§Example
use stygian_browser::peripheral_stealth::PeripheralStealthConfig;
use stygian_browser::noise::NoiseSeed;
let cfg = PeripheralStealthConfig::default_with_seed(NoiseSeed::from(1_u64));
assert!(cfg.iframe_inner_width);
assert!(cfg.always_visible);
assert!(cfg.fake_media_devices);
assert!(cfg.block_port_scan);
assert!(cfg.history_length);
assert!(cfg.raf_timing);
assert!(cfg.pdf_viewer);Fields§
§iframe_inner_width: boolAdjust iframe contentWindow.innerWidth to differ from parent.
always_visible: boolForce document.hidden = false / visibilityState = "visible".
fake_media_devices: boolReturn platform-appropriate fake camera/microphone devices.
block_port_scan: boolBlock fetch/XHR to localhost probe ports silently.
history_length: boolOverride history.length to a plausible value (3–8).
raf_timing: boolAdd per-frame jitter to requestAnimationFrame.
pdf_viewer: boolEnsure navigator.pdfViewerEnabled returns true.
seed: NoiseSeedNoise seed for deterministic device IDs and history length.
Implementations§
Source§impl PeripheralStealthConfig
impl PeripheralStealthConfig
Sourcepub const fn default_with_seed(seed: NoiseSeed) -> Self
pub const fn default_with_seed(seed: NoiseSeed) -> Self
All subsystems enabled, with a given seed.
§Example
use stygian_browser::peripheral_stealth::PeripheralStealthConfig;
use stygian_browser::noise::NoiseSeed;
let cfg = PeripheralStealthConfig::default_with_seed(NoiseSeed::from(42_u64));
assert!(cfg.iframe_inner_width);Trait Implementations§
Source§impl Clone for PeripheralStealthConfig
impl Clone for PeripheralStealthConfig
Source§fn clone(&self) -> PeripheralStealthConfig
fn clone(&self) -> PeripheralStealthConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PeripheralStealthConfig
impl Debug for PeripheralStealthConfig
Source§impl Default for PeripheralStealthConfig
impl Default for PeripheralStealthConfig
Source§impl<'de> Deserialize<'de> for PeripheralStealthConfig
impl<'de> Deserialize<'de> for PeripheralStealthConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PeripheralStealthConfig
impl RefUnwindSafe for PeripheralStealthConfig
impl Send for PeripheralStealthConfig
impl Sync for PeripheralStealthConfig
impl Unpin for PeripheralStealthConfig
impl UnsafeUnpin for PeripheralStealthConfig
impl UnwindSafe for PeripheralStealthConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more