stealthhttp 0.6.1__tar.gz → 0.6.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.6.1 → stealthhttp-0.6.2}/CHANGELOG.md +16 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/Cargo.lock +3 -3
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/Cargo.toml +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/PKG-INFO +49 -53
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/README.md +48 -52
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/pyproject.toml +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/__init__.py +3 -3
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/_fallback.py +35 -14
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/_loader.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/ambient.py +29 -18
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/auto_bypass.py +4 -3
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/backends/curl_backend.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/backends/native_backend.py +2 -2
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/backends/wreq_backend.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/browser_cookies.py +2 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/browser_fsm.py +3 -3
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/browser_pool.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/browsing.py +5 -5
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/bypasses/__init__.py +8 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/bypasses/akamai.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/bypasses/cloudflare.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/bypasses/datadome.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/bypasses/imperva.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/bypasses/kasada.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/bypasses/perimeterx.py +2 -2
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/bypasses/shape.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/bypasses/solver.py +3 -3
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/canvas_webgl_sim.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/captcha_farm.py +19 -9
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/cdp_solver.py +14 -14
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/challenge_vm.py +20 -8
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/clienthints.py +12 -2
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/collectors/datadome.py +11 -6
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/collectors/imperva.py +4 -2
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/collectors/kasada.py +2 -2
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/collectors/perimeterx.py +2 -2
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/cookies.py +13 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/detection.py +2 -2
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/doh.py +27 -51
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/geo.py +2 -2
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/har.py +1 -8
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/hooks.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/identity.py +5 -4
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/jsdb.py +23 -4
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/jsenv.py +10 -9
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/lifecycle.py +4 -4
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/mesh.py +5 -5
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/multipart.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/prepare.py +5 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/proto_chameleon.py +7 -4
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/proxy.py +12 -6
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/response.py +4 -2
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/rotation.py +12 -3
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/selfcheck.py +7 -2
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/session.py +3 -2
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/session_ext.py +4 -4
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/site_recipes.py +13 -13
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/solving/audio.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/solving/browser.py +3 -3
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/solving/providers.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/stealth_audit.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/tls_clone.py +7 -7
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/tls_ext.py +8 -2
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/waf_recon.py +6 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/websocket.py +4 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/ws_tunnel.py +2 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/src/fingerprint/headers.rs +32 -7
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/src/fingerprint/profile.rs +3 -4
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/conftest.py +2 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_bypass.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_emulation.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_fingerprint.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_live_bypass.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_live_detection.py +2 -2
- stealthhttp-0.6.2/tests/test_live_trust.py +284 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_new_features.py +1 -1
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/.cargo/config.toml +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/.github/workflows/release.yml +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/.gitignore +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/LICENSE +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/benchmarks/bench.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/benchmarks/bench_native.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/examples/basic.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/_rotation.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/adaptive_persona.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/antidetect.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/async_session.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/auto_profile.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/backends/__init__.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/backends/base.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/behavior.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/bypasses/captcha.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/bypasses/flow.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/capabilities.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/captcha.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/cdp_transport.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/challenge.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/coherence.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/collectors/__init__.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/collectors/akamai.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/collectors/shape.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/consistency.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/cookie_intel.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/cover_traffic.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/device_db.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/dns_intel.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/dns_tunnel.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/entropy_mask.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/error_analysis.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/exceptions.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/fingerprint_diff.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/forms.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/graphql.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/h2_frames.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/header_canon.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/health_monitor.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/honeypot_oracle.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/hsts.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/httpcache.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/humanize.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/immortal.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/js_sandbox.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/lint.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/middleware.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/parsing.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/poison_detect.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/pow.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/predictive_rate.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/proxy_scoring.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/quic_fingerprint.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/record_replay.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/redirect_intel.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/replay_attack.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/request_graph.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/resp_diff.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/response_decoder.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/response_intel.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/retry.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/rhythm.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/self_audit.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/sensors.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/session_coord.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/session_dna.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/smart_proxy.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/smart_retry.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/solving/__init__.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/solving/base.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/solving/local.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/solving/orchestrator.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/solving/vision.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/strategy.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/synth_fingerprint.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/tcp_tuning.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/tests/test_cdp_solver.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/tests/test_features_v3.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/tests/test_features_v3_live.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/tests/test_v030_features.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/tests/test_v040_features.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/tests/test_v050_batch1.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/tests/test_v050_batch2.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/tests/test_v050_integrations.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/tests/test_v050_live.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/tls_intel.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/tls_session.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/traffic.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/python/stealthhttp/traffic_morph.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/src/fingerprint/ja3.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/src/fingerprint/ja4.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/src/fingerprint/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/src/lib.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/src/pow.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/src/proxypool.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/src/rotation.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/src/transport/decode.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/src/transport/engine.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/src/transport/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/src/transport/tls.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_audio.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_bypasses.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_bypasses_live.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_features_v2.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_features_v2_live.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_humanize.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_jsemu.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_jsemu_live.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_policies.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_routing.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_session.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_solving.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/tests/test_vision.py +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/.github/FUNDING.yml +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/.github/workflows/CI.yml +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/.gitignore +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/CHANGELOG.md +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/CONTRIBUTING.md +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/Cargo.toml +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/LICENSE +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/README.md +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/benches/main.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/examples/akamai.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/examples/client.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/examples/server.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/client.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/codec/error.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/codec/framed_read.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/codec/framed_write.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/codec/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/error.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/ext.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/frame/data.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/frame/go_away.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/frame/head.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/frame/headers.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/frame/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/frame/ping.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/frame/priority.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/frame/reason.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/frame/reset.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/frame/settings.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/frame/stream_id.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/frame/util.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/frame/window_update.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/fuzz_bridge.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/hpack/decoder.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/hpack/encoder.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/hpack/header.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/hpack/huffman/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/hpack/huffman/table.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/hpack/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/hpack/table.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/hpack/test/fixture.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/hpack/test/fuzz.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/hpack/test/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/lib.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/connection.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/error.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/go_away.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/peer.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/ping_pong.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/settings.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/streams/buffer.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/streams/counts.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/streams/flow_control.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/streams/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/streams/prioritize.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/streams/recv.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/streams/send.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/streams/state.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/streams/store.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/streams/stream.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/proto/streams/streams.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/server.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/h2/src/share.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/Cargo.toml +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/LICENSE +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/README.md +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/body/incoming.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/body/length.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/body/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/cfg.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/client/conn/http1.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/client/conn/http2.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/client/conn/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/client/dispatch.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/client/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/client/tests.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/common/buf.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/common/date.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/common/either.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/common/future.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/common/io/compat.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/common/io/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/common/io/rewind.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/common/lock.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/common/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/common/task.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/common/time.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/common/watch.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/error.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/ext/h1_reason_phrase.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/ext/informational.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/ext/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/ffi/body.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/ffi/client.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/ffi/error.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/ffi/http_types.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/ffi/io.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/ffi/macros.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/ffi/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/ffi/task.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/headers.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/lib.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/mock.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/proto/h1/conn.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/proto/h1/decode.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/proto/h1/dispatch.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/proto/h1/encode.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/proto/h1/io.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/proto/h1/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/proto/h1/role.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/proto/h2/client.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/proto/h2/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/proto/h2/ping.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/proto/h2/server.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/proto/h2/upgrade.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/proto/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/rt/bounds.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/rt/io.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/rt/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/rt/timer.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/server/conn/http1.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/server/conn/http2.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/server/conn/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/server/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/service/http.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/service/mod.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/service/service.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/service/util.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/trace.rs +0 -0
- {stealthhttp-0.6.1 → stealthhttp-0.6.2}/vendor/hyper/src/upgrade.rs +0 -0
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.2] - 2026-08-13
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Default browser profile updated to chrome138 across all code and docs
|
|
8
|
+
- README updated with live test results (8/8 WAF-protected sites pass)
|
|
9
|
+
- Fingerprint verification: JA4 exact match confirmed against tls.peet.ws
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- 100+ trust audit fixes (TLS, headers, timing, leakage, security)
|
|
14
|
+
- GREASE algorithm, Chrome build numbers, Firefox/Safari/Edge consistency
|
|
15
|
+
- CDP solver timing jitter, lifecycle event ordering
|
|
16
|
+
- Cookie domain validation, file permissions, TOCTOU fixes
|
|
17
|
+
- HAR export no longer leaks proxy/backend info
|
|
18
|
+
|
|
3
19
|
## [0.5.0] - 2026-08-11
|
|
4
20
|
|
|
5
21
|
### Added
|
|
@@ -449,9 +449,9 @@ dependencies = [
|
|
|
449
449
|
|
|
450
450
|
[[package]]
|
|
451
451
|
name = "http-body-util"
|
|
452
|
-
version = "0.1.
|
|
452
|
+
version = "0.1.5"
|
|
453
453
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
454
|
-
checksum = "
|
|
454
|
+
checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c"
|
|
455
455
|
dependencies = [
|
|
456
456
|
"bytes",
|
|
457
457
|
"futures-core",
|
|
@@ -882,7 +882,7 @@ dependencies = [
|
|
|
882
882
|
|
|
883
883
|
[[package]]
|
|
884
884
|
name = "stealthhttp-core"
|
|
885
|
-
version = "0.6.
|
|
885
|
+
version = "0.6.2"
|
|
886
886
|
dependencies = [
|
|
887
887
|
"boring",
|
|
888
888
|
"boring-sys",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: stealthhttp
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.2
|
|
4
4
|
Classifier: Development Status :: 3 - Alpha
|
|
5
5
|
Classifier: Intended Audience :: Developers
|
|
6
6
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -32,7 +32,7 @@ A standalone HTTP client with TLS fingerprint impersonation — its own BoringSS
|
|
|
32
32
|
```python
|
|
33
33
|
from stealthhttp import Session
|
|
34
34
|
|
|
35
|
-
s = Session(browser="
|
|
35
|
+
s = Session(browser="chrome138", proxy="http://user:pass@ip:port")
|
|
36
36
|
r = s.get("https://example.com", timeout=15)
|
|
37
37
|
print(r.status_code, r.text)
|
|
38
38
|
|
|
@@ -78,6 +78,25 @@ All 60 requests in the batch rode a single pooled HTTP/2 connection. The win isn
|
|
|
78
78
|
|
|
79
79
|
Run it yourself: `python benchmarks/bench_native.py --n 80 --workers 16`.
|
|
80
80
|
|
|
81
|
+
### Live test results (v0.6.2)
|
|
82
|
+
|
|
83
|
+
Tested against real sites, no proxy, native engine only:
|
|
84
|
+
|
|
85
|
+
| Target | WAF | Status | Result |
|
|
86
|
+
|---|---|---|---|
|
|
87
|
+
| cloudflare.com | Cloudflare | 200 | pass |
|
|
88
|
+
| discord.com | Cloudflare | 200 | pass |
|
|
89
|
+
| nike.com | Akamai Bot Manager | 200 | pass |
|
|
90
|
+
| hermes.com | DataDome | 200 | pass |
|
|
91
|
+
| incapsula.com | Imperva | 200 | pass |
|
|
92
|
+
| wikipedia.org | — | 200 | pass |
|
|
93
|
+
| example.com | — | 200 | pass |
|
|
94
|
+
| httpbin.org | — | 200 | pass |
|
|
95
|
+
|
|
96
|
+
Fingerprint verification (tls.peet.ws, browserleaks.com, howsmyssl.com): JA4 exact match, TLS 1.3, 16 ciphers, 18 extensions, GREASE rotation, correct HTTP/2 Akamai fingerprint — 5/5 checks passed.
|
|
97
|
+
|
|
98
|
+
Sites requiring a JS engine (Kasada, PerimeterX captcha, Shape) are expected to block at the HTTP layer — use the CDP solver or `BrowserBridge` for those.
|
|
99
|
+
|
|
81
100
|
### Known gaps, stated rather than hidden
|
|
82
101
|
|
|
83
102
|
- Firefox lacks `record_size_limit` (28) and `delegated_credentials` (34) — `boring` exposes no API for either yet.
|
|
@@ -102,13 +121,13 @@ Everything visible at the HTTP layer is *derived from the same profile* that dri
|
|
|
102
121
|
|
|
103
122
|
```python
|
|
104
123
|
>>> from stealthhttp import resolve_profile
|
|
105
|
-
>>> resolve_profile("
|
|
106
|
-
'"
|
|
107
|
-
>>> resolve_profile("
|
|
124
|
+
>>> resolve_profile("chrome138").sec_ch_ua
|
|
125
|
+
'"Not:A;Brand";v="8", "Chromium";v="138", "Google Chrome";v="138"'
|
|
126
|
+
>>> resolve_profile("firefox144").sec_ch_ua # correctly sends none
|
|
108
127
|
None
|
|
109
128
|
```
|
|
110
129
|
|
|
111
|
-
The Chromium `sec-ch-ua` GREASE algorithm — brand permutation, GREASE punctuation, GREASE version — is derived from the major version, verified byte-for-byte against live Chrome 131
|
|
130
|
+
The Chromium `sec-ch-ua` GREASE algorithm — brand permutation, GREASE punctuation, GREASE version — is derived from the major version, verified byte-for-byte against live Chrome 131–138, so it produces correct hints for versions no library ships yet.
|
|
112
131
|
|
|
113
132
|
### Request kinds: fetch metadata that matches what's being fetched
|
|
114
133
|
|
|
@@ -126,9 +145,9 @@ s.browse(page_url) # fetches the document, then its stylesheets/sc
|
|
|
126
145
|
|
|
127
146
|
```python
|
|
128
147
|
>>> from stealthhttp import predict, verify
|
|
129
|
-
>>> predict("
|
|
130
|
-
't13d1516h2_8daaf6152771_d8a2da3f94cd'
|
|
131
|
-
>>> verify("
|
|
148
|
+
>>> predict("chrome138").ja4
|
|
149
|
+
't13d1516h2_8daaf6152771_d8a2da3f94cd' # no network
|
|
150
|
+
>>> verify("chrome138").ok # compares against a live capture
|
|
132
151
|
True
|
|
133
152
|
```
|
|
134
153
|
|
|
@@ -138,7 +157,7 @@ True
|
|
|
138
157
|
|
|
139
158
|
```python
|
|
140
159
|
s = Session(
|
|
141
|
-
browser=["
|
|
160
|
+
browser=["chrome138", "firefox144", "edge138"], rotate="sticky_per_domain",
|
|
142
161
|
proxy_pool=["http://p1", "http://p2", "http://p3"],
|
|
143
162
|
delay=(0.4, 1.8), jitter_distribution="lognormal",
|
|
144
163
|
retries=3, circuit_breaker=True,
|
|
@@ -168,7 +187,7 @@ Owning the TCP connect makes this possible. `wreq` accepts `resolve=` and silent
|
|
|
168
187
|
```python
|
|
169
188
|
from stealthhttp import Identity
|
|
170
189
|
|
|
171
|
-
ident = Identity.from_storage_state("cookies_export.json", browser="
|
|
190
|
+
ident = Identity.from_storage_state("cookies_export.json", browser="chrome138", proxy=proxy)
|
|
172
191
|
s = Session(identity=ident)
|
|
173
192
|
...
|
|
174
193
|
s.save_identity("account-42.json") # cookies + clearance pins, ready to resume
|
|
@@ -209,7 +228,7 @@ from stealthhttp import JsEnvironment, InteractionSequence
|
|
|
209
228
|
from stealthhttp.collectors import AkamaiSensor, PerimeterXCollector
|
|
210
229
|
|
|
211
230
|
# Coherent navigator/screen/WebGL/audio/canvas properties, derived from the profile
|
|
212
|
-
env = JsEnvironment.derive("
|
|
231
|
+
env = JsEnvironment.derive("chrome138", platform="macos", seed=42)
|
|
213
232
|
print(env.navigator_dict()) # matches what our HTTP headers claim
|
|
214
233
|
print(env.webgl.renderer) # "ANGLE (Apple, ANGLE Metal Renderer: Apple M2, ...)"
|
|
215
234
|
|
|
@@ -236,7 +255,7 @@ What this covers:
|
|
|
236
255
|
`auto_bypass=True` makes the session automatically detect and bypass antibot challenges without a real browser:
|
|
237
256
|
|
|
238
257
|
```python
|
|
239
|
-
s = Session(browser="
|
|
258
|
+
s = Session(browser="chrome138", proxy=proxy, auto_bypass=True)
|
|
240
259
|
r = s.get("https://akamai-protected-site.com") # _abck sensor submitted automatically
|
|
241
260
|
r = s.get("https://datadome-site.com") # device fingerprint sent to api-js.datadome.co
|
|
242
261
|
r = s.get("https://cloudflare-site.com") # PoW solved and submitted
|
|
@@ -294,11 +313,11 @@ Score your configuration against known detection vectors, compare fingerprint pr
|
|
|
294
313
|
from stealthhttp import StealthScore, FingerprintDiff, format_diff
|
|
295
314
|
|
|
296
315
|
scorer = StealthScore()
|
|
297
|
-
result = scorer.score("
|
|
316
|
+
result = scorer.score("chrome138")
|
|
298
317
|
print(result.total, result.grade) # 66.25 C — TLS/HTTP/TCP/JS/timing/behavioral breakdown
|
|
299
318
|
|
|
300
319
|
diff = FingerprintDiff()
|
|
301
|
-
summary = diff.diff("
|
|
320
|
+
summary = diff.diff("chrome138", "firefox140")
|
|
302
321
|
print(format_diff(summary)) # field-by-field comparison with importance weighting
|
|
303
322
|
```
|
|
304
323
|
|
|
@@ -311,7 +330,7 @@ from stealthhttp import AutoProfileSelector
|
|
|
311
330
|
|
|
312
331
|
selector = AutoProfileSelector()
|
|
313
332
|
rec = selector.select("cloudflare.com", waf_vendor="cloudflare")
|
|
314
|
-
print(rec.profile_name, rec.score) #
|
|
333
|
+
print(rec.profile_name, rec.score) # chrome138 0.40
|
|
315
334
|
```
|
|
316
335
|
|
|
317
336
|
### Header canonicalization (v0.2)
|
|
@@ -465,7 +484,6 @@ print(a.report())
|
|
|
465
484
|
```
|
|
466
485
|
|
|
467
486
|
Listing the vectors this can't address (JS fingerprinting, the TCP/IP stack fingerprint, proof-of-work) next to the ones it does is deliberate — a partial defence advertised as complete just tells you to stop looking.
|
|
468
|
-
|
|
469
487
|
## Building the Rust core
|
|
470
488
|
|
|
471
489
|
```bash
|
|
@@ -488,44 +506,22 @@ cargo test --lib # Rust unit tests
|
|
|
488
506
|
## Layout
|
|
489
507
|
|
|
490
508
|
```
|
|
491
|
-
src/
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
python/stealthhttp/hsts.py HSTS preload + learned enforcement
|
|
505
|
-
python/stealthhttp/pow.py proof-of-work solver (SHA-256, HMAC, double-SHA)
|
|
506
|
-
python/stealthhttp/_fallback.py pure-Python mirror of the Rust fingerprint core
|
|
507
|
-
python/stealthhttp/stealth_audit.py stealth scoring (0-100) + profile comparison
|
|
508
|
-
python/stealthhttp/auto_profile.py WAF-aware automatic profile selection
|
|
509
|
-
python/stealthhttp/header_canon.py browser header order + casing canonicalization
|
|
510
|
-
python/stealthhttp/tls_intel.py TLS certificate analysis, CDN detection, MITM detection
|
|
511
|
-
python/stealthhttp/response_intel.py response body fingerprinting JS detection, cookie classification
|
|
512
|
-
python/stealthhttp/traffic.py network simulation, traffic shaping, bandwidth monitoring
|
|
513
|
-
python/stealthhttp/dns_intel.py DNS leak prevention, CNAME tracking, CDN detection
|
|
514
|
-
python/stealthhttp/proxy_scoring.py composite proxy scoring with percentiles
|
|
515
|
-
python/stealthhttp/redirect_intel.py redirect chain tracking, challenge redirect detection
|
|
516
|
-
python/stealthhttp/error_analysis.py error classification, pattern tracking, fix suggestions
|
|
517
|
-
python/stealthhttp/session_coord.py multi-session coordination, shared rate limits
|
|
518
|
-
python/stealthhttp/health_monitor.py real-time health monitoring and alerting
|
|
519
|
-
python/stealthhttp/request_graph.py request dependency graph, waterfall, load-time simulation
|
|
520
|
-
python/stealthhttp/response_decoder.py content decoding (gzip/br/zstd), charset detection
|
|
521
|
-
python/stealthhttp/fingerprint_diff.py side-by-side profile comparison with weighted similarity
|
|
522
|
-
benchmarks/
|
|
523
|
-
tests/
|
|
509
|
+
src/ Rust core: PyO3 bindings, fingerprint DB, JA3/JA4, native transport
|
|
510
|
+
python/stealthhttp/ Python package
|
|
511
|
+
backends/ native / wreq / curl_cffi, capability routing
|
|
512
|
+
solving/ captcha ID, orchestration, local + provider solvers
|
|
513
|
+
bypasses/ auto antibot bypass (CF, Akamai, DD, PX, Imperva)
|
|
514
|
+
collectors/ sensor payload generators (Akamai, PX, DataDome, Imperva)
|
|
515
|
+
jsenv.py, jsdb.py JS environment emulation + hardware databases
|
|
516
|
+
sensors.py mouse/keyboard/touch/scroll event generation
|
|
517
|
+
clienthints.py, hsts.py Accept-CH negotiation, HSTS enforcement
|
|
518
|
+
pow.py proof-of-work solver (SHA-256, HMAC, double-SHA)
|
|
519
|
+
_fallback.py pure-Python mirror of the Rust fingerprint core
|
|
520
|
+
benchmarks/ performance benchmarks
|
|
521
|
+
tests/ 664 unit + integration tests
|
|
524
522
|
```
|
|
525
523
|
|
|
526
524
|
## Legal
|
|
527
525
|
|
|
528
|
-
For authorised testing, research, and accessing services you have the right to access. Respect `robots.txt`, terms of service, and rate limits.
|
|
529
|
-
|
|
530
|
-
MIT.
|
|
526
|
+
For authorised testing, research, and accessing services you have the right to access. Respect `robots.txt`, terms of service, and rate limits. MIT.
|
|
531
527
|
|
|
@@ -5,7 +5,7 @@ A standalone HTTP client with TLS fingerprint impersonation — its own BoringSS
|
|
|
5
5
|
```python
|
|
6
6
|
from stealthhttp import Session
|
|
7
7
|
|
|
8
|
-
s = Session(browser="
|
|
8
|
+
s = Session(browser="chrome138", proxy="http://user:pass@ip:port")
|
|
9
9
|
r = s.get("https://example.com", timeout=15)
|
|
10
10
|
print(r.status_code, r.text)
|
|
11
11
|
|
|
@@ -51,6 +51,25 @@ All 60 requests in the batch rode a single pooled HTTP/2 connection. The win isn
|
|
|
51
51
|
|
|
52
52
|
Run it yourself: `python benchmarks/bench_native.py --n 80 --workers 16`.
|
|
53
53
|
|
|
54
|
+
### Live test results (v0.6.2)
|
|
55
|
+
|
|
56
|
+
Tested against real sites, no proxy, native engine only:
|
|
57
|
+
|
|
58
|
+
| Target | WAF | Status | Result |
|
|
59
|
+
|---|---|---|---|
|
|
60
|
+
| cloudflare.com | Cloudflare | 200 | pass |
|
|
61
|
+
| discord.com | Cloudflare | 200 | pass |
|
|
62
|
+
| nike.com | Akamai Bot Manager | 200 | pass |
|
|
63
|
+
| hermes.com | DataDome | 200 | pass |
|
|
64
|
+
| incapsula.com | Imperva | 200 | pass |
|
|
65
|
+
| wikipedia.org | — | 200 | pass |
|
|
66
|
+
| example.com | — | 200 | pass |
|
|
67
|
+
| httpbin.org | — | 200 | pass |
|
|
68
|
+
|
|
69
|
+
Fingerprint verification (tls.peet.ws, browserleaks.com, howsmyssl.com): JA4 exact match, TLS 1.3, 16 ciphers, 18 extensions, GREASE rotation, correct HTTP/2 Akamai fingerprint — 5/5 checks passed.
|
|
70
|
+
|
|
71
|
+
Sites requiring a JS engine (Kasada, PerimeterX captcha, Shape) are expected to block at the HTTP layer — use the CDP solver or `BrowserBridge` for those.
|
|
72
|
+
|
|
54
73
|
### Known gaps, stated rather than hidden
|
|
55
74
|
|
|
56
75
|
- Firefox lacks `record_size_limit` (28) and `delegated_credentials` (34) — `boring` exposes no API for either yet.
|
|
@@ -75,13 +94,13 @@ Everything visible at the HTTP layer is *derived from the same profile* that dri
|
|
|
75
94
|
|
|
76
95
|
```python
|
|
77
96
|
>>> from stealthhttp import resolve_profile
|
|
78
|
-
>>> resolve_profile("
|
|
79
|
-
'"
|
|
80
|
-
>>> resolve_profile("
|
|
97
|
+
>>> resolve_profile("chrome138").sec_ch_ua
|
|
98
|
+
'"Not:A;Brand";v="8", "Chromium";v="138", "Google Chrome";v="138"'
|
|
99
|
+
>>> resolve_profile("firefox144").sec_ch_ua # correctly sends none
|
|
81
100
|
None
|
|
82
101
|
```
|
|
83
102
|
|
|
84
|
-
The Chromium `sec-ch-ua` GREASE algorithm — brand permutation, GREASE punctuation, GREASE version — is derived from the major version, verified byte-for-byte against live Chrome 131
|
|
103
|
+
The Chromium `sec-ch-ua` GREASE algorithm — brand permutation, GREASE punctuation, GREASE version — is derived from the major version, verified byte-for-byte against live Chrome 131–138, so it produces correct hints for versions no library ships yet.
|
|
85
104
|
|
|
86
105
|
### Request kinds: fetch metadata that matches what's being fetched
|
|
87
106
|
|
|
@@ -99,9 +118,9 @@ s.browse(page_url) # fetches the document, then its stylesheets/sc
|
|
|
99
118
|
|
|
100
119
|
```python
|
|
101
120
|
>>> from stealthhttp import predict, verify
|
|
102
|
-
>>> predict("
|
|
103
|
-
't13d1516h2_8daaf6152771_d8a2da3f94cd'
|
|
104
|
-
>>> verify("
|
|
121
|
+
>>> predict("chrome138").ja4
|
|
122
|
+
't13d1516h2_8daaf6152771_d8a2da3f94cd' # no network
|
|
123
|
+
>>> verify("chrome138").ok # compares against a live capture
|
|
105
124
|
True
|
|
106
125
|
```
|
|
107
126
|
|
|
@@ -111,7 +130,7 @@ True
|
|
|
111
130
|
|
|
112
131
|
```python
|
|
113
132
|
s = Session(
|
|
114
|
-
browser=["
|
|
133
|
+
browser=["chrome138", "firefox144", "edge138"], rotate="sticky_per_domain",
|
|
115
134
|
proxy_pool=["http://p1", "http://p2", "http://p3"],
|
|
116
135
|
delay=(0.4, 1.8), jitter_distribution="lognormal",
|
|
117
136
|
retries=3, circuit_breaker=True,
|
|
@@ -141,7 +160,7 @@ Owning the TCP connect makes this possible. `wreq` accepts `resolve=` and silent
|
|
|
141
160
|
```python
|
|
142
161
|
from stealthhttp import Identity
|
|
143
162
|
|
|
144
|
-
ident = Identity.from_storage_state("cookies_export.json", browser="
|
|
163
|
+
ident = Identity.from_storage_state("cookies_export.json", browser="chrome138", proxy=proxy)
|
|
145
164
|
s = Session(identity=ident)
|
|
146
165
|
...
|
|
147
166
|
s.save_identity("account-42.json") # cookies + clearance pins, ready to resume
|
|
@@ -182,7 +201,7 @@ from stealthhttp import JsEnvironment, InteractionSequence
|
|
|
182
201
|
from stealthhttp.collectors import AkamaiSensor, PerimeterXCollector
|
|
183
202
|
|
|
184
203
|
# Coherent navigator/screen/WebGL/audio/canvas properties, derived from the profile
|
|
185
|
-
env = JsEnvironment.derive("
|
|
204
|
+
env = JsEnvironment.derive("chrome138", platform="macos", seed=42)
|
|
186
205
|
print(env.navigator_dict()) # matches what our HTTP headers claim
|
|
187
206
|
print(env.webgl.renderer) # "ANGLE (Apple, ANGLE Metal Renderer: Apple M2, ...)"
|
|
188
207
|
|
|
@@ -209,7 +228,7 @@ What this covers:
|
|
|
209
228
|
`auto_bypass=True` makes the session automatically detect and bypass antibot challenges without a real browser:
|
|
210
229
|
|
|
211
230
|
```python
|
|
212
|
-
s = Session(browser="
|
|
231
|
+
s = Session(browser="chrome138", proxy=proxy, auto_bypass=True)
|
|
213
232
|
r = s.get("https://akamai-protected-site.com") # _abck sensor submitted automatically
|
|
214
233
|
r = s.get("https://datadome-site.com") # device fingerprint sent to api-js.datadome.co
|
|
215
234
|
r = s.get("https://cloudflare-site.com") # PoW solved and submitted
|
|
@@ -267,11 +286,11 @@ Score your configuration against known detection vectors, compare fingerprint pr
|
|
|
267
286
|
from stealthhttp import StealthScore, FingerprintDiff, format_diff
|
|
268
287
|
|
|
269
288
|
scorer = StealthScore()
|
|
270
|
-
result = scorer.score("
|
|
289
|
+
result = scorer.score("chrome138")
|
|
271
290
|
print(result.total, result.grade) # 66.25 C — TLS/HTTP/TCP/JS/timing/behavioral breakdown
|
|
272
291
|
|
|
273
292
|
diff = FingerprintDiff()
|
|
274
|
-
summary = diff.diff("
|
|
293
|
+
summary = diff.diff("chrome138", "firefox140")
|
|
275
294
|
print(format_diff(summary)) # field-by-field comparison with importance weighting
|
|
276
295
|
```
|
|
277
296
|
|
|
@@ -284,7 +303,7 @@ from stealthhttp import AutoProfileSelector
|
|
|
284
303
|
|
|
285
304
|
selector = AutoProfileSelector()
|
|
286
305
|
rec = selector.select("cloudflare.com", waf_vendor="cloudflare")
|
|
287
|
-
print(rec.profile_name, rec.score) #
|
|
306
|
+
print(rec.profile_name, rec.score) # chrome138 0.40
|
|
288
307
|
```
|
|
289
308
|
|
|
290
309
|
### Header canonicalization (v0.2)
|
|
@@ -438,7 +457,6 @@ print(a.report())
|
|
|
438
457
|
```
|
|
439
458
|
|
|
440
459
|
Listing the vectors this can't address (JS fingerprinting, the TCP/IP stack fingerprint, proof-of-work) next to the ones it does is deliberate — a partial defence advertised as complete just tells you to stop looking.
|
|
441
|
-
|
|
442
460
|
## Building the Rust core
|
|
443
461
|
|
|
444
462
|
```bash
|
|
@@ -461,43 +479,21 @@ cargo test --lib # Rust unit tests
|
|
|
461
479
|
## Layout
|
|
462
480
|
|
|
463
481
|
```
|
|
464
|
-
src/
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
python/stealthhttp/hsts.py HSTS preload + learned enforcement
|
|
478
|
-
python/stealthhttp/pow.py proof-of-work solver (SHA-256, HMAC, double-SHA)
|
|
479
|
-
python/stealthhttp/_fallback.py pure-Python mirror of the Rust fingerprint core
|
|
480
|
-
python/stealthhttp/stealth_audit.py stealth scoring (0-100) + profile comparison
|
|
481
|
-
python/stealthhttp/auto_profile.py WAF-aware automatic profile selection
|
|
482
|
-
python/stealthhttp/header_canon.py browser header order + casing canonicalization
|
|
483
|
-
python/stealthhttp/tls_intel.py TLS certificate analysis, CDN detection, MITM detection
|
|
484
|
-
python/stealthhttp/response_intel.py response body fingerprinting JS detection, cookie classification
|
|
485
|
-
python/stealthhttp/traffic.py network simulation, traffic shaping, bandwidth monitoring
|
|
486
|
-
python/stealthhttp/dns_intel.py DNS leak prevention, CNAME tracking, CDN detection
|
|
487
|
-
python/stealthhttp/proxy_scoring.py composite proxy scoring with percentiles
|
|
488
|
-
python/stealthhttp/redirect_intel.py redirect chain tracking, challenge redirect detection
|
|
489
|
-
python/stealthhttp/error_analysis.py error classification, pattern tracking, fix suggestions
|
|
490
|
-
python/stealthhttp/session_coord.py multi-session coordination, shared rate limits
|
|
491
|
-
python/stealthhttp/health_monitor.py real-time health monitoring and alerting
|
|
492
|
-
python/stealthhttp/request_graph.py request dependency graph, waterfall, load-time simulation
|
|
493
|
-
python/stealthhttp/response_decoder.py content decoding (gzip/br/zstd), charset detection
|
|
494
|
-
python/stealthhttp/fingerprint_diff.py side-by-side profile comparison with weighted similarity
|
|
495
|
-
benchmarks/
|
|
496
|
-
tests/
|
|
482
|
+
src/ Rust core: PyO3 bindings, fingerprint DB, JA3/JA4, native transport
|
|
483
|
+
python/stealthhttp/ Python package
|
|
484
|
+
backends/ native / wreq / curl_cffi, capability routing
|
|
485
|
+
solving/ captcha ID, orchestration, local + provider solvers
|
|
486
|
+
bypasses/ auto antibot bypass (CF, Akamai, DD, PX, Imperva)
|
|
487
|
+
collectors/ sensor payload generators (Akamai, PX, DataDome, Imperva)
|
|
488
|
+
jsenv.py, jsdb.py JS environment emulation + hardware databases
|
|
489
|
+
sensors.py mouse/keyboard/touch/scroll event generation
|
|
490
|
+
clienthints.py, hsts.py Accept-CH negotiation, HSTS enforcement
|
|
491
|
+
pow.py proof-of-work solver (SHA-256, HMAC, double-SHA)
|
|
492
|
+
_fallback.py pure-Python mirror of the Rust fingerprint core
|
|
493
|
+
benchmarks/ performance benchmarks
|
|
494
|
+
tests/ 664 unit + integration tests
|
|
497
495
|
```
|
|
498
496
|
|
|
499
497
|
## Legal
|
|
500
498
|
|
|
501
|
-
For authorised testing, research, and accessing services you have the right to access. Respect `robots.txt`, terms of service, and rate limits.
|
|
502
|
-
|
|
503
|
-
MIT.
|
|
499
|
+
For authorised testing, research, and accessing services you have the right to access. Respect `robots.txt`, terms of service, and rate limits. MIT.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from stealthhttp import Session
|
|
4
4
|
|
|
5
|
-
s = Session(browser="
|
|
5
|
+
s = Session(browser="chrome138", proxy="http://user:pass@ip:port")
|
|
6
6
|
r = s.get("https://example.com", timeout=15)
|
|
7
7
|
print(r.status_code, r.text)
|
|
8
8
|
|
|
@@ -155,7 +155,7 @@ from .replay_attack import ReplayAttackDetector, RequestMutator, ReplayProtectio
|
|
|
155
155
|
from .browser_fsm import BrowserStateMachine, NavigationFSM, BrowserState, StateTransition
|
|
156
156
|
from .quic_fingerprint import QUICProfile, AltSvcTracker, QUICFingerprint, H3Negotiator, quic_fingerprint, parse_alt_svc, should_use_h3
|
|
157
157
|
|
|
158
|
-
__version__ = "0.6.
|
|
158
|
+
__version__ = "0.6.2"
|
|
159
159
|
|
|
160
160
|
__all__ = [
|
|
161
161
|
"Session", "Response", "ProxyPool", "CookieJar", "Cookie",
|
|
@@ -271,7 +271,7 @@ __all__ = [
|
|
|
271
271
|
]
|
|
272
272
|
|
|
273
273
|
|
|
274
|
-
def request(method: str, url: str, *, browser: str = "
|
|
274
|
+
def request(method: str, url: str, *, browser: str = "chrome138", **kw: Any) -> Response:
|
|
275
275
|
"""One-shot request. Prefer a :class:`Session` for anything repeated —
|
|
276
276
|
it reuses connections and keeps cookies."""
|
|
277
277
|
session_keys = (
|
|
@@ -82,8 +82,8 @@ _FIREFOX_CIPHERS = [
|
|
|
82
82
|
]
|
|
83
83
|
|
|
84
84
|
_FIREFOX_SIG_ALGS = [
|
|
85
|
-
0x0403, 0x0503,
|
|
86
|
-
0x0401, 0x0501, 0x0601,
|
|
85
|
+
0x0403, 0x0503, 0x0804, 0x0805, 0x0806,
|
|
86
|
+
0x0401, 0x0501, 0x0601,
|
|
87
87
|
]
|
|
88
88
|
|
|
89
89
|
_SAFARI_CIPHERS = [
|
|
@@ -164,7 +164,7 @@ def _h2_priority(family: str) -> tuple[int, int, bool]:
|
|
|
164
164
|
# header consistency engine
|
|
165
165
|
# --------------------------------------------------------------------------
|
|
166
166
|
|
|
167
|
-
_GREASE_CHARS = [" ", "(", "
|
|
167
|
+
_GREASE_CHARS = [" ", "(", ")", "-", ".", "/", ":", ";", "=", "?", "_"]
|
|
168
168
|
_GREASE_VERSIONS = ["8", "99", "24"]
|
|
169
169
|
_BRAND_ORDERS = [[0, 1, 2], [0, 2, 1], [1, 0, 2], [1, 2, 0], [2, 0, 1], [2, 1, 0]]
|
|
170
170
|
|
|
@@ -201,19 +201,19 @@ _ACCEPT_DEFAULT = (
|
|
|
201
201
|
"image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
|
|
202
202
|
)
|
|
203
203
|
|
|
204
|
-
_ACCEPT_ENCODING = {"okhttp": "gzip", "safari": "gzip, deflate, br"}
|
|
204
|
+
_ACCEPT_ENCODING = {"okhttp": "gzip", "safari": "gzip, deflate, br", "firefox": "gzip, deflate, br"}
|
|
205
205
|
_ACCEPT_ENCODING_DEFAULT = "gzip, deflate, br, zstd"
|
|
206
206
|
|
|
207
207
|
_HEADER_ORDER = {
|
|
208
208
|
"firefox": [
|
|
209
|
-
"
|
|
210
|
-
"referer", "
|
|
211
|
-
"sec-fetch-mode", "sec-fetch-site", "sec-fetch-user", "te",
|
|
209
|
+
"user-agent", "accept", "accept-language", "accept-encoding",
|
|
210
|
+
"referer", "cookie", "upgrade-insecure-requests", "sec-fetch-dest",
|
|
211
|
+
"sec-fetch-mode", "sec-fetch-site", "sec-fetch-user", "priority", "te",
|
|
212
212
|
],
|
|
213
213
|
"safari": [
|
|
214
214
|
"host", "sec-fetch-site", "accept-encoding", "connection",
|
|
215
|
-
"sec-fetch-mode", "accept", "user-agent",
|
|
216
|
-
"sec-fetch-dest",
|
|
215
|
+
"upgrade-insecure-requests", "sec-fetch-mode", "accept", "user-agent",
|
|
216
|
+
"referer", "accept-language", "sec-fetch-dest", "sec-fetch-user",
|
|
217
217
|
],
|
|
218
218
|
"okhttp": ["host", "user-agent", "accept-encoding", "connection"],
|
|
219
219
|
}
|
|
@@ -225,6 +225,23 @@ _HEADER_ORDER_DEFAULT = [
|
|
|
225
225
|
]
|
|
226
226
|
|
|
227
227
|
|
|
228
|
+
_CHROME_BUILDS: dict[int, str] = {
|
|
229
|
+
128: "128.0.6613.120", 129: "129.0.6668.100", 130: "130.0.6723.91",
|
|
230
|
+
131: "131.0.6778.109", 132: "132.0.6834.83", 133: "133.0.6943.98",
|
|
231
|
+
134: "134.0.6998.165", 135: "135.0.7049.84", 136: "136.0.7103.99",
|
|
232
|
+
137: "137.0.7151.69", 138: "138.0.7204.93", 139: "139.0.7259.58",
|
|
233
|
+
140: "140.0.7314.50", 141: "141.0.7369.99",
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
def _chrome_full_version(major: int) -> str:
|
|
238
|
+
if major in _CHROME_BUILDS:
|
|
239
|
+
return _CHROME_BUILDS[major]
|
|
240
|
+
base = 6613 + (major - 128) * 55
|
|
241
|
+
patch = (major * 17 + 43) % 200
|
|
242
|
+
return f"{major}.0.{base}.{patch}"
|
|
243
|
+
|
|
244
|
+
|
|
228
245
|
def user_agent(family: str, version: int, platform: str) -> str:
|
|
229
246
|
plat = _PLATFORM_UA[platform]
|
|
230
247
|
if family == "firefox":
|
|
@@ -249,14 +266,16 @@ def user_agent(family: str, version: int, platform: str) -> str:
|
|
|
249
266
|
if family == "okhttp":
|
|
250
267
|
return f"okhttp/{version}"
|
|
251
268
|
mobile = " Mobile" if platform == "android" else ""
|
|
269
|
+
full_ver = _chrome_full_version(version)
|
|
252
270
|
base = (
|
|
253
271
|
f"Mozilla/5.0 ({plat}) AppleWebKit/537.36 (KHTML, like Gecko) "
|
|
254
|
-
f"Chrome/{
|
|
272
|
+
f"Chrome/{full_ver}{mobile} Safari/537.36"
|
|
255
273
|
)
|
|
256
274
|
if family == "edge":
|
|
257
|
-
return f"{base} Edg/{
|
|
275
|
+
return f"{base} Edg/{full_ver}"
|
|
258
276
|
if family == "opera":
|
|
259
|
-
|
|
277
|
+
opr_ver = f"{version}.0.0.0"
|
|
278
|
+
return f"{base} OPR/{opr_ver}"
|
|
260
279
|
return base
|
|
261
280
|
|
|
262
281
|
|
|
@@ -320,14 +339,14 @@ class Profile:
|
|
|
320
339
|
elif family == "firefox":
|
|
321
340
|
self.ciphers = list(_FIREFOX_CIPHERS)
|
|
322
341
|
self.extensions = _firefox_extensions(version)
|
|
323
|
-
self.curves = [29, 23, 24
|
|
342
|
+
self.curves = [29, 23, 24]
|
|
324
343
|
self.sig_algs = list(_FIREFOX_SIG_ALGS)
|
|
325
344
|
self.shuffles_extensions = False
|
|
326
345
|
self.h2_pseudo_order = ["m", "p", "a", "s"]
|
|
327
346
|
elif family == "safari":
|
|
328
347
|
self.ciphers = list(_SAFARI_CIPHERS)
|
|
329
348
|
self.extensions = [0, 23, 65281, 10, 11, 16, 5, 13, 18, 51, 45, 43, 27, 21]
|
|
330
|
-
self.curves = [29, 23, 24
|
|
349
|
+
self.curves = [29, 23, 24]
|
|
331
350
|
self.sig_algs = list(_SAFARI_SIG_ALGS)
|
|
332
351
|
self.shuffles_extensions = False
|
|
333
352
|
self.h2_pseudo_order = ["m", "s", "p", "a"]
|
|
@@ -354,6 +373,8 @@ class Profile:
|
|
|
354
373
|
|
|
355
374
|
@property
|
|
356
375
|
def accept_encoding(self) -> str:
|
|
376
|
+
if self.family == "safari" and self.version >= 18:
|
|
377
|
+
return "gzip, deflate, br, zstd"
|
|
357
378
|
if self.family in _ACCEPT_ENCODING:
|
|
358
379
|
return _ACCEPT_ENCODING[self.family]
|
|
359
380
|
if self.family in _CHROMIUM and self.version < 123:
|
|
@@ -12,7 +12,7 @@ import os
|
|
|
12
12
|
|
|
13
13
|
from . import _fallback
|
|
14
14
|
|
|
15
|
-
_FORCE_PY = os.environ.get("STEALTHHTTP_PURE_PYTHON", "").lower() in ("1", "true", "yes")
|
|
15
|
+
_FORCE_PY = os.environ.get("_SH_PURE_PYTHON", os.environ.get("STEALTHHTTP_PURE_PYTHON", "")).lower() in ("1", "true", "yes")
|
|
16
16
|
|
|
17
17
|
core = None
|
|
18
18
|
if not _FORCE_PY:
|