How chris124567/cfsolve works
cfsolve is a Rust library and CLI for obtaining Turnstile tokens or clearing Cloudflare challenge pages without a headless browser. The documented workflow starts with a page and browser profile, then fetches or renders the page, analyzes the challenge, and returns a token or clearance. Separate capture tooling records browser traffic to support profiles. Internal extraction, VM analysis, and stage-two capabilities are shown where the README or source index supports them; unsampled implementations and their wiring are not inferred.
Main entry points: browser.rs Browser solver API · orchestrator.rs Challenge extraction · script.rs Parsed challenge script · registry.rs Stage-two registry
Components 20
Solver API
- Browser solver API
src/browser.rs - Browser profile
src/fingerprint.rs - Token or clearance
src/browser.rs
Challenge Analysis
- Challenge extraction
src/challenge/orchestrator.rs - Payload construction
src/challenge/payload.rs - Script deobfuscation
src/deobfuscate/pipeline.rs - Parsed challenge script
src/script.rs - Challenge VM
src/vm/session.rs - Stage-two registry
src/stage2/registry.rs - Probe analysis
src/stage2/analysis/controller.rs - Environment probes
src/stage2/probes/worker_fetch.rs
Browser Simulation
- HTTP transport
src/http/client.rs - Page preparation
src/embedding_page/page.rs - Session probes
src/session/probes.rs - Challenge interaction
src/stage2/interaction/plan.rs
Capture Tools
- Capture proxy
src/capture/proxy.rs - Recorded sessions
src/capture/sessions.rs - Session encoder recovery
src/capture/rsa.rs
Other components
- Library or CLI caller
- Browser using proxy
Connections 18
- Library or CLI caller → Browser solver API: calls
README.md - Browser profile → Browser solver API: configures
README.md - Browser solver API → HTTP transport: fetches pages
src/browser.rs - Browser solver API → Page preparation: prepares page
src/browser.rs - Browser solver API → Session probes: runs session
src/browser.rs - Browser solver API → Challenge extraction: analyzes challenge
src/browser.rs - Challenge extraction → Payload construction: builds payload
src/challenge/orchestrator.rs - Challenge extraction → Script deobfuscation: rewrites scripts
- Challenge extraction → Parsed challenge script: parses scripts
src/challenge/orchestrator.rs - Parsed challenge script → Challenge VM: recovers VM
src/script.rs - Browser solver API → Stage-two registry: uses registry
src/browser.rs - Probe analysis → Challenge VM: queries listings
src/stage2/analysis/controller.rs - Stage-two registry → Environment probes: registers probes
- Browser solver API → Challenge interaction: runs interaction
src/browser.rs - Browser solver API → Token or clearance: returns result
README.md - Browser using proxy → Capture proxy: routes traffic
README.md - Capture proxy → Recorded sessions: records sessions
src/capture/sessions.rs - Recorded sessions → Session encoder recovery: recovers encoding
src/capture/sessions.rs