cfsolve 0.1.2 → 0.1.3

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.
Files changed (368) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/THIRD_PARTY_LICENSES/README.md +71 -254
  4. data/THIRD_PARTY_LICENSES/{derive_builder_macro-0.20.2/LICENSE-APACHE → bytecount-0.6.9/LICENSE.Apache2} +0 -1
  5. data/THIRD_PARTY_LICENSES/{darling-0.20.11/LICENSE → bytecount-0.6.9/LICENSE.MIT} +1 -3
  6. data/THIRD_PARTY_LICENSES/{ident_case-1.0.1/LICENSE → cobs-0.3.0/LICENSE-MIT} +1 -1
  7. data/THIRD_PARTY_LICENSES/cow-utils-0.1.3/LICENSE +21 -0
  8. data/THIRD_PARTY_LICENSES/{hashbrown-0.14.5 → embedded-io-0.4.0}/LICENSE-MIT +1 -1
  9. data/THIRD_PARTY_LICENSES/{ahash-0.8.12 → embedded-io-0.6.1}/LICENSE-MIT +1 -1
  10. data/THIRD_PARTY_LICENSES/{browserslist-data-0.1.4 → escape-simd-0.1.1}/LICENSE +1 -1
  11. data/THIRD_PARTY_LICENSES/escape-simd-0.1.1/NOTICE +62 -0
  12. data/THIRD_PARTY_LICENSES/json-escape-simd-3.1.3/LICENSE +21 -0
  13. data/THIRD_PARTY_LICENSES/{miette-7.6.0/LICENSE → json-escape-simd-3.1.3/LICENSE-APACHE} +0 -1
  14. data/THIRD_PARTY_LICENSES/json-escape-simd-3.1.3/NOTICE +62 -0
  15. data/THIRD_PARTY_LICENSES/memchr-2.8.3/UNLICENSE +24 -0
  16. data/THIRD_PARTY_LICENSES/{derive_builder_core-0.20.2 → nonmax-0.5.5}/LICENSE-APACHE +1 -2
  17. data/THIRD_PARTY_LICENSES/{dashmap-5.5.3/LICENSE → nonmax-0.5.5/LICENSE-MIT} +2 -4
  18. data/THIRD_PARTY_LICENSES/{rand-0.8.5 → num-bigint-0.5.1}/LICENSE-MIT +0 -1
  19. data/THIRD_PARTY_LICENSES/oxc-0.157.0/LICENSE +22 -0
  20. data/THIRD_PARTY_LICENSES/oxc-0.157.0/THIRD-PARTY-LICENSE +763 -0
  21. data/THIRD_PARTY_LICENSES/{browserslist-rs-0.19.0 → oxc-browserslist-5.0.1}/LICENSE +1 -0
  22. data/THIRD_PARTY_LICENSES/oxc_allocator-0.157.0/LICENSE +22 -0
  23. data/THIRD_PARTY_LICENSES/oxc_allocator-0.157.0/THIRD-PARTY-LICENSE +763 -0
  24. data/THIRD_PARTY_LICENSES/oxc_ast-0.157.0/LICENSE +22 -0
  25. data/THIRD_PARTY_LICENSES/oxc_ast-0.157.0/THIRD-PARTY-LICENSE +763 -0
  26. data/THIRD_PARTY_LICENSES/oxc_ast_macros-0.157.0/LICENSE +22 -0
  27. data/THIRD_PARTY_LICENSES/oxc_ast_macros-0.157.0/THIRD-PARTY-LICENSE +763 -0
  28. data/THIRD_PARTY_LICENSES/oxc_ast_visit-0.157.0/LICENSE +22 -0
  29. data/THIRD_PARTY_LICENSES/oxc_ast_visit-0.157.0/THIRD-PARTY-LICENSE +763 -0
  30. data/THIRD_PARTY_LICENSES/oxc_codegen-0.157.0/LICENSE +22 -0
  31. data/THIRD_PARTY_LICENSES/oxc_codegen-0.157.0/THIRD-PARTY-LICENSE +763 -0
  32. data/THIRD_PARTY_LICENSES/oxc_compat-0.157.0/LICENSE +22 -0
  33. data/THIRD_PARTY_LICENSES/oxc_compat-0.157.0/THIRD-PARTY-LICENSE +763 -0
  34. data/THIRD_PARTY_LICENSES/oxc_data_structures-0.157.0/LICENSE +22 -0
  35. data/THIRD_PARTY_LICENSES/oxc_data_structures-0.157.0/THIRD-PARTY-LICENSE +763 -0
  36. data/THIRD_PARTY_LICENSES/oxc_diagnostics-0.157.0/LICENSE +22 -0
  37. data/THIRD_PARTY_LICENSES/oxc_diagnostics-0.157.0/THIRD-PARTY-LICENSE +763 -0
  38. data/THIRD_PARTY_LICENSES/oxc_ecmascript-0.157.0/LICENSE +22 -0
  39. data/THIRD_PARTY_LICENSES/oxc_ecmascript-0.157.0/THIRD-PARTY-LICENSE +763 -0
  40. data/THIRD_PARTY_LICENSES/oxc_estree-0.157.0/LICENSE +22 -0
  41. data/THIRD_PARTY_LICENSES/oxc_estree-0.157.0/THIRD-PARTY-LICENSE +763 -0
  42. data/THIRD_PARTY_LICENSES/oxc_index-5.0.0/LICENSE +22 -0
  43. data/THIRD_PARTY_LICENSES/oxc_parser-0.157.0/LICENSE +22 -0
  44. data/THIRD_PARTY_LICENSES/oxc_parser-0.157.0/THIRD-PARTY-LICENSE +763 -0
  45. data/THIRD_PARTY_LICENSES/oxc_regular_expression-0.157.0/LICENSE +22 -0
  46. data/THIRD_PARTY_LICENSES/oxc_regular_expression-0.157.0/THIRD-PARTY-LICENSE +763 -0
  47. data/THIRD_PARTY_LICENSES/oxc_semantic-0.157.0/LICENSE +22 -0
  48. data/THIRD_PARTY_LICENSES/oxc_semantic-0.157.0/THIRD-PARTY-LICENSE +763 -0
  49. data/THIRD_PARTY_LICENSES/oxc_span-0.157.0/LICENSE +22 -0
  50. data/THIRD_PARTY_LICENSES/oxc_span-0.157.0/THIRD-PARTY-LICENSE +763 -0
  51. data/THIRD_PARTY_LICENSES/oxc_str-0.157.0/LICENSE +22 -0
  52. data/THIRD_PARTY_LICENSES/oxc_str-0.157.0/THIRD-PARTY-LICENSE +763 -0
  53. data/THIRD_PARTY_LICENSES/oxc_syntax-0.157.0/LICENSE +22 -0
  54. data/THIRD_PARTY_LICENSES/oxc_syntax-0.157.0/THIRD-PARTY-LICENSE +763 -0
  55. data/THIRD_PARTY_LICENSES/{fixedbitset-0.5.7 → postcard-1.1.3}/LICENSE-MIT +1 -1
  56. data/THIRD_PARTY_LICENSES/{bytes-str-0.2.7/LICENSE → self_cell-1.3.0/LICENSE-APACHE} +1 -2
  57. data/THIRD_PARTY_LICENSES/self_cell-1.3.0/LICENSE-GPLv2 +339 -0
  58. data/THIRD_PARTY_LICENSES/{darling_core-0.20.11 → smawk-0.3.3}/LICENSE +1 -1
  59. data/UPSTREAM.md +7 -5
  60. data/ext/cfsolve/Cargo.lock +534 -1727
  61. data/ext/cfsolve/Cargo.toml +4 -0
  62. data/ext/cfsolve/src/main.rs +1 -1
  63. data/lib/cfsolve/profiles/safari-26-ios/answers.json +266 -265
  64. data/lib/cfsolve/profiles/safari-26-ios/challenge-page-answers.json +312 -312
  65. data/lib/cfsolve/profiles/safari-26-ios.json +106 -152
  66. data/lib/cfsolve/version.rb +2 -2
  67. data/vendor/cfsolve/Cargo.lock +561 -1729
  68. data/vendor/cfsolve/Cargo.toml +26 -8
  69. data/vendor/cfsolve/README.md +4 -0
  70. data/vendor/cfsolve/examples/check_answers.rs +2 -2
  71. data/vendor/cfsolve/examples/compare_session.rs +1 -2
  72. data/vendor/cfsolve/examples/solver_profile.rs +84 -0
  73. data/vendor/cfsolve/examples/solver_smoke.rs +9 -8
  74. data/vendor/cfsolve/examples/stage2_snapshot.rs +2 -2
  75. data/vendor/cfsolve/examples/tls_echo.rs +3 -3
  76. data/vendor/cfsolve/examples/vm_snapshot.rs +32 -33
  77. data/vendor/cfsolve/profiles/safari-26-ios/answers.json +266 -265
  78. data/vendor/cfsolve/profiles/safari-26-ios/challenge-page-answers.json +312 -312
  79. data/vendor/cfsolve/profiles/safari-26-ios.json +106 -152
  80. data/vendor/cfsolve/src/bin/capture-proxy/main.rs +3 -2
  81. data/vendor/cfsolve/src/bin/challenge/cli.rs +8 -2
  82. data/vendor/cfsolve/src/bin/challenge/main.rs +7 -2
  83. data/vendor/cfsolve/src/capture/proxy/tests.rs +1 -1
  84. data/vendor/cfsolve/src/capture/proxy.rs +44 -13
  85. data/vendor/cfsolve/src/capture/sessions.rs +4 -3
  86. data/vendor/cfsolve/src/capture/upstream.rs +1 -1
  87. data/vendor/cfsolve/src/challenge/codec.rs +4 -2
  88. data/vendor/cfsolve/src/challenge/expression.rs +161 -117
  89. data/vendor/cfsolve/src/challenge/installed/audit.rs +11 -10
  90. data/vendor/cfsolve/src/challenge/installed.rs +13 -6
  91. data/vendor/cfsolve/src/challenge/merge.rs +120 -80
  92. data/vendor/cfsolve/src/challenge/orchestrator.rs +57 -44
  93. data/vendor/cfsolve/src/challenge/payload.rs +69 -31
  94. data/vendor/cfsolve/src/challenge/program.rs +197 -178
  95. data/vendor/cfsolve/src/challenge/reduced_timing.rs +55 -40
  96. data/vendor/cfsolve/src/challenge/source.rs +151 -96
  97. data/vendor/cfsolve/src/challenge/state.rs +180 -148
  98. data/vendor/cfsolve/src/challenge/tally.rs +64 -50
  99. data/vendor/cfsolve/src/challenge.rs +1 -0
  100. data/vendor/cfsolve/src/deobfuscate/analysis/bindings.rs +187 -185
  101. data/vendor/cfsolve/src/deobfuscate/analysis/effects.rs +42 -51
  102. data/vendor/cfsolve/src/deobfuscate/analysis/hoisting.rs +147 -228
  103. data/vendor/cfsolve/src/deobfuscate/analysis/properties.rs +250 -425
  104. data/vendor/cfsolve/src/deobfuscate/analysis/unconditional.rs +79 -0
  105. data/vendor/cfsolve/src/deobfuscate/analysis.rs +259 -41
  106. data/vendor/cfsolve/src/deobfuscate/argument_arrays.rs +70 -73
  107. data/vendor/cfsolve/src/deobfuscate/arrow_blocks.rs +91 -104
  108. data/vendor/cfsolve/src/deobfuscate/ast.rs +383 -0
  109. data/vendor/cfsolve/src/deobfuscate/bitwise.rs +44 -54
  110. data/vendor/cfsolve/src/deobfuscate/blocks.rs +36 -29
  111. data/vendor/cfsolve/src/deobfuscate/call_helpers.rs +80 -131
  112. data/vendor/cfsolve/src/deobfuscate/control_flow.rs +239 -297
  113. data/vendor/cfsolve/src/deobfuscate/copy_propagation.rs +114 -135
  114. data/vendor/cfsolve/src/deobfuscate/dead_branches.rs +62 -61
  115. data/vendor/cfsolve/src/deobfuscate/dead_properties.rs +197 -214
  116. data/vendor/cfsolve/src/deobfuscate/dispatch.rs +238 -298
  117. data/vendor/cfsolve/src/deobfuscate/encoded_strings.rs +198 -203
  118. data/vendor/cfsolve/src/deobfuscate/function_lengths.rs +32 -38
  119. data/vendor/cfsolve/src/deobfuscate/helper_objects.rs +338 -513
  120. data/vendor/cfsolve/src/deobfuscate/hygiene.rs +197 -0
  121. data/vendor/cfsolve/src/deobfuscate/int32_helpers.rs +121 -155
  122. data/vendor/cfsolve/src/deobfuscate/literals.rs +116 -67
  123. data/vendor/cfsolve/src/deobfuscate/loops.rs +43 -43
  124. data/vendor/cfsolve/src/deobfuscate/memoized_strings.rs +127 -131
  125. data/vendor/cfsolve/src/deobfuscate/merged_functions.rs +262 -220
  126. data/vendor/cfsolve/src/deobfuscate/pipeline.rs +199 -244
  127. data/vendor/cfsolve/src/deobfuscate/register_arrays.rs +353 -327
  128. data/vendor/cfsolve/src/deobfuscate/removal.rs +83 -52
  129. data/vendor/cfsolve/src/deobfuscate/simplify.rs +147 -0
  130. data/vendor/cfsolve/src/deobfuscate/state_machines.rs +88 -110
  131. data/vendor/cfsolve/src/deobfuscate/statements.rs +228 -228
  132. data/vendor/cfsolve/src/deobfuscate/static_members.rs +46 -31
  133. data/vendor/cfsolve/src/deobfuscate/testing.rs +49 -59
  134. data/vendor/cfsolve/src/deobfuscate/unused_bindings.rs +92 -102
  135. data/vendor/cfsolve/src/deobfuscate.rs +15 -11
  136. data/vendor/cfsolve/src/embedding_page/extra_params.rs +23 -18
  137. data/vendor/cfsolve/src/embedding_page/render_sample.rs +184 -147
  138. data/vendor/cfsolve/src/error.rs +40 -5
  139. data/vendor/cfsolve/src/fingerprint.rs +8 -2
  140. data/vendor/cfsolve/src/http/client.rs +7 -10
  141. data/vendor/cfsolve/src/http/requests.rs +2 -2
  142. data/vendor/cfsolve/src/js/ast.rs +479 -263
  143. data/vendor/cfsolve/src/lib.rs +1 -0
  144. data/vendor/cfsolve/src/listing/fold.rs +19 -9
  145. data/vendor/cfsolve/src/listing/query.rs +1 -47
  146. data/vendor/cfsolve/src/performance_clock.rs +20 -1
  147. data/vendor/cfsolve/src/profiling.rs +49 -0
  148. data/vendor/cfsolve/src/script.rs +35 -24
  149. data/vendor/cfsolve/src/session/challenge_page.rs +41 -21
  150. data/vendor/cfsolve/src/session/channel.rs +2 -2
  151. data/vendor/cfsolve/src/session/initial.rs +5 -5
  152. data/vendor/cfsolve/src/session/sink.rs +26 -1
  153. data/vendor/cfsolve/src/session/tests/challenge_page.rs +36 -1
  154. data/vendor/cfsolve/src/session.rs +1 -1
  155. data/vendor/cfsolve/src/solver.rs +3 -1
  156. data/vendor/cfsolve/src/stage2/analysis/audit.rs +4 -2
  157. data/vendor/cfsolve/src/stage2/analysis/envelope.rs +2 -1
  158. data/vendor/cfsolve/src/stage2/audit_globals.rs +142 -74
  159. data/vendor/cfsolve/src/stage2/benchmark.rs +62 -31
  160. data/vendor/cfsolve/src/stage2/call_stack.rs +1415 -1025
  161. data/vendor/cfsolve/src/stage2/challenge_page.rs +3 -2
  162. data/vendor/cfsolve/src/stage2/interaction/checkbox.rs +202 -150
  163. data/vendor/cfsolve/src/stage2/interaction/click.rs +2 -2
  164. data/vendor/cfsolve/src/stage2/interaction/plan.rs +5 -4
  165. data/vendor/cfsolve/src/stage2/payload/recover.rs +2 -2
  166. data/vendor/cfsolve/src/stage2/probes/clock.rs +1 -3
  167. data/vendor/cfsolve/src/stage2/probes/performance.rs +12 -8
  168. data/vendor/cfsolve/src/stage2/queries.rs +50 -0
  169. data/vendor/cfsolve/src/stage2/syntax.rs +88 -0
  170. data/vendor/cfsolve/src/stage2/trace.rs +134 -108
  171. data/vendor/cfsolve/src/stage2/vocabulary.rs +1 -11
  172. data/vendor/cfsolve/src/stage2.rs +2 -0
  173. data/vendor/cfsolve/src/vm/disassemble.rs +7 -3
  174. data/vendor/cfsolve/src/vm/dispatch.rs +93 -65
  175. data/vendor/cfsolve/src/vm/extract.rs +347 -250
  176. data/vendor/cfsolve/src/vm/interpret/access.rs +63 -48
  177. data/vendor/cfsolve/src/vm/interpret/builtin.rs +10 -10
  178. data/vendor/cfsolve/src/vm/interpret/call.rs +116 -52
  179. data/vendor/cfsolve/src/vm/interpret/compile.rs +79 -62
  180. data/vendor/cfsolve/src/vm/interpret/copies.rs +2 -2
  181. data/vendor/cfsolve/src/vm/interpret/evaluate/tests.rs +63 -42
  182. data/vendor/cfsolve/src/vm/interpret/evaluate.rs +65 -575
  183. data/vendor/cfsolve/src/vm/interpret/explore.rs +7 -10
  184. data/vendor/cfsolve/src/vm/interpret/formula.rs +131 -0
  185. data/vendor/cfsolve/src/vm/interpret/frozen.rs +3 -5
  186. data/vendor/cfsolve/src/vm/interpret/intrinsic.rs +123 -59
  187. data/vendor/cfsolve/src/vm/interpret/mix32.rs +189 -0
  188. data/vendor/cfsolve/src/vm/interpret/native_dispatch.rs +220 -0
  189. data/vendor/cfsolve/src/vm/interpret/pattern.rs +1736 -0
  190. data/vendor/cfsolve/src/vm/interpret/plan.rs +586 -338
  191. data/vendor/cfsolve/src/vm/interpret/register_helpers.rs +384 -0
  192. data/vendor/cfsolve/src/vm/interpret/run.rs +116 -45
  193. data/vendor/cfsolve/src/vm/interpret/semantics.rs +71 -46
  194. data/vendor/cfsolve/src/vm/interpret/setup.rs +80 -45
  195. data/vendor/cfsolve/src/vm/interpret/string_decoder.rs +482 -0
  196. data/vendor/cfsolve/src/vm/interpret.rs +9 -1
  197. data/vendor/cfsolve/src/vm/machine.rs +56 -49
  198. data/vendor/cfsolve/src/vm/output.rs +13 -5
  199. data/vendor/cfsolve/src/vm/packed_names.rs +11 -7
  200. data/vendor/cfsolve/src/vm/session.rs +185 -120
  201. data/vendor/cfsolve/src/vm/value.rs +22 -19
  202. data/vendor/cfsolve/src/vm.rs +2 -1
  203. data/vendor/cfsolve/vendor/btls-sys/Cargo.toml +3 -0
  204. data/vendor/cfsolve/vendor/btls-sys/build/main.rs +20 -0
  205. metadata +94 -178
  206. data/THIRD_PARTY_LICENSES/Inflector-0.11.4/LICENSE.md +0 -22
  207. data/THIRD_PARTY_LICENSES/arrayvec-0.7.6/LICENSE-MIT +0 -25
  208. data/THIRD_PARTY_LICENSES/ascii-1.1.0/LICENSE-APACHE +0 -201
  209. data/THIRD_PARTY_LICENSES/ascii-1.1.0/LICENSE-MIT +0 -22
  210. data/THIRD_PARTY_LICENSES/ast_node-5.0.0/LICENSE +0 -201
  211. data/THIRD_PARTY_LICENSES/better_scoped_tls-1.0.1/LICENSE +0 -201
  212. data/THIRD_PARTY_LICENSES/bitvec-1.0.1/LICENSE.txt +0 -21
  213. data/THIRD_PARTY_LICENSES/bstr-1.12.1/COPYING +0 -8
  214. data/THIRD_PARTY_LICENSES/bstr-1.12.1/LICENSE-MIT +0 -21
  215. data/THIRD_PARTY_LICENSES/cargo-platform-0.1.9/LICENSE-APACHE +0 -201
  216. data/THIRD_PARTY_LICENSES/cargo_metadata-0.19.2/LICENSE-MIT +0 -23
  217. data/THIRD_PARTY_LICENSES/darling_macro-0.20.11/LICENSE +0 -21
  218. data/THIRD_PARTY_LICENSES/debugid-0.8.0/LICENSE +0 -201
  219. data/THIRD_PARTY_LICENSES/derive_builder-0.20.2/LICENSE-MIT +0 -21
  220. data/THIRD_PARTY_LICENSES/derive_builder_core-0.20.2/LICENSE-MIT +0 -21
  221. data/THIRD_PARTY_LICENSES/derive_builder_macro-0.20.2/LICENSE-MIT +0 -21
  222. data/THIRD_PARTY_LICENSES/foldhash-0.1.5/LICENSE +0 -19
  223. data/THIRD_PARTY_LICENSES/from_variant-3.0.0/LICENSE +0 -201
  224. data/THIRD_PARTY_LICENSES/funty-2.0.0/LICENSE.txt +0 -21
  225. data/THIRD_PARTY_LICENSES/hashbrown-0.16.1/LICENSE-MIT +0 -25
  226. data/THIRD_PARTY_LICENSES/heck-0.5.0/LICENSE-APACHE +0 -201
  227. data/THIRD_PARTY_LICENSES/hermit-abi-0.5.2/LICENSE-APACHE +0 -201
  228. data/THIRD_PARTY_LICENSES/hermit-abi-0.5.2/LICENSE-MIT +0 -23
  229. data/THIRD_PARTY_LICENSES/hstr-3.0.3/LICENSE +0 -202
  230. data/THIRD_PARTY_LICENSES/if_chain-1.0.3/LICENSE-APACHE +0 -201
  231. data/THIRD_PARTY_LICENSES/if_chain-1.0.3/LICENSE-MIT +0 -25
  232. data/THIRD_PARTY_LICENSES/is-macro-0.3.7/LICENSE +0 -202
  233. data/THIRD_PARTY_LICENSES/itoa-1.0.17/LICENSE-MIT +0 -23
  234. data/THIRD_PARTY_LICENSES/jsonc-parser-0.26.3/LICENSE +0 -21
  235. data/THIRD_PARTY_LICENSES/lazy_static-1.5.0/LICENSE-APACHE +0 -201
  236. data/THIRD_PARTY_LICENSES/lazy_static-1.5.0/LICENSE-MIT +0 -25
  237. data/THIRD_PARTY_LICENSES/lru-0.16.2/LICENSE +0 -21
  238. data/THIRD_PARTY_LICENSES/memchr-2.7.6/COPYING +0 -3
  239. data/THIRD_PARTY_LICENSES/memchr-2.7.6/LICENSE-MIT +0 -21
  240. data/THIRD_PARTY_LICENSES/miette-derive-7.6.0/LICENSE +0 -229
  241. data/THIRD_PARTY_LICENSES/normpath-0.2.0/COPYRIGHT +0 -7
  242. data/THIRD_PARTY_LICENSES/normpath-0.2.0/LICENSE-MIT +0 -21
  243. data/THIRD_PARTY_LICENSES/normpath-0.2.0/LICENSE-THIRD-PARTY +0 -210
  244. data/THIRD_PARTY_LICENSES/num_cpus-1.17.0/LICENSE-APACHE +0 -201
  245. data/THIRD_PARTY_LICENSES/num_cpus-1.17.0/LICENSE-MIT +0 -20
  246. data/THIRD_PARTY_LICENSES/owo-colors-4.2.3/LICENSE +0 -21
  247. data/THIRD_PARTY_LICENSES/par-core-2.0.0/LICENSE +0 -202
  248. data/THIRD_PARTY_LICENSES/par-iter-2.0.0/LICENSE +0 -202
  249. data/THIRD_PARTY_LICENSES/path-clean-0.1.0/LICENSE-APACHE +0 -13
  250. data/THIRD_PARTY_LICENSES/path-clean-0.1.0/LICENSE-MIT +0 -18
  251. data/THIRD_PARTY_LICENSES/path-clean-1.0.1/LICENSE-APACHE +0 -13
  252. data/THIRD_PARTY_LICENSES/path-clean-1.0.1/LICENSE-MIT +0 -18
  253. data/THIRD_PARTY_LICENSES/pathdiff-0.2.3/LICENSE-APACHE +0 -201
  254. data/THIRD_PARTY_LICENSES/pathdiff-0.2.3/LICENSE-MIT +0 -23
  255. data/THIRD_PARTY_LICENSES/petgraph-0.7.1/LICENSE-APACHE +0 -201
  256. data/THIRD_PARTY_LICENSES/precomputed-map-0.2.0/LICENSE +0 -21
  257. data/THIRD_PARTY_LICENSES/preset_env_base-6.0.0/LICENSE +0 -201
  258. data/THIRD_PARTY_LICENSES/radium-0.7.0/LICENSE.txt +0 -21
  259. data/THIRD_PARTY_LICENSES/radix_fmt-1.0.0/LICENSE +0 -201
  260. data/THIRD_PARTY_LICENSES/rand-0.8.5/COPYRIGHT +0 -12
  261. data/THIRD_PARTY_LICENSES/rand-0.8.5/LICENSE-APACHE +0 -176
  262. data/THIRD_PARTY_LICENSES/rand_core-0.6.4/COPYRIGHT +0 -12
  263. data/THIRD_PARTY_LICENSES/rand_core-0.6.4/LICENSE-APACHE +0 -187
  264. data/THIRD_PARTY_LICENSES/rand_core-0.6.4/LICENSE-MIT +0 -26
  265. data/THIRD_PARTY_LICENSES/regress-0.10.5/LICENSE-APACHE +0 -201
  266. data/THIRD_PARTY_LICENSES/regress-0.10.5/LICENSE-MIT +0 -21
  267. data/THIRD_PARTY_LICENSES/ryu-1.0.22/LICENSE-APACHE +0 -176
  268. data/THIRD_PARTY_LICENSES/ryu-1.0.22/LICENSE-BOOST +0 -23
  269. data/THIRD_PARTY_LICENSES/scoped-tls-1.0.1/LICENSE-APACHE +0 -201
  270. data/THIRD_PARTY_LICENSES/scoped-tls-1.0.1/LICENSE-MIT +0 -25
  271. data/THIRD_PARTY_LICENSES/siphasher-0.3.11/COPYING +0 -7
  272. data/THIRD_PARTY_LICENSES/smallvec-1.15.1/LICENSE-APACHE +0 -201
  273. data/THIRD_PARTY_LICENSES/smartstring-1.0.1/LICENCE.md +0 -355
  274. data/THIRD_PARTY_LICENSES/st-map-0.2.4/LICENSE +0 -202
  275. data/THIRD_PARTY_LICENSES/static-map-macro-0.3.4/LICENSE +0 -202
  276. data/THIRD_PARTY_LICENSES/string_enum-1.0.2/LICENSE +0 -201
  277. data/THIRD_PARTY_LICENSES/strsim-0.11.1/LICENSE +0 -23
  278. data/THIRD_PARTY_LICENSES/swc-52.0.0/LICENSE +0 -201
  279. data/THIRD_PARTY_LICENSES/swc_allocator-4.0.1/LICENSE +0 -201
  280. data/THIRD_PARTY_LICENSES/swc_atoms-9.0.0/LICENSE +0 -201
  281. data/THIRD_PARTY_LICENSES/swc_common-18.0.1/LICENSE +0 -201
  282. data/THIRD_PARTY_LICENSES/swc_compiler_base-45.0.0/LICENSE +0 -201
  283. data/THIRD_PARTY_LICENSES/swc_config-3.1.2/LICENSE +0 -201
  284. data/THIRD_PARTY_LICENSES/swc_config_macro-1.0.1/LICENSE +0 -201
  285. data/THIRD_PARTY_LICENSES/swc_core-54.0.0/LICENSE +0 -201
  286. data/THIRD_PARTY_LICENSES/swc_ecma_ast-19.0.0/LICENSE +0 -201
  287. data/THIRD_PARTY_LICENSES/swc_ecma_codegen-21.0.0/LICENSE +0 -201
  288. data/THIRD_PARTY_LICENSES/swc_ecma_codegen_macros-2.0.2/LICENSE +0 -201
  289. data/THIRD_PARTY_LICENSES/swc_ecma_compat_bugfixes-39.0.0/LICENSE +0 -201
  290. data/THIRD_PARTY_LICENSES/swc_ecma_compat_common-30.0.0/LICENSE +0 -201
  291. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2015-39.0.0/LICENSE +0 -201
  292. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2016-35.0.0/LICENSE +0 -201
  293. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2017-35.0.0/LICENSE +0 -201
  294. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2018-36.0.0/LICENSE +0 -201
  295. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2019-35.0.0/LICENSE +0 -201
  296. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2020-37.0.0/LICENSE +0 -201
  297. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2021-35.0.0/LICENSE +0 -201
  298. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es2022-37.0.0/LICENSE +0 -201
  299. data/THIRD_PARTY_LICENSES/swc_ecma_compat_es3-26.0.0/LICENSE +0 -201
  300. data/THIRD_PARTY_LICENSES/swc_ecma_ext_transforms-25.0.0/LICENSE +0 -201
  301. data/THIRD_PARTY_LICENSES/swc_ecma_hooks-0.3.0/LICENSE +0 -201
  302. data/THIRD_PARTY_LICENSES/swc_ecma_loader-18.0.0/LICENSE +0 -201
  303. data/THIRD_PARTY_LICENSES/swc_ecma_minifier-42.0.0/LICENSE +0 -201
  304. data/THIRD_PARTY_LICENSES/swc_ecma_parser-32.0.0/LICENSE +0 -201
  305. data/THIRD_PARTY_LICENSES/swc_ecma_preset_env-45.0.0/LICENSE +0 -201
  306. data/THIRD_PARTY_LICENSES/swc_ecma_transformer-6.0.0/LICENSE +0 -201
  307. data/THIRD_PARTY_LICENSES/swc_ecma_transforms-44.0.0/LICENSE +0 -201
  308. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_base-35.0.0/LICENSE +0 -201
  309. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_classes-35.0.0/LICENSE +0 -201
  310. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_compat-40.0.0/LICENSE +0 -201
  311. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_macros-1.0.1/LICENSE +0 -201
  312. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_module-38.0.0/LICENSE +0 -201
  313. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_optimization-37.0.0/LICENSE +0 -201
  314. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_proposal-35.0.0/LICENSE +0 -201
  315. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_react-38.0.0/LICENSE +0 -201
  316. data/THIRD_PARTY_LICENSES/swc_ecma_transforms_typescript-38.0.0/LICENSE +0 -201
  317. data/THIRD_PARTY_LICENSES/swc_ecma_usage_analyzer-27.0.0/LICENSE +0 -201
  318. data/THIRD_PARTY_LICENSES/swc_ecma_utils-25.0.0/LICENSE +0 -201
  319. data/THIRD_PARTY_LICENSES/swc_ecma_visit-19.0.0/LICENSE +0 -201
  320. data/THIRD_PARTY_LICENSES/swc_eq_ignore_macros-1.0.1/LICENSE +0 -201
  321. data/THIRD_PARTY_LICENSES/swc_error_reporters-20.0.0/LICENSE +0 -201
  322. data/THIRD_PARTY_LICENSES/swc_macros_common-1.0.1/LICENSE +0 -201
  323. data/THIRD_PARTY_LICENSES/swc_node_comments-18.0.0/LICENSE +0 -201
  324. data/THIRD_PARTY_LICENSES/swc_timer-1.0.0/LICENSE +0 -201
  325. data/THIRD_PARTY_LICENSES/swc_trace_macro-2.0.2/LICENSE +0 -201
  326. data/THIRD_PARTY_LICENSES/swc_transform_common-12.0.0/LICENSE +0 -201
  327. data/THIRD_PARTY_LICENSES/swc_visit-2.0.1/LICENSE +0 -201
  328. data/THIRD_PARTY_LICENSES/tap-1.0.1/LICENSE.txt +0 -21
  329. data/THIRD_PARTY_LICENSES/tracing-0.1.44/LICENSE +0 -25
  330. data/THIRD_PARTY_LICENSES/tracing-attributes-0.1.31/LICENSE +0 -25
  331. data/THIRD_PARTY_LICENSES/tracing-core-0.1.36/LICENSE +0 -25
  332. data/THIRD_PARTY_LICENSES/triomphe-0.1.15/LICENSE-APACHE +0 -201
  333. data/THIRD_PARTY_LICENSES/triomphe-0.1.15/LICENSE-MIT +0 -27
  334. data/THIRD_PARTY_LICENSES/unicode-width-0.1.14/LICENSE-APACHE +0 -201
  335. data/THIRD_PARTY_LICENSES/unicode-width-0.1.14/LICENSE-MIT +0 -25
  336. data/THIRD_PARTY_LICENSES/uuid-1.19.0/LICENSE-APACHE +0 -201
  337. data/THIRD_PARTY_LICENSES/uuid-1.19.0/LICENSE-MIT +0 -26
  338. data/THIRD_PARTY_LICENSES/vergen-9.0.6/LICENSE-APACHE +0 -201
  339. data/THIRD_PARTY_LICENSES/vergen-9.0.6/LICENSE-MIT +0 -25
  340. data/THIRD_PARTY_LICENSES/vergen-lib-0.1.6/LICENSE-APACHE +0 -201
  341. data/THIRD_PARTY_LICENSES/vergen-lib-0.1.6/LICENSE-MIT +0 -25
  342. data/THIRD_PARTY_LICENSES/wyz-0.5.1/LICENSE.txt +0 -21
  343. data/vendor/cfsolve/src/deobfuscate/analysis/globals.rs +0 -33
  344. data/vendor/cfsolve/src/deobfuscate/analysis/names.rs +0 -52
  345. /data/THIRD_PARTY_LICENSES/{derive_builder-0.20.2 → cobs-0.3.0}/LICENSE-APACHE +0 -0
  346. /data/THIRD_PARTY_LICENSES/{compact_str-0.7.1 → compact_str-0.10.0}/LICENSE +0 -0
  347. /data/THIRD_PARTY_LICENSES/{ahash-0.8.12 → embedded-io-0.4.0}/LICENSE-APACHE +0 -0
  348. /data/THIRD_PARTY_LICENSES/{arrayvec-0.7.6 → embedded-io-0.6.1}/LICENSE-APACHE +0 -0
  349. /data/THIRD_PARTY_LICENSES/{normpath-0.2.0 → escape-simd-0.1.1}/LICENSE-APACHE +0 -0
  350. /data/THIRD_PARTY_LICENSES/{bstr-1.12.1 → itertools-0.15.0}/LICENSE-APACHE +0 -0
  351. /data/THIRD_PARTY_LICENSES/{petgraph-0.7.1 → itertools-0.15.0}/LICENSE-MIT +0 -0
  352. /data/THIRD_PARTY_LICENSES/{itoa-1.0.17 → itoa-1.0.19}/LICENSE-APACHE +0 -0
  353. /data/THIRD_PARTY_LICENSES/{camino-1.2.2 → itoa-1.0.19}/LICENSE-MIT +0 -0
  354. /data/THIRD_PARTY_LICENSES/{globset-0.4.18 → memchr-2.8.3}/COPYING +0 -0
  355. /data/THIRD_PARTY_LICENSES/{globset-0.4.18 → memchr-2.8.3}/LICENSE-MIT +0 -0
  356. /data/THIRD_PARTY_LICENSES/{camino-1.2.2 → num-bigint-0.5.1}/LICENSE-APACHE +0 -0
  357. /data/THIRD_PARTY_LICENSES/{swc_sourcemap-9.3.4 → oxc_sourcemap-9.0.0}/LICENSE +0 -0
  358. /data/THIRD_PARTY_LICENSES/{phf-0.11.3 → phf-0.14.0}/LICENSE +0 -0
  359. /data/THIRD_PARTY_LICENSES/{phf_generator-0.11.3 → phf_generator-0.14.0}/LICENSE +0 -0
  360. /data/THIRD_PARTY_LICENSES/{phf_macros-0.11.3 → phf_macros-0.14.0}/LICENSE +0 -0
  361. /data/THIRD_PARTY_LICENSES/{phf_shared-0.11.3 → phf_shared-0.14.0}/LICENSE +0 -0
  362. /data/THIRD_PARTY_LICENSES/{fixedbitset-0.5.7 → postcard-1.1.3}/LICENSE-APACHE +0 -0
  363. /data/THIRD_PARTY_LICENSES/{hashbrown-0.14.5 → smallvec-1.16.5}/LICENSE-APACHE +0 -0
  364. /data/THIRD_PARTY_LICENSES/{smallvec-1.15.1 → smallvec-1.16.5}/LICENSE-MIT +0 -0
  365. /data/THIRD_PARTY_LICENSES/{unicode-width-0.1.14 → unicode-segmentation-1.13.3}/COPYRIGHT +0 -0
  366. /data/THIRD_PARTY_LICENSES/{hashbrown-0.16.1 → unicode-segmentation-1.13.3}/LICENSE-APACHE +0 -0
  367. /data/THIRD_PARTY_LICENSES/{heck-0.5.0 → unicode-segmentation-1.13.3}/LICENSE-MIT +0 -0
  368. /data/THIRD_PARTY_LICENSES/{cargo-platform-0.1.9 → zmij_ecma-1.0.23}/LICENSE-MIT +0 -0
@@ -4,14 +4,13 @@
4
4
  "profile": "safari_ios_26.2",
5
5
  "platform": "ios",
6
6
  "headers": {
7
- "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.6.2 Mobile/15E148 Safari/604.1"
7
+ "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.6.3 Mobile/15E148 Safari/604.1"
8
8
  },
9
9
  "requests": {
10
10
  "headers": {
11
11
  "navigation": [
12
12
  "sec-fetch-dest: document",
13
13
  "user-agent",
14
- "upgrade-insecure-requests: 1",
15
14
  "accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
16
15
  "sec-fetch-site: none",
17
16
  "sec-fetch-mode: navigate",
@@ -45,7 +44,6 @@
45
44
  "sec-fetch-dest: script",
46
45
  "user-agent",
47
46
  "accept: */*",
48
- "referer",
49
47
  "sec-fetch-site: cross-site",
50
48
  "origin",
51
49
  "sec-fetch-mode: cors",
@@ -78,12 +76,12 @@
78
76
  "page_image": [
79
77
  "sec-fetch-dest: image",
80
78
  "user-agent",
81
- "accept: image/webp,image/avif,image/jxl,image/heic,image/heic-sequence,video/*;q=0.8,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5",
79
+ "accept: */*",
82
80
  "referer",
83
81
  "sec-fetch-site: same-origin",
84
82
  "sec-fetch-mode: no-cors",
85
83
  "accept-language: en-US,en;q=0.9",
86
- "priority: u=5, i",
84
+ "priority: u=3, i",
87
85
  "accept-encoding: gzip, deflate, br, zstd"
88
86
  ],
89
87
  "orchestrator_post": [
@@ -191,19 +189,19 @@
191
189
  },
192
190
  "timeline": {
193
191
  "script_fetch": 90.0,
194
- "implicit_render": 2,
195
- "render_start": 2,
192
+ "implicit_render": 1,
193
+ "render_start": 1,
196
194
  "render_end": 3,
197
- "init_start": 225,
198
- "params_start": 225,
199
- "collect_start": 225,
200
- "sent": 226
195
+ "init_start": 498,
196
+ "params_start": 498,
197
+ "collect_start": 498,
198
+ "sent": 500
201
199
  },
202
200
  "intervals": {
203
201
  "initialise": 7,
204
202
  "handoff": 8,
205
- "collect": 19,
206
- "send": 121
203
+ "collect": 43,
204
+ "send": 49
207
205
  },
208
206
  "orchestrator": {
209
207
  "intervals": {
@@ -218,14 +216,25 @@
218
216
  "interaction": {
219
217
  "width": 300,
220
218
  "height": 65,
221
- "checkbox": {"x": 9, "y": 20.5, "width": 168.125, "height": 24},
219
+ "checkbox": {
220
+ "x": 9,
221
+ "y": 20.5,
222
+ "width": 168.125,
223
+ "height": 24
224
+ },
222
225
  "ready_delay_ms": 1000,
223
226
  "device_pixel_ratio": 2,
224
227
  "touch": true
225
228
  },
226
229
  "resource_timing": {
227
- "phases": {"request": 0.07, "response": 0.04},
228
- "navigation": {"request": 0, "response": 0.9},
230
+ "phases": {
231
+ "request": 0.07,
232
+ "response": 0.04
233
+ },
234
+ "navigation": {
235
+ "request": 0,
236
+ "response": 0.9
237
+ },
229
238
  "sizes_exposed": false
230
239
  },
231
240
  "second": {
@@ -286,57 +295,45 @@
286
295
  "codecs": [
287
296
  {
288
297
  "mimeType": "video/H264",
289
- "clockRate": 90000,
290
298
  "sdpFmtpLine": "level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640c1f"
291
299
  },
292
300
  {
293
- "mimeType": "video/rtx",
294
- "clockRate": 90000
301
+ "mimeType": "video/rtx"
295
302
  },
296
303
  {
297
304
  "mimeType": "video/H264",
298
- "clockRate": 90000,
299
305
  "sdpFmtpLine": "level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f"
300
306
  },
301
307
  {
302
308
  "mimeType": "video/H264",
303
- "clockRate": 90000,
304
309
  "sdpFmtpLine": "level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=640c1f"
305
310
  },
306
311
  {
307
312
  "mimeType": "video/H264",
308
- "clockRate": 90000,
309
313
  "sdpFmtpLine": "level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f"
310
314
  },
311
315
  {
312
- "mimeType": "video/H265",
313
- "clockRate": 90000
316
+ "mimeType": "video/H265"
314
317
  },
315
318
  {
316
- "mimeType": "video/VP8",
317
- "clockRate": 90000
319
+ "mimeType": "video/VP8"
318
320
  },
319
321
  {
320
322
  "mimeType": "video/VP9",
321
- "clockRate": 90000,
322
323
  "sdpFmtpLine": "profile-id=0"
323
324
  },
324
325
  {
325
326
  "mimeType": "video/VP9",
326
- "clockRate": 90000,
327
327
  "sdpFmtpLine": "profile-id=2"
328
328
  },
329
329
  {
330
- "mimeType": "video/red",
331
- "clockRate": 90000
330
+ "mimeType": "video/red"
332
331
  },
333
332
  {
334
- "mimeType": "video/ulpfec",
335
- "clockRate": 90000
333
+ "mimeType": "video/ulpfec"
336
334
  },
337
335
  {
338
336
  "mimeType": "video/flexfec-03",
339
- "clockRate": 90000,
340
337
  "sdpFmtpLine": "repair-window=10000000"
341
338
  }
342
339
  ]
@@ -372,19 +369,27 @@
372
369
  "connection": {
373
370
  "pub_candidates": [
374
371
  {
375
- "candidate": "candidate:3460880736 1 udp 2113939711 f1bed2f8-f860-457f-b026-2d23d9140c03.local 59340 typ host generation 0 ufrag mtbG network-cost 999",
376
- "observed_ms": 1792876992039
372
+ "candidate": "candidate:3365578958 1 udp 2113939711 4efdf14a-c478-4a57-af4f-f93652571133.local 53247 typ host generation 0 ufrag RZx2 network-cost 999",
373
+ "observed_ms": 1793846567299
374
+ },
375
+ {
376
+ "candidate": "candidate:3171752881 1 udp 2113937151 eec7abc6-8aa8-4d87-93df-97edb4195271.local 58701 typ host generation 0 ufrag RZx2 network-cost 999",
377
+ "observed_ms": 1793846567301
377
378
  },
378
379
  {
379
- "candidate": "candidate:3747697418 1 udp 2113937151 f9501b39-1d57-4eb6-8029-16167a5a330b.local 51498 typ host generation 0 ufrag mtbG network-cost 999",
380
- "observed_ms": 1792876992039
380
+ "candidate": "candidate:3269085423 1 udp 1677729535 192.0.2.1 64972 typ srflx raddr 0.0.0.0 rport 0 generation 0 ufrag RZx2 network-cost 999",
381
+ "observed_ms": 1793846567321
382
+ },
383
+ {
384
+ "candidate": "candidate:2965943324 1 udp 1677732095 2001:db8::1 53247 typ srflx raddr :: rport 0 generation 0 ufrag RZx2 network-cost 999",
385
+ "observed_ms": 1793846567322
381
386
  }
382
387
  ],
383
388
  "data_channel": true,
384
- "sdp": "v=0\r\no=- 2400467206764510475 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS\r\nm=application 9 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:mtbG\r\na=ice-pwd:0Dc00kOlIMYBy8fnUlejV6Qu\r\na=ice-options:trickle\r\na=fingerprint:sha-256 DD:42:3A:63:B0:F3:DD:05:09:2E:04:DB:DC:08:0F:95:85:98:BB:9E:04:10:8B:72:64:14:09:0E:31:EA:13:69\r\na=setup:actpass\r\na=mid:0\r\na=sctp-port:5000\r\na=max-message-size:262144\r\n"
389
+ "sdp": "v=0\r\no=- 1803177693538617135 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS\r\nm=application 9 UDP/DTLS/SCTP webrtc-datachannel\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:RZx2\r\na=ice-pwd:arZjbz5Lh95VJ4fZkG2OhoAw\r\na=ice-options:trickle\r\na=fingerprint:sha-256 B9:EC:6E:F3:0B:88:81:6E:5D:C2:0C:B4:7F:8D:F1:2F:22:B6:C4:23:4F:DC:C7:E6:6C:5D:C7:93:95:77:D7:7A\r\na=setup:actpass\r\na=mid:0\r\na=sctp-port:5000\r\na=max-message-size:262144\r\n"
385
390
  },
386
- "started_ms": 1792876992546,
387
- "finished_ms": 1792876992554,
391
+ "started_ms": 1793846568401,
392
+ "finished_ms": 1793846568407,
388
393
  "ice_state": "complete"
389
394
  }
390
395
  },
@@ -402,93 +407,41 @@
402
407
  },
403
408
  "benchmark_worker": {
404
409
  "compile_ms": [
405
- 11.499999999999993,
406
- 2.039999999999992,
407
- 1.1599999999999966,
408
- 2.0,
409
- 1.6599999999999682,
410
- 2.5
410
+ 7.0,
411
+ 1.5
411
412
  ],
412
413
  "kernel_ms_per_million": [
413
414
  [
414
- 1.003,
415
- 0.93,
416
- 0.944,
417
- 1.035,
418
- 0.972,
419
- 0.946,
420
- 1.291,
421
- 0.962,
422
- 0.941,
423
- 1.214,
424
- 0.971,
425
- 0.971,
426
- 1.003,
427
- 0.935,
428
- 0.964,
429
- 1.002,
430
- 0.953,
431
- 0.968
415
+ 0.973,
416
+ 0.973,
417
+ 0.973,
418
+ 1.16,
419
+ 0.926,
420
+ 0.931
432
421
  ],
433
422
  [
434
- 1.055,
435
- 0.932,
436
- 0.946,
437
- 1.027,
438
- 0.933,
439
- 0.944,
440
- 1.061,
441
- 0.942,
442
- 0.947,
443
- 1.007,
444
- 1.007,
445
- 1.007,
446
- 1.399,
447
- 0.926,
448
- 0.941,
449
- 1.379,
450
- 0.936,
451
- 0.946
423
+ 1.246,
424
+ 0.996,
425
+ 0.996,
426
+ 1.294,
427
+ 0.973,
428
+ 0.989
452
429
  ],
453
430
  [
454
- 1.222,
455
- 0.617,
456
- 0.635,
457
- 0.801,
431
+ 1.038,
432
+ 0.649,
433
+ 0.649,
434
+ 0.71,
458
435
  0.621,
459
- 0.626,
460
- 0.665,
461
- 0.628,
462
- 0.631,
463
- 0.645,
464
- 0.645,
465
- 0.645,
466
- 0.746,
467
- 0.62,
468
- 0.63,
469
- 0.656,
470
- 0.629,
471
- 0.641
436
+ 0.629
472
437
  ],
473
438
  [
474
- 5.798,
475
- 5.567,
476
- 5.609,
477
- 5.75,
478
- 5.574,
479
- 5.692,
480
- 5.978,
481
- 5.707,
482
- 5.707,
483
- 5.831,
484
- 5.831,
485
- 5.831,
486
- 5.931,
487
- 5.554,
488
- 5.673,
489
- 5.869,
490
- 5.693,
491
- 5.791
439
+ 6.168,
440
+ 5.14,
441
+ 6.168,
442
+ 5.787,
443
+ 5.85,
444
+ 5.724
492
445
  ]
493
446
  ]
494
447
  }
@@ -501,45 +454,46 @@
501
454
  "online": true
502
455
  },
503
456
  "durations": {
504
- "audio": 24,
505
- "behavior": 4,
506
- "clock_resolution": 6,
507
- "computed_style_hash": 12,
508
- "console": 26,
509
- "date_parsing_offsets": 1,
510
- "document_structure": 0,
511
- "document_summary": 1,
512
- "dom_mutation": 2,
513
- "emoji_color": 3,
514
- "empty": 0,
515
- "environment": 5,
516
- "environment_audit": 17,
517
- "error_message_length": 1,
518
- "font_enumeration": 6,
519
- "graphics": 48,
457
+ "audio": 23,
458
+ "behavior": 7,
459
+ "clock_resolution": 8,
460
+ "computed_style_hash": 20,
461
+ "console": 32,
462
+ "date_parsing_offsets": 6,
463
+ "document_structure": 2,
464
+ "document_summary": 2,
465
+ "dom_mutation": 4,
466
+ "emoji_color": 8,
467
+ "empty": 1,
468
+ "environment": 6,
469
+ "environment_audit": 24,
470
+ "error_message_length": 4,
471
+ "font_enumeration": 31,
472
+ "graphics": 99,
520
473
  "high_entropy_user_agent": 1,
521
- "image": 14,
522
- "intl": 3,
523
- "isolation": 16,
524
- "keyboard_layout": 0,
525
- "math": 6,
526
- "media": 5,
527
- "native_inspection": 65,
528
- "network_information": 0,
529
- "parent_info": 0,
530
- "performance_entries": 1,
531
- "private_token": 1,
532
- "rects": 5,
474
+ "image": 15,
475
+ "intl": 12,
476
+ "isolation": 20,
477
+ "keyboard_layout": 1,
478
+ "math": 8,
479
+ "media": 14,
480
+ "native_inspection": 52,
481
+ "network_information": 1,
482
+ "parent_info": 2,
483
+ "performance_entries": 3,
484
+ "private_token": 7,
485
+ "rects": 12,
533
486
  "stack": 1,
534
487
  "storage": 5,
535
- "stylesheets": 3,
536
- "summarizer_availability": 0,
537
- "svg_geometry": 18,
538
- "worker_fetch": 1,
539
- "worker_navigator": 7
488
+ "stylesheets": 5,
489
+ "summarizer_availability": 1,
490
+ "svg_geometry": 51,
491
+ "websocket_echo": 7,
492
+ "worker_fetch": 4,
493
+ "worker_navigator": 13
540
494
  },
541
- "startup_ms": 119,
542
- "pending_ms": 227
495
+ "startup_ms": 281,
496
+ "pending_ms": 191
543
497
  },
544
498
  "answers": "safari-26-ios/answers.json",
545
499
  "challenge_page_answers": "safari-26-ios/challenge-page-answers.json"
@@ -12,7 +12,8 @@
12
12
  //! pages are intercepted.
13
13
  //!
14
14
  //! Ctrl-C waits for session extraction to finish and writes the logs. A second Ctrl-C writes
15
- //! the logs without waiting.
15
+ //! the logs without waiting. On Windows, closing the console also writes the logs without
16
+ //! waiting, because Windows ends the process a few seconds later.
16
17
 
17
18
  mod cli;
18
19
  mod io;
@@ -49,7 +50,7 @@ fn main() -> Result<()> {
49
50
  let runtime = Builder::new_multi_thread().enable_all().build()?;
50
51
  let result = runtime.block_on(async {
51
52
  // Use the same upstream proxy for forwarded requests and tunnels.
52
- let client = transport.client(arguments.upstream_proxy.as_deref())?;
53
+ let client = transport.client(arguments.upstream_proxy.as_deref(), None)?;
53
54
  CaptureProxy::try_new(config, client, ca)?.run().await
54
55
  });
55
56
  // Exit without waiting for an extraction still in progress.
@@ -37,7 +37,10 @@ Options:
37
37
  --solve.
38
38
  --proxy <url> Send every request through an http://, https://,
39
39
  socks5:// or socks5h:// proxy. Credentials go in the
40
- URL: socks5h://user:password@host:port.";
40
+ URL: socks5h://user:password@host:port.
41
+ --trust-ca <cert.pem>
42
+ Trust this certificate instead of the built-in roots,
43
+ such as capture-proxy's CA, to record the session.";
41
44
 
42
45
  /// Session settings from the command line.
43
46
  #[derive(Debug)]
@@ -46,6 +49,7 @@ pub struct SessionArgs {
46
49
  pub directory: PathBuf,
47
50
  pub fingerprint: PathBuf,
48
51
  pub proxy: Option<String>,
52
+ pub trust_ca: Option<PathBuf>,
49
53
  }
50
54
 
51
55
  /// The page or iframe that starts a session, and how far the session goes.
@@ -67,7 +71,7 @@ pub fn parse(arguments: impl IntoIterator<Item = OsString>) -> Result<Option<Ses
67
71
  let mut arguments = arguments.into_iter();
68
72
  let (mut page, mut fingerprint, mut proxy) = (None, None, None);
69
73
  let (mut sitekey, mut action, mut cdata) = (None, None, None);
70
- let (mut solve, mut blank) = (None, None);
74
+ let (mut solve, mut blank, mut trust_ca) = (None, None, None);
71
75
  let mut positional = Vec::new();
72
76
  while let Some(argument) = arguments.next() {
73
77
  let Some(name) = argument
@@ -91,6 +95,7 @@ pub fn parse(arguments: impl IntoIterator<Item = OsString>) -> Result<Option<Ses
91
95
  "--action" => once(&mut action, name, text(&mut arguments, name)?)?,
92
96
  "--cdata" => once(&mut cdata, name, text(&mut arguments, name)?)?,
93
97
  "--proxy" => once(&mut proxy, name, proxy_url(&value(&mut arguments, name)?)?)?,
98
+ "--trust-ca" => once(&mut trust_ca, name, value(&mut arguments, name)?.into())?,
94
99
  _ => bail!("unknown option {name}\n\n{USAGE}"),
95
100
  }
96
101
  }
@@ -147,6 +152,7 @@ pub fn parse(arguments: impl IntoIterator<Item = OsString>) -> Result<Option<Ses
147
152
  directory: directory.into(),
148
153
  fingerprint: fingerprint.into(),
149
154
  proxy,
155
+ trust_ca,
150
156
  }))
151
157
  }
152
158
 
@@ -4,10 +4,10 @@
4
4
  mod cli;
5
5
  mod io;
6
6
 
7
- use std::env;
8
7
  use std::sync::Arc;
8
+ use std::{env, fs};
9
9
 
10
- use anyhow::Result;
10
+ use anyhow::{Context, Result};
11
11
  use cfsolve::{Browser, Options, Outcome};
12
12
  use tokio::runtime::Builder;
13
13
 
@@ -21,9 +21,14 @@ fn main() -> Result<()> {
21
21
  };
22
22
  // Load the browser before any network access.
23
23
  let browser = Browser::read(&arguments.fingerprint)?;
24
+ let trusted_root = arguments
25
+ .trust_ca
26
+ .map(|path| fs::read(&path).with_context(|| format!("reading {}", path.display())))
27
+ .transpose()?;
24
28
  let artifacts = Artifacts::try_new(arguments.directory)?;
25
29
  let options = Options {
26
30
  proxy: arguments.proxy,
31
+ trusted_root,
27
32
  sink: Some(Arc::new(artifacts)),
28
33
  };
29
34
  let runtime = Builder::new_multi_thread().enable_all().build()?;
@@ -46,7 +46,7 @@ impl Loopback {
46
46
  async fn start(mitm_hosts: Vec<String>) -> Self {
47
47
  let profile = Path::new("profiles/safari-26-ios.json");
48
48
  let transport = Transport::read(profile).unwrap();
49
- let client = transport.client(None).unwrap();
49
+ let client = transport.client(None, None).unwrap();
50
50
  let config = Config {
51
51
  listen: "127.0.0.1:0".parse().unwrap(),
52
52
  mitm_hosts,
@@ -34,7 +34,7 @@ use super::sessions::{self, Iframe, Post, Sessions};
34
34
  use super::traffic::{Connection, Traffic};
35
35
  use super::upstream::{self, Stream, UpstreamProxy};
36
36
  use crate::http::{self, BrowserClient, Proxied};
37
- use crate::js::ast;
37
+ use crate::js::ast::ParsedScript;
38
38
  use crate::{challenge, deobfuscate};
39
39
 
40
40
  const ESTABLISHED: &[u8] = b"HTTP/1.1 200 Connection Established\r\n\r\n";
@@ -103,7 +103,9 @@ impl CaptureProxy {
103
103
  }
104
104
 
105
105
  /// Listens until Ctrl-C or SIGTERM, then waits for extraction and writes session and
106
- /// traffic logs. A second stop request skips the wait.
106
+ /// traffic logs. A second stop request skips the wait. When Windows closes the console, the
107
+ /// proxy skips the wait and writes the logs at once, because Windows ends the process a few
108
+ /// seconds later.
107
109
  pub async fn run(self) -> Result<()> {
108
110
  let proxy = Arc::new(self);
109
111
  let listener = TcpListener::bind(proxy.config.listen)
@@ -111,7 +113,7 @@ impl CaptureProxy {
111
113
  .with_context(|| format!("binding {}", proxy.config.listen))?;
112
114
  eprintln!("capture-proxy listening on {}", proxy.config.listen);
113
115
  let mut shutdown = pin!(shutdown_requested());
114
- loop {
116
+ let stop = loop {
115
117
  tokio::select! {
116
118
  accepted = listener.accept() => match accepted {
117
119
  Ok((stream, peer)) => {
@@ -124,13 +126,17 @@ impl CaptureProxy {
124
126
  }
125
127
  Err(error) => eprintln!("accepting a client: {error}"),
126
128
  },
127
- () = &mut shutdown => break,
129
+ stop = &mut shutdown => break stop,
128
130
  }
129
- }
130
- eprintln!("shutting down; finishing the session extractions (Ctrl-C again to skip)");
131
- tokio::select! {
132
- () = proxy.sessions.finish_extractions() => {}
133
- () = shutdown_requested() => eprintln!("skipped the unfinished extractions"),
131
+ };
132
+ if stop == Stop::Asked {
133
+ eprintln!("shutting down; finishing the session extractions (Ctrl-C again to skip)");
134
+ tokio::select! {
135
+ () = proxy.sessions.finish_extractions() => {}
136
+ _ = shutdown_requested() => eprintln!("skipped the unfinished extractions"),
137
+ }
138
+ } else {
139
+ eprintln!("the console is closing; skipped the unfinished extractions");
134
140
  }
135
141
  eprintln!("writing the session logs");
136
142
  proxy.sessions.write_all(&proxy.config.out_dir);
@@ -425,9 +431,9 @@ impl CaptureProxy {
425
431
  let encoding = header_value(&upstream.headers, header::CONTENT_ENCODING);
426
432
  let html = String::from_utf8(http::decode_body(&upstream.body, &encoding).ok()?).ok()?;
427
433
  let scanned = challenge::inline_javascript(&html).and_then(|javascript| {
428
- let parsed = ast::parse_javascript("iframe.js", &javascript)?;
429
- let strings = deobfuscate::inline_strings(&parsed.script);
430
- let alphabet = sessions::scan_alphabet(&parsed.script, &strings)?;
434
+ let parsed = ParsedScript::parse("iframe.js", &javascript)?;
435
+ let strings = deobfuscate::inline_strings(&javascript)?;
436
+ let alphabet = sessions::scan_alphabet(parsed.script().program, &strings)?;
431
437
  let swapped = rsa::swap_modulus(&html, &strings, &self.sessions.proxy_key.modulus)?;
432
438
  anyhow::Ok((alphabet, swapped))
433
439
  });
@@ -477,8 +483,20 @@ fn kept(
477
483
  }
478
484
  }
479
485
 
486
+ /// Why the proxy is stopping.
487
+ #[derive(Clone, Copy, PartialEq, Eq)]
488
+ enum Stop {
489
+ /// Ctrl-C, or SIGTERM on Unix. The proxy has time to finish its extractions.
490
+ Asked,
491
+ /// The console is closing. Windows ends the process about five seconds after it tells the
492
+ /// proxy, so the proxy only has time to write its logs.
493
+ #[cfg(windows)]
494
+ ConsoleClosing,
495
+ }
496
+
480
497
  /// Waits for Ctrl-C or SIGTERM so the proxy can write logs before exiting.
481
- async fn shutdown_requested() {
498
+ #[cfg(unix)]
499
+ async fn shutdown_requested() -> Stop {
482
500
  use tokio::signal::unix::{self, SignalKind};
483
501
 
484
502
  let mut terminate = unix::signal(SignalKind::terminate()).expect("watching for SIGTERM");
@@ -486,6 +504,19 @@ async fn shutdown_requested() {
486
504
  _ = tokio::signal::ctrl_c() => {}
487
505
  _ = terminate.recv() => {}
488
506
  }
507
+ Stop::Asked
508
+ }
509
+
510
+ /// Waits for Ctrl-C or for its console to close so the proxy can write logs before exiting.
511
+ #[cfg(windows)]
512
+ async fn shutdown_requested() -> Stop {
513
+ use tokio::signal::windows;
514
+
515
+ let mut close = windows::ctrl_close().expect("watching for the console closing");
516
+ tokio::select! {
517
+ _ = tokio::signal::ctrl_c() => Stop::Asked,
518
+ _ = close.recv() => Stop::ConsoleClosing,
519
+ }
489
520
  }
490
521
 
491
522
  /// Extracts the CA download path from a plain HTTP target. Origin-form targets address the
@@ -14,9 +14,10 @@ use std::sync::{Arc, Mutex, MutexGuard};
14
14
 
15
15
  use anyhow::{Context, Result};
16
16
  use num_bigint::BigUint;
17
+ use oxc::ast::ast::Program;
18
+ use oxc::ast_visit::Visit;
17
19
  use serde::{Serialize, Serializer};
18
20
  use serde_json::Value;
19
- use swc_core::ecma::ast::Script;
20
21
  use tokio::task::JoinSet;
21
22
  use url::Url;
22
23
 
@@ -349,8 +350,8 @@ fn extract_codec(original: &str) -> Result<Codec> {
349
350
  /// Searches literals and inline decoded `strings` for a custom base64 alphabet using the solver's
350
351
  /// alphabet rule. Searches the entire raw script, including outside the immediately invoked
351
352
  /// function. Background extraction validates the result before saving session answers.
352
- pub(super) fn scan_alphabet(script: &Script, strings: &[Encoded]) -> Result<String> {
353
- let mut candidates = ast::string_literals(script);
353
+ pub(super) fn scan_alphabet(program: &Program<'_>, strings: &[Encoded]) -> Result<String> {
354
+ let mut candidates = ast::string_literals(|literals| literals.visit_program(program));
354
355
  candidates.extend(strings.iter().map(|string| string.decoded.clone()));
355
356
  program::base64_alphabet(candidates)
356
357
  }
@@ -307,7 +307,7 @@ mod tests {
307
307
  auth: None,
308
308
  remote_dns: false,
309
309
  };
310
- let mut tunnel = socks.connect("localhost", 80).await.unwrap();
310
+ let mut tunnel = socks.connect("127.0.0.1", 80).await.unwrap();
311
311
  let request = request_receiver.await.unwrap();
312
312
  assert_eq!(
313
313
  request[..4],
@@ -419,8 +419,11 @@ fn schedule(key: [u32; 4]) -> [u32; 64] {
419
419
  keys
420
420
  }
421
421
 
422
+ fn mix(value: u32) -> u32 {
423
+ ((value << 4) ^ (value >> 5)).wrapping_add(value)
424
+ }
425
+
422
426
  fn encrypt_block([mut a, mut b]: [u32; 2], keys: &[u32; 64]) -> [u32; 2] {
423
- let mix = |value: u32| ((value << 4) ^ (value >> 5)).wrapping_add(value);
424
427
  for [first, second] in keys.as_chunks::<2>().0 {
425
428
  a = a.wrapping_add(mix(b) ^ first);
426
429
  b = b.wrapping_add(mix(a) ^ second);
@@ -429,7 +432,6 @@ fn encrypt_block([mut a, mut b]: [u32; 2], keys: &[u32; 64]) -> [u32; 2] {
429
432
  }
430
433
 
431
434
  fn decrypt_block([mut a, mut b]: [u32; 2], keys: &[u32; 64]) -> [u32; 2] {
432
- let mix = |value: u32| ((value << 4) ^ (value >> 5)).wrapping_add(value);
433
435
  let (rounds, _) = keys.as_chunks::<2>();
434
436
  for [first, second] in rounds.iter().rev() {
435
437
  b = b.wrapping_sub(mix(a) ^ second);