mirror of
https://github.com/feder-cr/invisible_playwright.git
synced 2026-06-07 08:35:12 +02:00
Stealthfox — a patched Firefox 150.0.1 for browser-fingerprint stealth,
shipped as a Playwright-compatible Python wrapper.
* Sync + async Stealthfox launcher (firefox_user_prefs, virtual desktop
on Windows, SOCKS5 auth via patched nsProtocolProxyService)
* fpforge: Bayesian fingerprint sampler over GPU / audio / fonts /
screen / TCP options / ~400 other navigator fields
* WebRTC stealth: srflx address swap, synthetic srflx fallback,
private-LAN host candidates — no real public IP leak via STUN
* GPU sandbox fix for FF150 alt-desktop regression
* Bezier-curve mouse motion baked into Juggler
Targets Windows x86_64 + Linux x86_64. Binary fetched on first run from
GitHub Release "firefox-1".
29 lines
787 B
Python
29 lines
787 B
Python
from stealthfox.constants import BINARY_VERSION, BINARY_BASENAME, ARCHIVE_NAME
|
|
|
|
|
|
def test_binary_version_format():
|
|
assert BINARY_VERSION.startswith("firefox-")
|
|
assert BINARY_VERSION.split("-", 1)[1].isdigit()
|
|
|
|
|
|
def test_archive_name_windows():
|
|
name = ARCHIVE_NAME("win32", "AMD64")
|
|
assert name.endswith(".zip")
|
|
assert "win-x86_64" in name
|
|
|
|
|
|
def test_archive_name_linux():
|
|
name = ARCHIVE_NAME("linux", "x86_64")
|
|
assert name.endswith(".tar.gz")
|
|
assert "linux-x86_64" in name
|
|
|
|
|
|
def test_archive_name_unsupported_raises():
|
|
import pytest
|
|
with pytest.raises(NotImplementedError):
|
|
ARCHIVE_NAME("darwin", "arm64")
|
|
|
|
|
|
def test_binary_basename_format():
|
|
assert "firefox" in BINARY_BASENAME.lower()
|
|
assert "stealth" in BINARY_BASENAME.lower()
|