Documentation
¶
Overview ¶
Package obfuscator transforms injected JavaScript into a semantically equivalent but structurally different form on every request, making signature-based detection ineffective against static fingerprinting.
Index ¶
Constants ¶
View Source
const ( MarkerStart = "/* __mirage_injected_start__ */" MarkerEnd = "/* __mirage_injected_end__ */" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeObfuscator ¶
type NodeObfuscator struct {
// contains filtered or unexported fields
}
func NewNodeObfuscator ¶
func NewNodeObfuscator(cfg config.ObfuscatorConfig, logger *slog.Logger) (*NodeObfuscator, error)
NewNodeObfuscator starts cfg.MaxConcurrent sidecar processes. Returns an error if any process fails to start (e.g. node not in PATH, sidecar/node_modules not installed). Callers should fall back to NopObfuscator on error.
type NopObfuscator ¶
type NopObfuscator struct{}
NopObfuscator is the identity transform. Used when obfuscation is disabled or as a fallback when the Node sidecar is unavailable.
Click to show internal directories.
Click to hide internal directories.