stealthhttp 0.9.1__tar.gz → 0.9.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/Cargo.lock +1 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/Cargo.toml +2 -1
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/PKG-INFO +1 -1
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/pyproject.toml +1 -1
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/__init__.py +1 -1
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/_fallback.py +6 -2
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/behavior.py +22 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/clienthints.py +10 -7
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/coherence.py +4 -4
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/src/fingerprint/profile.rs +17 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/src/transport/engine.rs +64 -8
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/src/transport/tls.rs +29 -11
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_fingerprint.py +3 -3
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_jsemu.py +2 -1
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_jsemu_live.py +3 -2
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/.cargo/config.toml +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/.github/workflows/release.yml +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/.gitignore +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/CHANGELOG.md +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/LICENSE +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/README.md +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/benchmarks/bench.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/benchmarks/bench_native.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/examples/basic.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/_loader.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/_rotation.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/adaptive_persona.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/ambient.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/antidetect.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/async_session.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/auto_bypass.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/auto_profile.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/auto_update.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/backends/__init__.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/backends/base.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/backends/curl_backend.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/backends/native_backend.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/backends/wreq_backend.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/browser_cookies.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/browser_fsm.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/browser_pool.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/browsing.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/bypasses/__init__.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/bypasses/akamai.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/bypasses/captcha.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/bypasses/cloudflare.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/bypasses/datadome.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/bypasses/flow.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/bypasses/imperva.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/bypasses/kasada.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/bypasses/perimeterx.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/bypasses/shape.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/bypasses/solver.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/canvas_webgl_sim.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/capabilities.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/captcha.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/captcha_farm.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/cdp_solver.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/cdp_transport.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/challenge.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/challenge_vm.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/collectors/__init__.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/collectors/akamai.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/collectors/datadome.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/collectors/imperva.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/collectors/kasada.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/collectors/perimeterx.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/collectors/shape.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/consistency.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/cookie_intel.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/cookies.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/cover_traffic.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/detection.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/device_db.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/dns_intel.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/dns_tunnel.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/doh.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/entropy_mask.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/error_analysis.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/exceptions.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/fingerprint_diff.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/forms.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/geo.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/graphql.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/h2_frames.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/har.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/header_canon.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/health_monitor.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/honeypot_oracle.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/hooks.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/hsts.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/httpcache.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/humanize.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/identity.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/immortal.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/js_sandbox.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/jsdb.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/jsdb_ext.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/jsenv.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/jsenv_types.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/lifecycle.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/lint.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/mesh.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/middleware.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/multipart.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/parsing.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/poison_detect.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/pow.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/predictive_rate.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/prepare.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/proto_chameleon.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/proxy.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/proxy_scoring.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/quic_fingerprint.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/record_replay.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/redirect_intel.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/replay_attack.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/request_graph.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/resp_diff.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/response.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/response_decoder.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/response_intel.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/retry.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/rhythm.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/rotation.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/self_audit.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/selfcheck.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/sensors.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/session.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/session_coord.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/session_dna.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/session_ext.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/site_recipes.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/smart_proxy.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/smart_retry.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/solving/__init__.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/solving/audio.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/solving/base.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/solving/browser.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/solving/local.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/solving/orchestrator.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/solving/providers.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/solving/vision.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/stealth_audit.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/strategy.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/synth_fingerprint.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/tcp_tuning.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/tests/test_cdp_solver.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/tests/test_features_v3.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/tests/test_features_v3_live.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/tests/test_v030_features.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/tests/test_v040_features.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/tests/test_v050_batch1.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/tests/test_v050_batch2.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/tests/test_v050_integrations.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/tests/test_v050_live.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/tls_clone.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/tls_ext.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/tls_intel.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/tls_session.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/traffic.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/traffic_morph.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/waf_recon.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/websocket.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/python/stealthhttp/ws_tunnel.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/src/fingerprint/headers.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/src/fingerprint/ja3.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/src/fingerprint/ja4.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/src/fingerprint/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/src/lib.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/src/pow.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/src/proxypool.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/src/rotation.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/src/transport/decode.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/src/transport/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/conftest.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_audio.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_bypass.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_bypasses.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_bypasses_live.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_emulation.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_features_v2.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_features_v2_live.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_humanize.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_live_bypass.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_live_detection.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_live_trust.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_new_features.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_policies.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_routing.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_session.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_solving.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/tests/test_vision.py +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/.github/FUNDING.yml +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/.github/workflows/CI.yml +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/.gitignore +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/CHANGELOG.md +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/CONTRIBUTING.md +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/Cargo.toml +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/LICENSE +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/README.md +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/benches/main.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/examples/akamai.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/examples/client.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/examples/server.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/client.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/codec/error.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/codec/framed_read.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/codec/framed_write.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/codec/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/error.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/ext.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/frame/data.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/frame/go_away.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/frame/head.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/frame/headers.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/frame/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/frame/ping.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/frame/priority.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/frame/reason.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/frame/reset.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/frame/settings.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/frame/stream_id.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/frame/util.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/frame/window_update.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/fuzz_bridge.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/hpack/decoder.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/hpack/encoder.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/hpack/header.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/hpack/huffman/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/hpack/huffman/table.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/hpack/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/hpack/table.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/hpack/test/fixture.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/hpack/test/fuzz.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/hpack/test/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/lib.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/connection.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/error.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/go_away.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/peer.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/ping_pong.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/settings.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/streams/buffer.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/streams/counts.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/streams/flow_control.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/streams/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/streams/prioritize.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/streams/recv.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/streams/send.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/streams/state.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/streams/store.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/streams/stream.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/proto/streams/streams.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/server.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/h2/src/share.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/Cargo.toml +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/LICENSE +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/README.md +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/body/incoming.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/body/length.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/body/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/cfg.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/client/conn/http1.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/client/conn/http2.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/client/conn/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/client/dispatch.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/client/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/client/tests.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/common/buf.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/common/date.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/common/either.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/common/future.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/common/io/compat.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/common/io/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/common/io/rewind.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/common/lock.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/common/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/common/task.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/common/time.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/common/watch.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/error.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/ext/h1_reason_phrase.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/ext/informational.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/ext/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/ffi/body.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/ffi/client.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/ffi/error.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/ffi/http_types.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/ffi/io.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/ffi/macros.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/ffi/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/ffi/task.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/headers.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/lib.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/mock.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/proto/h1/conn.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/proto/h1/decode.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/proto/h1/dispatch.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/proto/h1/encode.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/proto/h1/io.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/proto/h1/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/proto/h1/role.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/proto/h2/client.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/proto/h2/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/proto/h2/ping.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/proto/h2/server.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/proto/h2/upgrade.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/proto/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/rt/bounds.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/rt/io.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/rt/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/rt/timer.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/server/conn/http1.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/server/conn/http2.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/server/conn/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/server/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/service/http.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/service/mod.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/service/service.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/service/util.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/trace.rs +0 -0
- {stealthhttp-0.9.1 → stealthhttp-0.9.2}/vendor/hyper/src/upgrade.rs +0 -0
|
@@ -49,13 +49,14 @@ bytes = { version = "1", optional = true }
|
|
|
49
49
|
futures-util = { version = "0.3", default-features = false, features = ["std"], optional = true }
|
|
50
50
|
tokio = { version = "1", features = ["rt-multi-thread", "net", "time", "macros", "sync", "io-util"], optional = true }
|
|
51
51
|
pin-project-lite = { version = "0.2", optional = true }
|
|
52
|
+
libc = { version = "0.2", optional = true }
|
|
52
53
|
|
|
53
54
|
[features]
|
|
54
55
|
default = ["transport"]
|
|
55
56
|
extension-module = ["pyo3/extension-module"]
|
|
56
57
|
transport = [
|
|
57
58
|
"boring", "boring-sys", "foreign-types", "brotli-decompressor", "flate2", "zstd", "tokio-boring", "h2", "hyper", "http-body-util", "http", "bytes",
|
|
58
|
-
"futures-util", "tokio", "pin-project-lite",
|
|
59
|
+
"futures-util", "tokio", "pin-project-lite", "libc",
|
|
59
60
|
]
|
|
60
61
|
|
|
61
62
|
[patch.crates-io]
|
|
@@ -162,7 +162,7 @@ from .browser_fsm import BrowserStateMachine, NavigationFSM, BrowserState, State
|
|
|
162
162
|
from .quic_fingerprint import QUICProfile, AltSvcTracker, QUICFingerprint, H3Negotiator, quic_fingerprint, parse_alt_svc, should_use_h3
|
|
163
163
|
from .auto_update import latest_chrome, auto_update, latest_profile, check_outdated
|
|
164
164
|
|
|
165
|
-
__version__ = "0.9.
|
|
165
|
+
__version__ = "0.9.2"
|
|
166
166
|
|
|
167
167
|
__all__ = [
|
|
168
168
|
"Session", "Response", "ProxyPool", "CookieJar", "Cookie",
|
|
@@ -167,6 +167,7 @@ def _h2_priority(family: str) -> tuple[int, int, bool]:
|
|
|
167
167
|
_GREASE_CHARS = [" ", "(", ")", "-", ".", "/", ":", ";", "=", "?", "_"]
|
|
168
168
|
_BRAND_ORDERS = [[0, 1, 2], [0, 2, 1], [1, 0, 2], [1, 2, 0], [2, 0, 1], [2, 1, 0]]
|
|
169
169
|
|
|
170
|
+
_GREASE_VERSIONS = ["8", "99", "24"]
|
|
170
171
|
_BRAND_NAME = {"edge": "Microsoft Edge", "opera": "Opera", "chrome": "Google Chrome"}
|
|
171
172
|
|
|
172
173
|
|
|
@@ -176,7 +177,7 @@ def sec_ch_ua(family: str, major: int) -> str | None:
|
|
|
176
177
|
return None
|
|
177
178
|
i = major % 11
|
|
178
179
|
greasey = f"Not{_GREASE_CHARS[i]}A{_GREASE_CHARS[(i + 1) % 11]}Brand"
|
|
179
|
-
greasey_version =
|
|
180
|
+
greasey_version = _GREASE_VERSIONS[major % 3]
|
|
180
181
|
brand = _BRAND_NAME.get(family, "Google Chrome")
|
|
181
182
|
|
|
182
183
|
order = _BRAND_ORDERS[major % 6]
|
|
@@ -229,7 +230,10 @@ _CHROME_BUILDS: dict[int, str] = {
|
|
|
229
230
|
131: "131.0.6778.109", 132: "132.0.6834.83", 133: "133.0.6943.98",
|
|
230
231
|
134: "134.0.6998.165", 135: "135.0.7049.84", 136: "136.0.7103.99",
|
|
231
232
|
137: "137.0.7151.69", 138: "138.0.7204.93", 139: "139.0.7259.58",
|
|
232
|
-
140: "140.0.7314.50", 141: "141.0.7369.99",
|
|
233
|
+
140: "140.0.7314.50", 141: "141.0.7369.99", 142: "142.0.7424.82",
|
|
234
|
+
143: "143.0.7479.65", 144: "144.0.7534.73", 145: "145.0.7589.91",
|
|
235
|
+
146: "146.0.7644.68", 147: "147.0.7699.54", 148: "148.0.7754.87",
|
|
236
|
+
149: "149.0.7809.70", 150: "150.0.7864.56", 151: "151.0.7919.90",
|
|
233
237
|
}
|
|
234
238
|
|
|
235
239
|
|
|
@@ -328,6 +328,26 @@ class PageVisit:
|
|
|
328
328
|
return f"<PageVisit {self.summary()}>"
|
|
329
329
|
|
|
330
330
|
|
|
331
|
+
def _dns_prefetch(plan: VisitPlan) -> None:
|
|
332
|
+
"""Resolve DNS for subresource domains in parallel, like a real browser."""
|
|
333
|
+
import concurrent.futures
|
|
334
|
+
import socket
|
|
335
|
+
domains = {r.host for r in plan.resources if r.host}
|
|
336
|
+
if plan.favicon:
|
|
337
|
+
fav_host = (urlsplit(plan.favicon).hostname or "").lower()
|
|
338
|
+
if fav_host:
|
|
339
|
+
domains.add(fav_host)
|
|
340
|
+
if not domains:
|
|
341
|
+
return
|
|
342
|
+
def _resolve(host: str) -> None:
|
|
343
|
+
try:
|
|
344
|
+
socket.getaddrinfo(host, 443, socket.AF_UNSPEC, socket.SOCK_STREAM)
|
|
345
|
+
except OSError:
|
|
346
|
+
pass
|
|
347
|
+
with concurrent.futures.ThreadPoolExecutor(max_workers=min(len(domains), 8)) as pool:
|
|
348
|
+
list(pool.map(_resolve, domains))
|
|
349
|
+
|
|
350
|
+
|
|
331
351
|
#: Origins whose favicon has already been requested, per session.
|
|
332
352
|
_FAVICON_ATTR = "_favicon_seen"
|
|
333
353
|
|
|
@@ -362,6 +382,8 @@ def perform_visit(
|
|
|
362
382
|
max_resources=max_resources, hosts=hosts, include_favicon=include_favicon,
|
|
363
383
|
)
|
|
364
384
|
|
|
385
|
+
_dns_prefetch(plan)
|
|
386
|
+
|
|
365
387
|
loaded = []
|
|
366
388
|
for res in plan.resources:
|
|
367
389
|
try:
|
|
@@ -35,7 +35,10 @@ ALL_HINTS = frozenset({
|
|
|
35
35
|
"sec-ch-prefers-reduced-transparency",
|
|
36
36
|
})
|
|
37
37
|
|
|
38
|
-
# Low-entropy hints Chrome always sends (no Accept-CH needed)
|
|
38
|
+
# Low-entropy hints Chrome always sends (no Accept-CH needed).
|
|
39
|
+
# sec-ch-ua-full-version-list became low-entropy in Chrome 133 but is handled
|
|
40
|
+
# version-conditionally in hints_for(), so it stays out of this static set
|
|
41
|
+
# to allow Accept-CH negotiation for older Chrome versions.
|
|
39
42
|
LOW_ENTROPY = frozenset({
|
|
40
43
|
"sec-ch-ua", "sec-ch-ua-mobile", "sec-ch-ua-platform",
|
|
41
44
|
})
|
|
@@ -103,13 +106,18 @@ class HintStore:
|
|
|
103
106
|
out["sec-ch-ua-mobile"] = "?1" if jsenv.form_factor == "Mobile" else "?0"
|
|
104
107
|
out["sec-ch-ua-platform"] = f'"{_platform_name(jsenv.platform)}"'
|
|
105
108
|
|
|
109
|
+
if jsenv.version >= 133:
|
|
110
|
+
fvl = _full_version_list(profile, jsenv)
|
|
111
|
+
if fvl:
|
|
112
|
+
out["sec-ch-ua-full-version-list"] = fvl
|
|
113
|
+
|
|
106
114
|
if policy is None:
|
|
107
115
|
return out
|
|
108
116
|
|
|
109
117
|
# High-entropy: only what the server requested
|
|
110
118
|
for hint in list(policy.accepted):
|
|
111
119
|
h = hint.lower()
|
|
112
|
-
if h in LOW_ENTROPY:
|
|
120
|
+
if h in LOW_ENTROPY or h in out:
|
|
113
121
|
continue
|
|
114
122
|
val = _generate_hint(h, profile, jsenv)
|
|
115
123
|
if val is not None:
|
|
@@ -203,11 +211,6 @@ def _full_version_list(profile, jsenv: JsEnvironment) -> str:
|
|
|
203
211
|
for m in re.finditer(r'"([^"]+)";v="(\d+)"', base_ch):
|
|
204
212
|
brand, major_str = m.group(1), m.group(2)
|
|
205
213
|
major = int(major_str)
|
|
206
|
-
from ._fallback import is_grease
|
|
207
|
-
try:
|
|
208
|
-
grease_test = int(major_str)
|
|
209
|
-
except ValueError:
|
|
210
|
-
grease_test = 0
|
|
211
214
|
if any(c in brand for c in ["Not", "Brand"]):
|
|
212
215
|
full_ver = f"{major_str}.0.0.0"
|
|
213
216
|
else:
|
|
@@ -62,10 +62,10 @@ PLATFORM_UA_HINTS: dict[str, dict[str, str]] = {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
def _build_ch_ua(browser: str, version: int) -> str:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
if
|
|
68
|
-
return
|
|
65
|
+
from ._fallback import sec_ch_ua
|
|
66
|
+
family = {"chrome": "chrome", "edge": "edge", "opera": "opera"}.get(browser)
|
|
67
|
+
if family:
|
|
68
|
+
return sec_ch_ua(family, version) or ""
|
|
69
69
|
return ""
|
|
70
70
|
|
|
71
71
|
_DEFAULT_ACCEPT_LANGUAGE = "en-US,en;q=0.9"
|
|
@@ -80,6 +80,23 @@ impl Platform {
|
|
|
80
80
|
matches!(self, Platform::Android | Platform::IOS)
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
/// TTL that the emulated OS would set on outgoing packets (p0f signal).
|
|
84
|
+
pub fn initial_ttl(&self) -> u32 {
|
|
85
|
+
match self {
|
|
86
|
+
Platform::Windows => 128,
|
|
87
|
+
_ => 64,
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/// (SO_SNDBUF, SO_RCVBUF) matching the emulated OS defaults.
|
|
92
|
+
pub fn tcp_buffers(&self) -> (u32, u32) {
|
|
93
|
+
match self {
|
|
94
|
+
Platform::Windows => (65536, 65536),
|
|
95
|
+
Platform::MacOS | Platform::IOS => (131072, 131072),
|
|
96
|
+
Platform::Linux | Platform::Android => (16384, 87380),
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
83
100
|
pub fn ua_token(&self) -> &'static str {
|
|
84
101
|
match self {
|
|
85
102
|
Platform::Windows => "Windows NT 10.0; Win64; x64",
|
|
@@ -129,7 +129,7 @@ struct ConnectorKey {
|
|
|
129
129
|
pub struct Engine {
|
|
130
130
|
rt: tokio::runtime::Runtime,
|
|
131
131
|
pool: Arc<Mutex<HashMap<PoolKey, Vec<Conn>>>>,
|
|
132
|
-
tls_cache: Arc<Mutex<HashMap<ConnectorKey, Arc<boring::ssl::SslConnector
|
|
132
|
+
tls_cache: Arc<Mutex<HashMap<ConnectorKey, (Arc<boring::ssl::SslConnector>, tls::SessionStore)>>>,
|
|
133
133
|
/// Ceiling on requests in flight across a whole batch.
|
|
134
134
|
pub max_concurrency: usize,
|
|
135
135
|
pub connect_timeout: Duration,
|
|
@@ -258,7 +258,7 @@ impl Engine {
|
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
type TlsCache = Arc<Mutex<HashMap<ConnectorKey, Arc<boring::ssl::SslConnector
|
|
261
|
+
type TlsCache = Arc<Mutex<HashMap<ConnectorKey, (Arc<boring::ssl::SslConnector>, tls::SessionStore)>>>;
|
|
262
262
|
|
|
263
263
|
async fn execute(
|
|
264
264
|
req: Req,
|
|
@@ -441,6 +441,9 @@ async fn dial(
|
|
|
441
441
|
.map_err(|e| format!("connect {dial_host}:{dial_port}: {e}"))?;
|
|
442
442
|
tcp.set_nodelay(true).ok();
|
|
443
443
|
|
|
444
|
+
// p0f countermeasure: set TTL and buffer sizes to match the emulated OS.
|
|
445
|
+
apply_os_socket_opts(&tcp, profile);
|
|
446
|
+
|
|
444
447
|
if !is_tls {
|
|
445
448
|
let (sender, conn) = hyper::client::conn::http1::handshake(hyper_util_io(tcp))
|
|
446
449
|
.await
|
|
@@ -460,14 +463,14 @@ async fn dial(
|
|
|
460
463
|
};
|
|
461
464
|
|
|
462
465
|
let ck = ConnectorKey { profile: req.profile.clone(), verify: req.verify };
|
|
463
|
-
let connector = {
|
|
466
|
+
let (connector, session_store) = {
|
|
464
467
|
let mut cache = tls_cache.lock().await;
|
|
465
|
-
if let Some(
|
|
466
|
-
|
|
468
|
+
if let Some(entry) = cache.get(&ck) {
|
|
469
|
+
entry.clone()
|
|
467
470
|
} else {
|
|
468
|
-
let
|
|
469
|
-
cache.insert(ck,
|
|
470
|
-
|
|
471
|
+
let entry = tls::connector_for(profile, req.verify)?;
|
|
472
|
+
cache.insert(ck, entry.clone());
|
|
473
|
+
entry
|
|
471
474
|
}
|
|
472
475
|
};
|
|
473
476
|
let mut cfg = connector
|
|
@@ -477,6 +480,7 @@ async fn dial(
|
|
|
477
480
|
cfg.set_verify_hostname(false);
|
|
478
481
|
}
|
|
479
482
|
tls::configure_connection(&mut cfg, profile);
|
|
483
|
+
tls::offer_session(&mut cfg, host, &session_store);
|
|
480
484
|
let stream = tokio_boring::connect(cfg, host, tcp)
|
|
481
485
|
.await
|
|
482
486
|
.map_err(|e| format!("tls handshake with {host}: {e}"))?;
|
|
@@ -719,6 +723,58 @@ where
|
|
|
719
723
|
}
|
|
720
724
|
|
|
721
725
|
|
|
726
|
+
/// Set IP_TTL and SO_{SND,RCV}BUF to match the profile's target OS.
|
|
727
|
+
///
|
|
728
|
+
/// p0f and passive OS fingerprinting compare TTL (128 = Windows, 64 = everything
|
|
729
|
+
/// else) against the claimed browser platform. A mismatch is a cheap bot signal.
|
|
730
|
+
#[cfg(unix)]
|
|
731
|
+
fn apply_os_socket_opts(tcp: &TcpStream, profile: &Profile) {
|
|
732
|
+
use std::os::fd::AsRawFd;
|
|
733
|
+
let fd = tcp.as_raw_fd();
|
|
734
|
+
let ttl: libc::c_int = profile.platform.initial_ttl() as libc::c_int;
|
|
735
|
+
unsafe {
|
|
736
|
+
libc::setsockopt(
|
|
737
|
+
fd, libc::IPPROTO_IP, libc::IP_TTL,
|
|
738
|
+
&ttl as *const _ as *const libc::c_void,
|
|
739
|
+
std::mem::size_of::<libc::c_int>() as libc::socklen_t,
|
|
740
|
+
);
|
|
741
|
+
}
|
|
742
|
+
let (snd, rcv) = profile.platform.tcp_buffers();
|
|
743
|
+
let snd = snd as libc::c_int;
|
|
744
|
+
let rcv = rcv as libc::c_int;
|
|
745
|
+
unsafe {
|
|
746
|
+
libc::setsockopt(
|
|
747
|
+
fd, libc::SOL_SOCKET, libc::SO_SNDBUF,
|
|
748
|
+
&snd as *const _ as *const libc::c_void,
|
|
749
|
+
std::mem::size_of::<libc::c_int>() as libc::socklen_t,
|
|
750
|
+
);
|
|
751
|
+
libc::setsockopt(
|
|
752
|
+
fd, libc::SOL_SOCKET, libc::SO_RCVBUF,
|
|
753
|
+
&rcv as *const _ as *const libc::c_void,
|
|
754
|
+
std::mem::size_of::<libc::c_int>() as libc::socklen_t,
|
|
755
|
+
);
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
#[cfg(not(unix))]
|
|
760
|
+
fn apply_os_socket_opts(tcp: &TcpStream, profile: &Profile) {
|
|
761
|
+
use std::os::windows::io::AsRawSocket;
|
|
762
|
+
let _ = profile;
|
|
763
|
+
let sock = tcp.as_raw_socket();
|
|
764
|
+
// Windows: TTL via setsockopt with IPPROTO_IP / IP_TTL.
|
|
765
|
+
let ttl = profile.platform.initial_ttl();
|
|
766
|
+
unsafe {
|
|
767
|
+
let val = ttl as i32;
|
|
768
|
+
winapi_setsockopt(sock as usize, 0 /* IPPROTO_IP */, 4 /* IP_TTL */,
|
|
769
|
+
&val as *const _ as *const u8, 4);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
#[cfg(not(unix))]
|
|
774
|
+
unsafe fn winapi_setsockopt(_sock: usize, _level: i32, _name: i32, _val: *const u8, _len: i32) {
|
|
775
|
+
// Stub: real Windows build would call ws2_32::setsockopt.
|
|
776
|
+
}
|
|
777
|
+
|
|
722
778
|
/// Open an HTTP CONNECT tunnel through `proxy` to `host:port`.
|
|
723
779
|
///
|
|
724
780
|
/// Written by hand rather than delegated because the tunnel must be established
|
|
@@ -8,16 +8,20 @@
|
|
|
8
8
|
//! Everything configured here comes from the same `Profile` that drives the HTTP
|
|
9
9
|
//! headers, so the two layers cannot describe different browsers.
|
|
10
10
|
|
|
11
|
-
use std::
|
|
11
|
+
use std::collections::HashMap;
|
|
12
|
+
use std::sync::{Arc, Mutex};
|
|
12
13
|
|
|
13
14
|
use foreign_types::ForeignTypeRef;
|
|
14
15
|
use boring::ssl::{
|
|
15
|
-
CertificateCompressionAlgorithm, CertificateCompressor, ConnectConfiguration,
|
|
16
|
-
SslMethod, SslSessionCacheMode, SslVerifyMode,
|
|
16
|
+
CertificateCompressionAlgorithm, CertificateCompressor, ConnectConfiguration, NameType,
|
|
17
|
+
SslConnector, SslMethod, SslSession, SslSessionCacheMode, SslVerifyMode,
|
|
18
|
+
SslVersion,
|
|
17
19
|
};
|
|
18
20
|
|
|
19
21
|
use crate::fingerprint::Profile;
|
|
20
22
|
|
|
23
|
+
pub type SessionStore = Arc<Mutex<HashMap<String, SslSession>>>;
|
|
24
|
+
|
|
21
25
|
/// IANA cipher id -> the OpenSSL/BoringSSL name BoringSSL's parser accepts.
|
|
22
26
|
fn cipher_name(id: u16) -> Option<&'static str> {
|
|
23
27
|
Some(match id {
|
|
@@ -115,8 +119,9 @@ fn ensure_ca_certs(b: &mut boring::ssl::SslConnectorBuilder) {
|
|
|
115
119
|
}
|
|
116
120
|
}
|
|
117
121
|
|
|
118
|
-
/// Build a connector whose ClientHello matches `profile
|
|
119
|
-
|
|
122
|
+
/// Build a connector whose ClientHello matches `profile`, plus a session store
|
|
123
|
+
/// for TLS resumption (browsers never do a full handshake on reconnect).
|
|
124
|
+
pub fn connector_for(profile: &Profile, verify: bool) -> Result<(Arc<SslConnector>, SessionStore), String> {
|
|
120
125
|
let mut b = SslConnector::builder(SslMethod::tls())
|
|
121
126
|
.map_err(|e| format!("tls: {e}"))?;
|
|
122
127
|
|
|
@@ -195,17 +200,21 @@ pub fn connector_for(profile: &Profile, verify: bool) -> Result<Arc<SslConnector
|
|
|
195
200
|
// Browsers resume sessions; a full handshake every time is machine-like.
|
|
196
201
|
b.set_session_cache_mode(SslSessionCacheMode::CLIENT);
|
|
197
202
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
+
let store: SessionStore = Arc::new(Mutex::new(HashMap::new()));
|
|
204
|
+
let store_cb = store.clone();
|
|
205
|
+
b.set_new_session_callback(move |ssl, session| {
|
|
206
|
+
if let Some(host) = ssl.servername(NameType::HOST_NAME) {
|
|
207
|
+
if let Ok(mut map) = store_cb.lock() {
|
|
208
|
+
map.insert(host.to_string(), session);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
});
|
|
203
212
|
|
|
204
213
|
if !verify {
|
|
205
214
|
b.set_verify(SslVerifyMode::NONE);
|
|
206
215
|
}
|
|
207
216
|
|
|
208
|
-
Ok(Arc::new(b.build()))
|
|
217
|
+
Ok((Arc::new(b.build()), store))
|
|
209
218
|
}
|
|
210
219
|
|
|
211
220
|
|
|
@@ -234,6 +243,15 @@ impl CertificateCompressor for BrotliCertificates {
|
|
|
234
243
|
}
|
|
235
244
|
}
|
|
236
245
|
|
|
246
|
+
/// Offer a stored session for resumption before the handshake starts.
|
|
247
|
+
pub fn offer_session(cfg: &mut ConnectConfiguration, host: &str, store: &SessionStore) {
|
|
248
|
+
if let Ok(map) = store.lock() {
|
|
249
|
+
if let Some(session) = map.get(host) {
|
|
250
|
+
unsafe { let _ = cfg.set_session(session); }
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
237
255
|
/// Per-connection extensions. These live on the SSL object rather than the
|
|
238
256
|
/// context, so they cannot be set when the connector is built.
|
|
239
257
|
pub fn configure_connection(cfg: &mut ConnectConfiguration, profile: &Profile) {
|
|
@@ -98,9 +98,9 @@ class TestSecChUa:
|
|
|
98
98
|
[
|
|
99
99
|
# Captured from live requests. Each version lands on a different
|
|
100
100
|
# brand permutation *and* a different GREASE character pair.
|
|
101
|
-
(131, '"Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="
|
|
102
|
-
(136, '"Chromium";v="136", "Google Chrome";v="136", "Not.A/Brand";v="
|
|
103
|
-
(141, '"Google Chrome";v="141", "Not?A_Brand";v="
|
|
101
|
+
(131, '"Google Chrome";v="131", "Chromium";v="131", "Not_A Brand";v="24"'),
|
|
102
|
+
(136, '"Chromium";v="136", "Google Chrome";v="136", "Not.A/Brand";v="99"'),
|
|
103
|
+
(141, '"Google Chrome";v="141", "Not?A_Brand";v="8", "Chromium";v="141"'),
|
|
104
104
|
],
|
|
105
105
|
)
|
|
106
106
|
def test_matches_real_chrome(self, version, expected):
|
|
@@ -186,7 +186,8 @@ class TestClientHints:
|
|
|
186
186
|
profile = self._make_profile()
|
|
187
187
|
env = JsEnvironment.derive("chrome141")
|
|
188
188
|
hints = store.hints_for("https://example.com", profile, env)
|
|
189
|
-
|
|
189
|
+
# full-version-list is low-entropy since Chrome 133
|
|
190
|
+
assert "sec-ch-ua-full-version-list" in hints
|
|
190
191
|
assert "sec-ch-ua-arch" not in hints
|
|
191
192
|
|
|
192
193
|
def test_high_entropy_sent_after_accept_ch(self):
|
|
@@ -88,8 +88,9 @@ class TestClientHintsLive:
|
|
|
88
88
|
header_keys = {h.split(": ", 1)[0].lower() for h in headers
|
|
89
89
|
if ": " in h and not h.startswith(":")}
|
|
90
90
|
|
|
91
|
-
#
|
|
92
|
-
assert "sec-ch-ua-full-version-list"
|
|
91
|
+
# full-version-list is low-entropy since Chrome 133, so it IS sent
|
|
92
|
+
assert "sec-ch-ua-full-version-list" in header_keys
|
|
93
|
+
# These remain high-entropy
|
|
93
94
|
assert "sec-ch-ua-arch" not in header_keys
|
|
94
95
|
assert "sec-ch-ua-bitness" not in header_keys
|
|
95
96
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|