cfsolve 0.1.3 → 0.1.5
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +40 -0
- data/README.md +30 -5
- data/UPSTREAM.md +24 -3
- data/lib/cfsolve/profiles/safari-26-ios/answers.json +805 -797
- data/lib/cfsolve/profiles/safari-26-ios/challenge-page-answers.json +909 -899
- data/lib/cfsolve/version.rb +2 -2
- data/lib/cfsolve.rb +21 -10
- data/vendor/cfsolve/examples/listing_dump.rs +24 -0
- data/vendor/cfsolve/examples/probe_similarity.rs +37 -0
- data/vendor/cfsolve/examples/rebase_reference.rs +96 -0
- data/vendor/cfsolve/examples/reread_capture.rs +31 -0
- data/vendor/cfsolve/examples/turnstile_smoke.rs +79 -0
- data/vendor/cfsolve/profiles/safari-26-ios/answers.json +805 -797
- data/vendor/cfsolve/profiles/safari-26-ios/challenge-page-answers.json +909 -899
- data/vendor/cfsolve/src/capture/sessions.rs +88 -4
- data/vendor/cfsolve/src/capture.rs +1 -0
- data/vendor/cfsolve/src/deobfuscate/ast.rs +16 -0
- data/vendor/cfsolve/src/deobfuscate/control_flow.rs +1 -1
- data/vendor/cfsolve/src/deobfuscate/dead_branches.rs +33 -0
- data/vendor/cfsolve/src/deobfuscate/merged_functions.rs +24 -4
- data/vendor/cfsolve/src/embedding_page/extra_params.rs +3 -3
- data/vendor/cfsolve/src/embedding_page/page.rs +76 -65
- data/vendor/cfsolve/src/stage2/analysis/discovery.rs +7 -4
- data/vendor/cfsolve/src/stage2/benchmark.rs +29 -8
- data/vendor/cfsolve/src/stage2/call_stack.rs +134 -95
- data/vendor/cfsolve/src/stage2/challenge_page.rs +10 -3
- data/vendor/cfsolve/src/stage2/probes/parent_info.rs +345 -61
- data/vendor/cfsolve/src/stage2/probes/performance.rs +42 -5
- data/vendor/cfsolve/src/stage2/probes/stack.rs +41 -0
- data/vendor/cfsolve/src/stage2/probes/websocket_echo.rs +11 -2
- data/vendor/cfsolve/src/stage2/reference.json +1 -1
- data/vendor/cfsolve/src/stage2/reference.rs +70 -110
- data/vendor/cfsolve/src/stage2/registry.rs +4 -3
- data/vendor/cfsolve/src/stage2/trace.rs +1 -1
- data/vendor/cfsolve/src/vm/dataflow.rs +15 -6
- data/vendor/cfsolve/src/vm/disassemble.rs +2 -1
- data/vendor/cfsolve/src/vm/encoded_strings.rs +1553 -0
- data/vendor/cfsolve/src/vm/extract.rs +205 -152
- data/vendor/cfsolve/src/vm/interpret/access.rs +0 -2
- data/vendor/cfsolve/src/vm/interpret/builtin.rs +0 -13
- data/vendor/cfsolve/src/vm/interpret/intrinsic.rs +30 -7
- data/vendor/cfsolve/src/vm/interpret/mix32.rs +216 -86
- data/vendor/cfsolve/src/vm/interpret/native_dispatch.rs +42 -21
- data/vendor/cfsolve/src/vm/interpret/pattern.rs +268 -67
- data/vendor/cfsolve/src/vm/interpret/register_helpers.rs +261 -30
- data/vendor/cfsolve/src/vm/machine.rs +14 -12
- data/vendor/cfsolve/src/vm/output.rs +4 -1
- data/vendor/cfsolve/src/vm/registers.rs +17 -23
- data/vendor/cfsolve/src/vm/session.rs +9 -4
- data/vendor/cfsolve/src/vm.rs +1 -0
- metadata +7 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 17f1c070f5049f3e421cf6e379373afa0f116c44bae44798137779cc2c09e7c4
|
|
4
|
+
data.tar.gz: 960f65cc93d5de55bad3743c11db7844dea1657003ec47bbaac0895d83e6262e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 26b02363a83fbb419945a08bf16ffad9eeb3e5a625bd35dd1805932f66e9bb6c9107f40096ed3a5338f82d5c8f50384a900518f1abc430480d9376795c383186
|
|
7
|
+
data.tar.gz: 9d89f1b636ec56630bc6827fca0081eb8091b00074e847bac006f1b0583a669d9e6d05dfc10d73daef5008c0637d8fa696144b17df8c1b261a6dc5f1e6c46508
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.5
|
|
4
|
+
|
|
5
|
+
Rebase the native engine onto upstream `19efa31`, restoring Hellenic
|
|
6
|
+
Turnstile compatibility after the November 14 recurrence. Upstream replaces the
|
|
7
|
+
fork's VM and encoded-string patches and refreshes the probe reference data.
|
|
8
|
+
Correct an upstream module path so the engine builds without optional debugging
|
|
9
|
+
and capture tools.
|
|
10
|
+
|
|
11
|
+
Use upstream's refreshed Safari 26 profile by default. Remove the former Chrome
|
|
12
|
+
157 profile, whose stored answers use the previous reference format. Custom
|
|
13
|
+
profiles must be recaptured or replaced with the default. The Ruby API, execution
|
|
14
|
+
deadlines and supported release platforms are unchanged.
|
|
15
|
+
|
|
16
|
+
Retry unsupported challenge variants with a fresh native process, up to three
|
|
17
|
+
attempts within the original deadline. A long live run found one intermittent
|
|
18
|
+
incomplete probe chain; repeated fresh challenges then succeeded. Other errors
|
|
19
|
+
are not retried, and persistent unsupported challenges still raise after three
|
|
20
|
+
attempts.
|
|
21
|
+
|
|
22
|
+
Verify the installed executable and profile on every release platform. Keep
|
|
23
|
+
GitHub's network-dependent live checks separate and require live validation of
|
|
24
|
+
the exact Linux artifact from the deployment network before publishing. During
|
|
25
|
+
this release, GitHub returned Cloudflare `600010` while the same Linux package
|
|
26
|
+
passed repeated fresh production sign-ins, refreshes, inventory and availability.
|
|
27
|
+
|
|
28
|
+
## 0.1.4
|
|
29
|
+
|
|
30
|
+
Update the native engine to the merged, audited `ollym/cfsolve` revision
|
|
31
|
+
`78459e2`, restoring Hellenic Turnstile compatibility with Cloudflare build
|
|
32
|
+
`7c7fee70a876`. This includes the new VM layout, encoded probe names, parent-page
|
|
33
|
+
signals, and fingerprint result formats.
|
|
34
|
+
|
|
35
|
+
Bundle the verified Chrome 157 profile and use it by default. Applications
|
|
36
|
+
passing an older custom profile must update it or remove the override; the old
|
|
37
|
+
measurements are not made compatible by updating the engine alone. The Safari
|
|
38
|
+
profile remains bundled for explicit use. The Ruby API and release platforms
|
|
39
|
+
are unchanged.
|
|
40
|
+
|
|
41
|
+
Validate each packaged platform gem with fresh Hellenic solves before publishing.
|
|
42
|
+
|
|
3
43
|
## 0.1.3
|
|
4
44
|
|
|
5
45
|
Update the native engine to upstream master (`d94de047`) and refresh the bundled
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# cfsolve
|
|
2
2
|
|
|
3
|
-
Ruby bindings for [cfsolve](https://github.com/chris124567/cfsolve), using
|
|
4
|
-
upstream
|
|
3
|
+
Ruby bindings for [cfsolve](https://github.com/chris124567/cfsolve), using the
|
|
4
|
+
upstream engine and its bundled browser profile.
|
|
5
5
|
|
|
6
6
|
```ruby
|
|
7
7
|
gem "cfsolve"
|
|
@@ -25,7 +25,10 @@ sitekey, it uses the page's first Turnstile container. `clear` and `solve` accep
|
|
|
25
25
|
`proxy` and `timeout`; `solve` returns a hash with type `token` or `clearance`.
|
|
26
26
|
Proxies may use HTTP, HTTPS, SOCKS5, or SOCKS5H.
|
|
27
27
|
|
|
28
|
-
The upstream Safari profile is bundled as the default
|
|
28
|
+
The refreshed upstream Safari 26 profile is bundled as the default and verified
|
|
29
|
+
against Hellenic Heritage's Turnstile challenge. The former Chrome 157 profile
|
|
30
|
+
has been removed because its answers use the previous engine's reference format.
|
|
31
|
+
To use a custom profile,
|
|
29
32
|
pass `profile: "/path/to/browser.json"`. Profiles contain browser measurements,
|
|
30
33
|
not site login credentials. A profile file may reference answer files relative
|
|
31
34
|
to its directory. Applications can instead pass parsed hashes through
|
|
@@ -33,6 +36,9 @@ to its directory. Applications can instead pass parsed hashes through
|
|
|
33
36
|
`challenge_page_answers:`. Store private profiles in your application's secret
|
|
34
37
|
configuration. Support depends on the challenge build and profile. Changes at
|
|
35
38
|
Cloudflare may require an updated solver or freshly captured browser answers.
|
|
39
|
+
When upgrading from an earlier release, replace older custom measurements or
|
|
40
|
+
remove the profile override to use the new default. Updating the native engine
|
|
41
|
+
alone does not refresh an application's custom profile.
|
|
36
42
|
|
|
37
43
|
Each call launches a bundled Rust executable, sends configuration through stdin,
|
|
38
44
|
and reads its result through stdout. No tokens or profiles appear in process
|
|
@@ -41,8 +47,10 @@ connections, and deadlines. A frozen Browser can be reused across threads.
|
|
|
41
47
|
|
|
42
48
|
Failures raise `Cfsolve::ConfigurationError`, `NetworkError`, `RejectedError`,
|
|
43
49
|
`UnsupportedError`, `TimeoutError`, or the base `Error`. Error messages omit raw
|
|
44
|
-
responses and request credentials.
|
|
45
|
-
|
|
50
|
+
responses and request credentials. Unsupported challenges get up to three fresh
|
|
51
|
+
attempts within the original deadline; other errors are returned immediately.
|
|
52
|
+
Tokens are never cached. Applications should obtain a fresh token for each form
|
|
53
|
+
submission.
|
|
46
54
|
|
|
47
55
|
## Installation and development
|
|
48
56
|
|
|
@@ -61,6 +69,23 @@ are macOS arm64/x86_64 and Linux GNU aarch64/x86_64. macOS builds require macOS
|
|
|
61
69
|
15.5 or newer; Linux builds require glibc 2.35 or newer. Windows and musl platforms
|
|
62
70
|
are currently unsupported.
|
|
63
71
|
|
|
72
|
+
## Releasing
|
|
73
|
+
|
|
74
|
+
`Build gems` compiles, tests, packages, and verifies each installed platform gem.
|
|
75
|
+
Before dispatching `Publish gem`, download its exact Linux artifact and verify
|
|
76
|
+
fresh challenge solves and the consuming application's authentication flow from
|
|
77
|
+
the deployment network. Do not publish based on build success alone.
|
|
78
|
+
|
|
79
|
+
`Hellenic live checks` runs the same packaged-gem live test from GitHub runners.
|
|
80
|
+
Keep it separate from packaging: Cloudflare can reject a runner with `600010`
|
|
81
|
+
while the identical executable succeeds from the deployment network. A rejection
|
|
82
|
+
is still a failed live check, not a successful solve. `test/live_smoke.rb` accepts
|
|
83
|
+
`CFSOLVE_SMOKE_PROXY` for comparisons through another authorized network.
|
|
84
|
+
|
|
85
|
+
The publish workflow only accepts packages from a successful build of its exact
|
|
86
|
+
commit. The operator dispatching it must first complete the deployment-network
|
|
87
|
+
checks above; credentials and solved tokens must never enter release logs.
|
|
88
|
+
|
|
64
89
|
Use the solver only with sites and accounts you are authorized to access.
|
|
65
90
|
See [UPSTREAM.md](UPSTREAM.md) for provenance and the vendored engine's README
|
|
66
91
|
for profile capture tooling. The MIT license and third-party notices accompany
|
data/UPSTREAM.md
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
The Rust engine is vendored from
|
|
2
|
-
|
|
1
|
+
The Rust engine is vendored from the private
|
|
2
|
+
[ollym/cfsolve](https://github.com/ollym/cfsolve) fork at commit
|
|
3
|
+
`82b19a39f8366b02c9eaf54b1c09ce97870ba981`, rebased onto
|
|
4
|
+
[chris124567/cfsolve](https://github.com/chris124567/cfsolve) master
|
|
5
|
+
`19efa31656328528457376ae0895a61164b22da0`. Upstream now supplies the VM, string
|
|
6
|
+
decoder and parent-page handling previously carried in the private fork, with
|
|
7
|
+
refreshed reference data and browser answers.
|
|
3
8
|
|
|
4
|
-
|
|
9
|
+
The only engine change from upstream is a module-qualified deobfuscator call in
|
|
10
|
+
`src/stage2/benchmark.rs`, fixing compilation without optional tools. The fork
|
|
11
|
+
also retains a Hellenic smoke example and CI checks. The former engine patches
|
|
12
|
+
and Chrome profile have been removed.
|
|
13
|
+
|
|
14
|
+
`vendor/cfsolve` is an unmodified archive of the fork revision. Its three patched
|
|
5
15
|
dependencies and release optimization profile are applied by the extension's
|
|
6
16
|
top-level Cargo manifest. The Ruby adapter is in `lib/` and
|
|
7
17
|
`ext/cfsolve/src/main.rs`.
|
|
@@ -11,3 +21,14 @@ its `profiles/` directory to `lib/cfsolve/profiles/`, update the revision in
|
|
|
11
21
|
`lib/cfsolve/version.rb`, and refresh the extension's Cargo.lock and third-party
|
|
12
22
|
notices if dependencies changed. Run the Ruby tests and fresh challenge checks
|
|
13
23
|
before releasing.
|
|
24
|
+
|
|
25
|
+
The Ruby wrapper makes up to three fresh attempts when upstream reports an
|
|
26
|
+
unsupported challenge. All attempts share the caller's original deadline, and
|
|
27
|
+
other errors are returned immediately. This handles an intermittent incomplete
|
|
28
|
+
probe chain seen during validation without relaxing the engine's parser checks.
|
|
29
|
+
|
|
30
|
+
The refreshed upstream Safari 26 profile is the default for this release. The
|
|
31
|
+
former Chrome 157 profile used the fork's older reference format and is no longer
|
|
32
|
+
bundled. Applications should use the default or recapture their custom profile
|
|
33
|
+
against this engine. The source gem contains the complete vendored engine and
|
|
34
|
+
does not require access to GitHub when building.
|