RepositoryJavaScript
buggerlogger

buggerlogger/arkose-solver

Arkose Labs / FunCaptcha solver for Go, Python and Node — produces sup=1 suppressed tokens. The site RSA key is derived from api.js on every solve: no capture, no replay, no headless browser. Includes a full VM disassembly.

75sao
16fork
3issue
3lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: arkoselabs

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: deobfuscation

#1 Repository của tuần

2
TINIX TRENDING·Chủ đề: bda

#2 Repository của tuần

arkose-solver

Go Reference PyPI npm License: MIT

An Arkose Labs / FunCaptcha token solver for Go, Python and Node. It synthesises a real-browser BDA fingerprint, encrypts it with the site's RSA-OAEP + AES-GCM envelope, and posts it to /fc/gt2/public_key/{pk} to obtain a suppressed (sup=1) token — no headless browser, no Node sandbox, no key to capture. One HTTP round-trip.

GET /token  ->  {"token":"98718c6b...|r=eu-west-1|...|sup=1|...","suppressed":true,"elapsed_ms":1482}

You supply only the site key and the verify host. Everything else — including the site's RSA public key — is derived from the served api.js on every solve.


Install

go get github.com/buggerlogger/arkose-solver/arkose   # Go 1.25+
pip install arkose-solver                             # Python 3.10+
npm install arkose-solver node-tls-client             # Node 18+

The Go package is the reference implementation and the rest of this README documents it; see Python and Node ports for those.

Library

package main

import (
	"fmt"
	"log"

	"github.com/buggerlogger/arkose-solver/arkose"
)

func main() {
	s, err := arkose.New(
		arkose.WithSurl("https://verify.example.com"),
		arkose.WithPublicKey("00000000-0000-0000-0000-000000000000"),
		arkose.WithSite("https://www.example.com"),
		arkose.WithProxy("http://user:pass@host:port"), // optional
	)
	if err != nil {
		log.Fatal(err)
	}

	res, err := s.Solve()
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(res.Token, "suppressed:", res.Suppressed)
}

Solve() returns *SolveResult{ Token, Suppressed, Timings }. Suppressed == true means the token carries sup=1 and is accepted with no challenge.

Options

OptionPurpose
WithSurl(host)Arkose verify host, e.g. https://verify.example.com (required)
WithPublicKey(uuid)Arkose site key (required)
WithSite(url)origin the widget runs on (derives Origin/Referer)
WithProxy(p)egress proxy — http(s)://, socks5://, host:port:user:pass, user:pass@host:port
WithRSAPublicKey(spki)pin the RSA key instead of auto-extracting it (rarely needed)
WithUserAgent(ua)override the UA (also reported in the BDA)
WithLanguage(l)language (default en-US)
WithCapiMode(m)lightbox (default) or inline
WithReferer(r) / WithOrigin(o)override headers explicitly
WithSitedataLocationHref(u)page URL reported in the BDA
WithTitle(t)document.title of the embedding page (BDA jsbd DT)
WithDataExchangeURL(u)auto-fetch a fresh data[blob] per solve from this page URL
WithDataExchangeRegex(re)override the blob extractor (default data-adx="([^"]+)")

Inject your own transport with Solver.SetHTTPClient(...) to share a session, or supply a blob per solve with Solver.SetDataBlob(...).

CLI server

go build -ldflags="-s -w" -o arkose-server ./cmd/arkose-server

arkose-server \
  -surl https://verify.example.com \
  -pk   00000000-0000-0000-0000-000000000000 \
  -site https://www.example.com

curl http://127.0.0.1:8100/token

Per-request proxy: curl -H "Proxy: host:port:user:pass" http://127.0.0.1:8100/token. With a blob: http://127.0.0.1:8100/token?blob=<data-adx value>.

FlagMeaningDefault
-addrlisten address127.0.0.1:8100
-surlArkose verify host (required)—
-pksite key / public_key UUID (required)—
-siteorigin the widget runs on—
-rsapin the RSA key (optional; auto-extracted when unset)auto
-proxydefault egress proxynone
-uaoverride User-AgentChrome 152 Win64
-langlanguageen-US
-modelightbox or inlinelightbox

Find your public_key in the page's Arkose script URL …/v2/<PUBLIC_KEY>/api.js (or a data-pkey / data-apk attribute); surl is the host serving that script.



Reverse-engineering notes

specimen/ contains the deobfuscated bundle and the full analysis of the stack VM that api.js embeds — the fingerprint probes, the RSA key and the entire crypto envelope live there as bytecode, which is why RSA-OAEP, AES-GCM, spki and importKey appear nowhere in the source.


The RSA key is derived, not captured

The envelope wraps the AES content key with the site's RSA public key. That key is not a literal in api.js — it appears nowhere as base64, hex, a byte array, or string-table fragments, and settings returns {}. Most solvers therefore capture it once from a real browser and hard-code it, which breaks silently when it rotates.

It is actually stored inside the VM program that api.js embeds, as a XOR-encrypted string operand assembled at runtime from string-table fragments. ExtractRSAKey recovers it statically from the served bundle in ~40 ms:

  1. parse every string table in the bundle;
  2. find the long concatenation chains that build the VM program's instructions;
  3. the decoder offset and the load-time table rotation are both index shifts, so they collapse into one unknown — brute-force it (≤ ~1000 tries per table);
  4. for each candidate, recover the repeating-XOR key from the known SPKI prefix MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA and accept only if the result parses as a real PKIX RSA public key.

Nothing about the opcode tags, offsets, table names or the rotation checksum is hard-coded, so this survives a build rotation. WithRSAPublicKey still lets you pin a key if you want to.


How it works

  1. GET /v2/{pk}/api.js — read capi_version, the enforcement build hash, and extract the RSA public key.
  2. (optional) fetch the dataExchange blob on the same client.
  3. Build the BDA — api_type, f, n, wh, enhanced_fp (91), fe, ife_hash, jsbd, c, with fb inserted when a font-probe flag is set. A fresh device is sampled per solve and every cross-checkable field is derived from it.
  4. Encrypt — random AES-256 key + 12-byte IV, AES-GCM the BDA, RSA-OAEP(SHA-256) wrap the key, concat b64(iv)+b64(tag)+b64(rsa)+b64(ct).
  5. POST /fc/gt2/public_key/{pk} — correct field and header order.

Derived fields

Nothing the enforcement can recompute is pinned. All recipes were lifted from the live bundle and reproduce real mints byte-for-byte. K is MurmurHash3 x64-128 emitted as hex(h1)||hex(h2).

FieldRule
fK(fe values joined by ";"), seed 0
ife_hashK(fe joined by ", ", 38)
webgl_hash_webglK(Object.entries(t).join(",")) over the 18 webgl_* fields plus a trailing empty webgl_hash_webgl
network_info_rtt_typewebgl_extensions_hash[:3] + webgl_hash_webgl[:3] (both >12 chars, else "abcdef")
screen_pixel_depth3 × colorDepth
basfas[0, performance.memory.jsHeapSizeLimit]
webgl_extensions_hashK(webgl_extensions)
f58835fmd5(JSON.stringify([13 feature-probe strings]))
browser_object_checksmd5 of the browser globals present, sorted and comma-joined
29s83ih9md5("false") — the Node/process detection result
speech_default_voice / speech_voices_hashboth from one voice list: md5(pairs.join(",")) over [name,lang]
audio_codecs_extended_hash / video_codecs_extended_hashmd5(JSON.stringify({mime:{canPlay,mediaSource}})) over the embedded codec tables
6a62b2a558the enforcement build hash, scraped from api.js
x-ark-esync-valuefloor(now/21600)*21600

Only three values stay pinned, and deliberately: math_fingerprint and supported_math_functions are V8/platform constants that are identical on every Chrome-Windows machine (both verified against a live mint — making them vary would itself be a tell), and defaultEnforcementHash is only a fallback for when the scrape fails. The codec tables in arkose/codecs.json were captured from Chrome 152; regenerate them if you target a Chrome major with different codec support.

screen_pixel_depth and network_info_rtt_type are rewritten by the VM at serialization time — the collected object holds 24 and null, the transmitted payload holds 72 and e.g. "730442".

Device generation

arkose/devices.json is an embedded weighted population — 234 GPUs, 105 screens, 13 core counts, 4 memory sizes, 62 connection profiles — sampled per solve, with every derived field recomputed for that device. Measured: 100 distinct f per 100 solves. Window geometry is sampled independently of the screen; always emitting a maximised window is a fleet tell.

Python and Node ports

ports/python and ports/node mirror the derivation and BDA layers and reach sup=1 against a live deployment, with the same automatic RSA key recovery. Both are published at the same version as the Go module.

pip install arkose-solver
from arkose_solver import Solver
res = Solver(surl="https://verify.example.com", public_key="...").solve()
print(res.token, res.suppressed)
npm install arkose-solver node-tls-client
const { Solver } = require('arkose-solver');
const res = await new Solver({ surl: 'https://verify.example.com', publicKey: '...' }).solve();
console.log(res.token, res.suppressed);

They stay honest via ports/testvectors.json, which the Go implementation generates and asserts against captured ground truth first; each port replays every vector plus 20 self-consistency checks over freshly generated payloads.

Both need a TLS-impersonating transport (curl_cffi, node-tls-client) because Arkose reads JA3/JA4. Go remains the reference implementation. See ports/README.md.

Notes & legality

For research and authorized testing only. You are responsible for complying with the terms of any site you interact with and with applicable law. No affiliation with Arkose Labs.

License

MIT — see LICENSE.

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryHTML
vsmutok/FuckCaptcha

Open field guide to 39 CAPTCHA types: identification signals, free and open-source bypass methods, and paid alternatives. Includes a searchable web version.

193
Nov 27, 2026
RepositoryPython
Pr0t0ns/Funcaptcha-Solver

Funcaptcha Audio Solver made by pr0t0n

88
Jun 10, 2026
RepositoryJavaScript
NopeCHALLC/nopecha-nodejs

Automated CAPTCHA solver for Node.js.

1.5k
Nov 2, 2026
RepositoryJavaScript
notemrovsky/tiktok-reverse-engineering

Reverse engineering TikTok's JavaScript VM - 77 opcodes mapped, string deobfuscation, bytecode disassembly, and crypto function identification. Educational VM analysis toolkit.

178
Jul 13, 2026
RepositoryPython
RiskByPass/riskbypass_demo

Bypass anti-bot and CAPTCHA protections (Shape, Kasada, PerimeterX, Akamai, Datadome etc.). 反机器人风控及验证码解决方案(Shape、Kasada、PerimeterX、Akamai、Datadome等)。

234
Jul 20, 2026
RepositoryPython
occursive/roblox-account-generator

Request-based Roblox account & cookie creator with email verification written in Python

190
Nov 27, 2025
RepositoryHTML
AzureFlow/arkose-fp-docs

ArkoseLabs FunCaptcha fingerprint documentation.

136
Nov 20, 2026
RepositoryC#
openbullet/CaptchaSharp

.NET universal interface for the Web APIs of all major captcha solving services

119
May 24, 2026
RepositoryPython
practical-tutorials/project-based-learning

Curated list of project-based tutorials

290.9k
Nov 30, 2026