elyelysiox/recaptcha

GitHub: elyelysiox/recaptcha

Stars: 172 | Forks: 26

## Description This repository contains a technical analysis of Google's antibot (reCAPTCHA) focusing on: - Payload Structure and Values - Fingerprinting Techniques - Obfuscation Techniques - Anti-debugging/Tampering Techniques - Virtual Machines ## Contact - Discord: `@g_recaptcha` - Telegram: `@lyxlobyx` ## Obfuscation Techniques reCAPTCHA is one of the anti-bot systems with the most sophisticated obfuscation techniques, employing a series of transformations that make the code less readable and more difficult to reverse engineer. Most obfuscations can be easily manipulated using the Abstract Syntax Tree (AST), but some are processed at runtime, rendering the AST useless in this case. Polymorphism is also applied to the code to change its structure in each version of the script. For example, the code doesn't perform the action directly. Instead, it uses objects or functions that change shape - ***Sequence Expressions*** The code is flattened by converting each block statement into a continuous comma-separated expression, it can appear in if statements, function arguments, and even within objects ![seq](https://github.com/elyelysiox/recaptcha/blob/main/photos/32418923412.png) - ***Mixed Boolean Arithmetic*** Intertwines arithmetic operations (addition, subtraction, multiplication) with bitwise operations (AND, OR, XOR, NOT) to hide the original logic, for example `-2 * ~(h & H) + -2 + (h ^ H)` - ***Indirect Function Table*** Each function is built within a table, and is called using its index, like `functions[index](args)` - ***Inline Constant Array*** A local array literal is assigned inline, mid-expression, the array groups constants (numbers, strings) that are reused throughout the function body via index access // b = [14, 1, "call"] assigned inline inside a sequence expression function(Y, Q, c, l, G, X, W, J, b, P) { (Y & 94) == Y && (b = [14, 1, "call"], ...) W[b[2]](J, G) // W.call(J, G) Y >> b[1] & b[0] // Y >> 1 & 14 } - ***Function Multiplexing*** Multiple logically distinct functions are merged into one, using a numeric parameter as a block selector. The active block is determined by evaluating the parameter against bitwise conditions. Callers pass a numeric literal as the selector function(N, y, U, Y, h, H, m, C, u) { C = [26, 47, 6]; // block 1 if ((N - 2 ^ 14) < N && (N - C[2] | 28) >= N) { // convert value to string logic } // block 2 if ((N + 4 & 40) >= N && (N + 5 & C[0]) < N) { Y = bB(); throw Error(Y === void 0 ? "unexpected value " + U + y : Y); } return u; } - ***Logical Operator Branching*** Replaces if statements and if/else blocks with logical operator short-circuit evaluation, converting control flow into expressions. combined with sequence expressions, multiple branches appear as a single continuous comma-separated expression // if (a) { block } a && (block) // if (!a) { block } a || (block) // if (a) { x } else { y } a ? x : y // combined with CFF and sequence expressions: (Y | 1) & 14 || (c = Q.O, J = c.O.length + c.g.length), (Y ^ 59) >> 3 == 3 && (Q.classList ? Q.classList.add(c) : Z[31](31, Q, c) || (l = f[0](84, "string", "", Q), ...)), - ***Bind Native Methods Constants*** Binds native browser methods to their original receivers, storing them as constants to prevent tampering LO = (Tw = self) == null ? void 0 : (K9 = Tw.Math) == null ? void 0 : (v4 = K9.floor) == null ? void 0 : (mF = v4.bind) == null ? void 0 : mF.call(v4, Math) // Math.floor.bind(Math) LO(x) // Math.floor(x) U4() // Math.random() Ge(obj, prop) // Object.defineProperty(obj, prop) - ***Dead Code*** Inaccessible or unused blocks of code are injected throughout the file, increasing its size to over 60,000 lines, this makes static analysis and LLM-based reverse engineering difficult - ***Control Flow Flattening*** Transforms each part of the code (declarations and loops) into a flat state machine. It hides the original execution logic by routing all code blocks through a central "dispatcher" block Dispatchers can change shape; some have 2-3 state variables, and the loop/condition type changes. They look like this ![cff1](https://github.com/elyelysiox/recaptcha/blob/main/photos/2814721849.png) This is a CFF with 2 state variables, one handles the catch block and the other the try block. - ***Encrypted String Pool*** All string literals (DOM APIs, browser properties, CSS values, error messages, etc) are encrypted into a single massive string pool. A decryption function uses a seed and an LCG-based XOR cipher to extract each string at runtime There are 1990+ call sites spread across the code, the decryption function uses a running key that accumulates decoded codepoints, making each character dependent on all previous ones X = function(J, b, P, F, U) { U = ["codePointAt", 127, "char encrypted pool"]; for (F = (P = 0, b = "", l); P < Q; P++) J = (U[2][U[0]](c + P) ^ F) & U[1], // XOR with running key b += String.fromCodePoint(J), F += J; // accumulate key return G = b; } // call sites pass a seed to locate and decrypt each string Z[23](64, 4, 54961, 103)() // → "lang" Z[23](66, 4, 54961, 103)() // → "addEventListener" Z[23](32, 12, 20287, 852)() // → "inline-block" ![decstrings](https://github.com/elyelysiox/recaptcha/blob/main/photos/128093828.png) - ***Stateful Value Iterator*** reCAPTCHA uses stateful function that returns a sequence of runtime objects and values (like window, document.body, numeric constants) in a fixed order, each call advances an internal cursor, calling it out of sequence or too many times corrupts all subsequent reads. A timeout mechanism invalidates the state after a fixed interval, returning null for any late reads // sequential calls return different values: c() // → window c() // → document.body c() // → 123 c() // → null (timeout expired) l(c(), G[2], G[W[1]], G[1]) + l(c(), G[2], G[W[1]], 12) // ↑ window ↑ window 10 * l(c(), G[2], G[W[1]], G[1]) + l(c(), G[2], G[W[1]], 12)) c().querySelectorAll(a[X[2]](98, X[1], X[1])) // ↑ document.body - ***Computed Function Table*** This is similar to `Indirect Function Table`, but here the index of the function to be obtained is calculated at runtime with a seed, using XOR and Modulus c = ((Q ^ no | U[1]) >> 5) + no A = mN[(c % U[2] + U[2]) % U[2]] // mN is the function table (50+ functions) q[29](5, 6977) // seed=6977 → index resolves to function at mN[X] q[29](53, 6187) // seed=6187 → different index, different function ![computed](https://github.com/elyelysiox/recaptcha/blob/main/photos/124898914221.png) - ***Runtime Value Encryption*** Some values ​​(captcha configuration parameters, anchor parameters, etc) are never stored in plain text; they are encrypted immediately after collection and decrypted only at the time of use, have a prefix `B` at the beginning ![hiddenv](https://github.com/elyelysiox/recaptcha/blob/main/photos/4214879218412.png) - ***Async Control Flow Obfuscation*** Synchronous logic is converted into generator-based state machines wrapped in recursive Promise chains, tracing any value through the debugger forces stepping through multiple async handlers, losing the original execution context at each .then() boundary ## Anchor Payload/Response ### Payload Structure Components to initialize reCAPTCHA ar: k: co: hl: v: size: sa: anchor-ms: execute-ms: cb: ### Response The response contains: - CAPTCHA iframe window design - Anchor token used for payload validation (/reload) - The main configuration for initialization, executed in the `recaptcha.anchor.Main.init` method to receive it in recaptcha_en.js ### Structure: Note: Recaptcha BotGuard was removed `04/01/2026`, You can see some samples [here](https://github.com/elyelysiox/recaptcha-payload/tree/main/botguard_scripts) [ "ainput", [ "bgdata", "", "LyogQW50aS1zcGFtLiBXYW50IHRvIHNheSBoZWxsbz8gQ29ud...", // BotGuard Script Base64-Encoded "YWVtZ0h5MGNCWXJDQ2lidGh0RW13RmhWdlc3aU5yeVpzSmx6U...", // BotGuard VM Bytecode Double Base64-Encoded "wrB8fsOVU8K0YAzDsyQpw7ZHw6jDnMK1AMO6SRcvw53CsGlQw6/DuMO0wqr" // VM Config Bytecode Base64-Encoded ], null, [ "conf", null, "6LfTV4gkAAAAACDVrUvp9_DalxUPvFSU7M2HJDO-", // Website Key 0, null, null, null, 1, // Indexes for fingerprinting or something else [16, 21, 125, 63, 73, 95, 87, 41, 43, 42, 83, 102, 105, 109, 121], [-7614991, 137], 0, null, null, null, null, 0, null, 0, null, 700, // Time Start for Time Variances of Fingerprint Values 1, null, 0, // Encoded metadata for the VM's main bytecode constructs "CvsCEg8I8ajhFRgAOgZUOU5CNWISDwjmjuIVGAA6BlFCb29IYxIPCMfm1DgYADoGZHhkTmlkEg8Is4qgOBgBOgZMV0o1a2ISDwiB7OgVGAA6Bkh1dlBqZhIPCK6e6zcYADoGR2JpT1FkEg8I94jmNxgAOgZvaWxlRGQSDwjwzeMVGAE6BmZJVkloYhIPCOLKoDcYAToGZ0xOQ0hjEg8I3r+3NxgBOgZlYXp1NmQSDwjY0oEyGAA6BkFxNzd2ZhIOCLjllDIYAToFUUJPRDASDwio7784GAA6BkdGVU5jZhIPCLWzqzgYAToGb3JZVjZkEg8I0tuVNxgAOgZmZmFXQWUSDwiV2JQyGAE6BlBxNjBuZBIPCKuRyjgYADoGQVo0TmJiEg8IxfOINxgAOgZhWG9pYWMSDwiNyoYyGAE6Bk93TjR0ZhIOCIr9iDcYADoFTWZJSTQaJwgDEiMdJv3NgTUZp4oJGYQKGZzijAIZzPMRGa+VQBnqsCYZ5a8MGQ==", 0, 1, null, null, 1, null, null, 0, null, null, 0, 0, "cf5e3c3a6ab6c494c829a7932d9577c1e6de862dd4912e55dc7fe2e40a1f7604" ], "https://who.clickbait.team:443", // Website URL:Port null, [ 3, 1, 1 ], null, null, null, 1, 3600, [ "https://www.google.com/intl/es/policies/privacy/", "https://www.google.com/intl/es/policies/terms/" ], "vQWNjTpMwdevQPWmE8akDzp8jsOZfa1VqTzVHaPiQ/c=", 1, 0, null, 1, 1777669303203, // Fingerprint Data Encryption Key 0, 0, [203], // Config Bytecode Key null, [185], // Config Bytecode Key "RC--rg1OSRnOD0ayA", null, null, null, null, null, // Bft Token, Used in reCAPTCHA V2 "0dAFcWeA4RepD9zDjeMQE73pAT27pXZ7Nz_419U2K36QNqzHaKtLIDkwZQLi-Ud8OvSZHbDEcxQxusBQnsF5QQErMRpJMcUplaFg", 1777752103288 // "oc" Data Encryption Key ] ## Fingerprint The values ​​are based on the decrypted values ​​from the first sample fingerprint, look [here](https://github.com/elyelysiox/recaptcha/blob/main/fingerprint/decrypted_values.json) Each subfield of the fingerprint values ​​has a base format: `[value, key, elapsed]` Where `key` is the encryption key, and `elapsed` is the time it took the collector to obtain and encrypt the value. This allows reCAPTCHA to detect: - Excessively fast execution - Hooks - Breakpoints and sandboxing ### Collector Execution Order The system uses an internal scheduler: [42, 45, 53, 30, 28, 54, 29, 31, 32, 33, 34, 35, 37, 36, 38, 39, 43, 40, 41, 46, 48, 57, 58, 60, 61, 62, 63, 64, 66, 68, 69, 71, 72, 79, 55] This represents: - Execution Order - Collector Pipeline - Signal Generation Sequence ### Fingerprint Signals Codes & Key Derivation Transforms fingerprint signals into deterministic encryption keys through a multi-stage derivation pipeline Each fingerprint value is: - Normalized - Encoded into a compact signal code - Converted into a numeric encryption key - Encrypted using the derived key The process is deterministic, meaning the same input value always generates the same signal code and encryption key Raw Value ↓ Signal Code Derivation ↓ Compact Signal Code ↓ Numeric Key Derivation ↓ Encryption Key ↓ Value Encryption ### Example ***Input Signal*** "BUTTON,195a81c9" ***Step 1 - Derive Signal Code*** deriveSignalCode("BUTTON,195a81c9") // → "wg" The generated signal code is a compact deterministic identifier for the original value. ***Step 2 - Derive Numeric Key*** deriveKey("wg") // → 3792 The signal code is transformed into a numeric encryption key. ***Step 3 — Encrypt Value*** encryptValueWithKey(3792, "wgia1z9pwq") // → "bYVbh6BUsE_5pLA" The next value will be encrypted with the derived key, following the collector order. ### Aggregate Fingerprint Structure All generated signal codes are aggregated into a compact serialized structure **Process** value -> "BUTTON,195a81c9" seed code -> wg key -> 3792 value -> "wgia1z9pwq" seed code -> 21 key -> 1599 value -> 1 seed code -> p1 key -> 3521 value -> "8cc68d83" seed code -> ld key -> 3448 value -> "https://nextcaptcha.com/demo..." seed code -> 9p key -> 1879 value -> 4 seed code -> op key -> 3553 value -> false seed code -> 1r key -> 1633 value -> 7 seed code -> qf key -> 3605 value -> "jYAQSHAEAI" seed code -> 1z key -> 1641 value -> "" seed code -> 80 key -> 1784 value -> 2 seed code -> jk key -> 3393 value -> "AAAAAAAAAA" seed code -> 1z key -> 1641 value -> "h3" seed code -> 9p key -> 1879 value -> "0,BUTTON,195a81c9" seed code -> ia key -> 3352 value -> -1 seed code -> 1u key -> 1636 value -> 0 seed code -> wq key -> 3802 value -> "74,fbfbc5b3" seed code -> 6z key -> 1796 value -> 0 seed code -> wq key -> 3802 value -> 0 seed code -> wq key -> 3802 value -> 2 seed code -> jk key -> 3393 value -> 0 seed code -> wq key -> 3802 value -> "-1,-1" seed code -> 1m key -> 1628 value -> "static.cloudflareinsights.co,..." seed code -> 1g key -> 1622 value -> "" seed code -> 80 key -> 1784 value -> "https://nextcaptcha.com,https...." seed code -> pd key -> 3572 value -> "[4,\"CABIBQAggA\",\"BAgAAgAAgA\"]" seed code -> 1n key -> 1629 value -> "Demostración empresarial de reCAPTCHA v3..." seed code -> 1k key -> 1626 value -> "[2,76852,77850,77351]" seed code -> 9b key -> 1865 value -> "sha384-TNm" seed code -> 23 key -> 1601 value -> "[1680,1050,876,1166,844,876]" seed code -> 13 key -> 1570 value -> "[300,null,1778502450481]" seed code -> ex key -> 3251 value -> "[null,null,\"\",\"\"]" seed code -> rx key -> 3654 value -> "[2147483648,70806416,65303240]" seed code -> 2r key -> 1664 value -> "GA1.1.354395113.1778502448" seed code -> 1g key -> 1622 value -> false seed code -> 1r key -> 1633 value -> "[[[1,\"wg\"],..." seed code -> 85 key -> 1789 **Final** [ [ [1, "wg"], [1, "21"], [1, "p1"], [1, "ld"], [1, "9p"], [1, "op"], [1, "1r"], [1, "qf"], [1, "1z"], [1, "80"], [1, "jk"], [1, "1z"], [1, "9p"], [1, "ia"], [1, "1u"], [1, "wq"], [1, "6z"], [1, "wq"], [1, "wq"], [1, "jk"], [1, "wq"], [1, "1m"], [1, "1g"], [1, "80"], [1, "pd"], [1, "1n"], [1, "1k"], [1, "9b"], [1, "23"], [1, "13"], [1, "ex"], [1, "rx"], [1, "2r"], [1, "1g"], [1, "1r"] ], "54" ] ### Signals - **Idx 4** (`string`) - Value: `_website key_ + '6d'` - Hashed: `true` - Description: Website Key hashed with SHA-256 (truncated) - **Idx 5** (`integer`) - Value: `window.localStorage.length * 2` - Hashed: `false` - Description: `window.localStorage` length - **Idx 16** (`string`) - Value: `yM5Us/j/fn6EDgtmPlP4Pxj605nMJN9dRYHyy5Mn` - Hashed: `true` - Description: Hashed all `` elements, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/hashHeadElements.js) - **Idx 27** (`string`) - Value: `location.origin` - Hashed: `false` - Description: Website URL - **Idx 28** (`boolean`) - Value: `false` - Hashed: `false` - Description: `window.parent != window` and `window.frameElement != null` checks - **Idx 29** (`string`) - Value: `e2a3cd70` - Hashed: `true` - Description: Hashed `grecaptcha.execute` function body with SHA-256, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/hashGrecaptchaThenBody.js) - **Idx 30** (`integer`) - Value: `0` - Hashed: `false` - Description: The index script containing the load URL `https://www.gstatic.com/recaptcha/releases//`, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/getRecaptchaScriptIndex.js) - **Idx 31** (`string`) - Value: `AAgkAQI0SB` - Hashed: `true` - Description: Hashed `document.cookie` keys, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/hashCookies.js) - **Idx 32** (`string`) - Value: `""` - Hashed: `false` - Description: Referrer URL `document.referrer` - **Idx 34** (`string`) - Value: `AAAAAAAAAA` - Hashed: `true` - Description: Hashed all `` attribute names, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/hashInputElements.js) - **Idx 35** (`string`) - Value: `0,DIV,f0c7414e` - Hashed: `true` - Description: `document.activeElement` Parse if it's a purchase element using a regex `/buy|pay|place|order|donate|purchase/i` with textContent, classNames and id, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/computeActiveElement.js) - **Idx 36** (`string`) - Value: `h3`, `h2` or `http/1.1` - Hashed: `false` - Description: `nextHopProtocol` of `PerformanceNavigationTiming` - **Idx 37** (`integer`) - Value: `-1` - Hashed: `false` - Description: `performance.timing.unloadEventStart` - **Idx 38** (`integer`) - Value: `96` - Hashed: `false` - Description: DNS lookup `performance.timing.domainLookupStart - performance.timing.domainLookupEnd` - **Idx 39** (`integer`) - Value: `0` - Hashed: `false` - Description: Navigation type `performance.navigation.type` - **Idx 40** (`integer`) - Value: `0` - Hashed: `false` - Description: Last scroll-Y position `window.scrollY` - **Idx 41** (`string`) - Value: `DIV,a08cd360` - Hashed: `true` - Description: The hovered element where the mouse is positioned, hashed tagName, classNames and id, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/computeHoveredElement.js) - **Idx 42** (`string`) - Value: `9,e3b0c442` - Hashed: `true` - Description: Hashed a random text script with SHA-256 plus the index, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/hashRandomScript.js) - **Idx 44** (`string`) - Value: `2v591z63wq` - Hashed: `true` - Description: Hovered element, `document.activeElement`, all `` elements hashed, `location.url`, `window.scrollY`, Example: [ deriveSignalCode(hash(hoveredElement)), deriveSignalCode(hash(document.activeElement)), deriveSignalCode(hash(document.querySelectorAll('input'))), deriveSignalCode(location.url), deriveSignalCode(String(window.scrollY)) ].join('') - **Idx 45** (`integer`) - Value: `4` - Hashed: `false` - Description: Length of `window.history` - **Idx 46** (`string`) - Value: `https://static.kogstatic.com/0000/34c...` - Hashed: `false` - Description: An error occurred in a website script - **Idx 47** (`integer`) - Value: `0` - Hashed: `false` - Description: `window.length` - **Idx 49** (`string`) - Value: `h2-0` - Hashed: `false` - Description: `nextHopProtocol` of `PerformanceResourceTiming` - **Idx 50** (`array`) - Value: `[1,0,null,1,1,["805b1z63wq"],"MWc2MzZwMnR0ZHNkMw==",0,null,[[1]]]` - Hashed: `true` - Description: Contains user behaviors, hashed hovered elements interactions, and timeout to capture another element - **Idx 51** (`array`) - Value: `[0]` - Hashed: `false` - Description: `document.innerText` text contains anything labeled `try again` | `incorrect` | `invalid` | `declined` - **Idx 52** (`integer`) - Value: `11` - Hashed: `false` - Description: `isActive * 10 + hasBeenActive` from `navigator.userActivation` - **Idx 53** (`integer`) - Value: `4` - Hashed: `false` - Description: `window.document.length % 2 == 0 ? 5 : 4` - **Idx 54** (`boolean`) - Value: `false` - Hashed: `false` - Description: `window.document.hidden` - **Idx 55** (`array`) - Value: `[[[1,"2v"],[1,"9z"],[1,"z8"],[1,"us"],[1,..` - Hashed: `false` - Description: Ordering of generated signals codes by fingerprint values - **Idx 56** (`string`) - Value: `-1,-1` - Hashed: `false` - Description: `window.opener` checks - **Idx 57** (`string`) - Value: `www.gstatic.com,_,static.kogstatic.com,www.google.com,www.googletagmanager.,...` - Hashed: `false` - Description: HTML links of `document.scripts` - **Idx 58** (`string`) - Value: `mapslitepromosdismissed1` - Hashed: `false` - Description: Sampled `window.localStorage` key - **Idx 59** (`string`) - Value: `""` - Hashed: `false` - Description: `window.name` - **Idx 60** (`string`) - Value: `https://www.kogama.com,https://www.google.com,https://js.stripe.com` - Hashed: `false` - Description: URLs for open message events - **Idx 61** (`array`) - Value: `[0,"AAAAAAAAAA","AAAAAAAAAA"]` - Hashed: `true` - Description: Hashes of attribute names and target element types recorded by `MutationObserver`, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/writeMutationObservers.js) - **Idx 62** (`string`) - Value: `document.title` - Hashed: `false` - Description: Full website title - **Idx 63** (`array`) - Value: `[]` - Hashed: `true` - Description: Hashed long IDs of `document.cookie`, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/derirveCookies.js) - **Idx 64** (`integer`) - Value: `55557` - Hashed: `false` - Description: Time elapsed from the anchor to the reload - **Idx 65** (`string`) - Value: `sha384-3qc` - Hashed: `true` - Description: Integrity hash of render script (truncated) - **Idx 67** (`array`) - Value: `[width,height,outerHeight,innerWidth,innerHeight,availHeight]` - Hashed: `false` - Description: Screen resolution and dimensions - **Idx 68** (`array`) - Value: `[300,null,1777685870223]` - Hashed: `false` - Description: Timezone offset and current Unix timestamp - **Idx 69** (`string`) - Value: `09AKhCRwjrDFiHsrRA--o23-HB-eWqOtk_XQ-rLE1...` - Hashed: `false` - Description: A session token used for human identification, stored in the browser cookies and increments the score if valid - **Idx 70** (`array`) - Value: `[null,null,"","",null,"1l0fl"]` - Hashed: `false` - Description: Website Product Prices, Data, etc - **Idx 71** (`array`) - Value: `[jsHeapSizeLimit,usedJSHeapSize,totalJSHeapSize]` - Hashed: `false` - Description: Performance JavaScript heap memory - **Idx 72** (`array`) - Value: `[[["Google Chrome","147"],["Not.A/Brand",...` - Hashed: `false` - Description: `userAgentData`, Browser/Chromium version and name - **Idx 73** (`array`) - Value: `[[null,2,0,"Mozilla/5.0 (Windows NT 10.0;...` - Hashed: `false` - Description: VM Signals data - **Idx 77** (`string`) - Value: `null` - Hashed: `false` - Description: Google GA cookie, may appear if the website uses Google Tag Manager - **Idx 78** (`integer`) - Value: `""` - Hashed: `false` - Description: Unix timestamp, sometimes it appears ## VM Signals The following are the browser values ​​obtained by the internal reCAPTCHA VM, along with the signal key. Some values ​​are not shown in the sample fingerprint because the VM only extracts certain values ​​from the configuration bytecode. Therefore, other values ​​will be displayed. For more details, see [here](https://github.com/elyelysiox/recaptcha-vm) Base Signal Format: [ null, collectorElapsed, encryptElapsed, value ] Where `collectorElapsed` means how long (ms) it took the collector to obtain the value And `encryptElapsed` means how long (ms) it took to encrypt the value. These times are measured during the VM's execution. ### Structure [ null, 7, 0, "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36" ], null, null, [ null, 0, 0, "[]" ], null, null, [ null, 4, 0, "[\"Join And Get Free Trial!\",\"\",\"Captcha Solving Service\",\"Products\",\"Docs\"]" ], [ null, 0, 0, "false" ], null, [ null, 0, 0, "0" ], [ null, 1, 0, "[null,null,null,null,\"false\"]" ], [ null, 3, 4, "[[[0,921],[1,2053]],[[235054,1,1,1],[164277,3,4,1]],2,39]" ], [ null, 1, 4, "[[[0,0,979]],1,0]" ], [ null, 1, 1, "[[[1,0]]]" ], [ null, 4, 1, "[886,2300,262.2099999997952,392.7600000009595,2050.2399999993577]" ], [ null, 1, 1, "[[[1123,0,0]]]" ], [ null, 1, 2, "[[[1123,0]]]" ], [ null, 1, 3, "[0,null,null,null,null,null,null]" ], [ null, 5, 9, "[1,[[2050,125,633,266,[609,266,105,44],3,1,50,1,1]],[3,3,318],[28,777,858,28],0,0,25]" ], [ null, 0, 0, "" ], [ null, 0, 0, "229.6" ], [ null, 0, 0, "false" ], [ null, 1, 0, "[1,0,0,Infinity]" ], [ null, 1, 1, "["0",-1,-1,999]" ], [ null, 1, 0, "[\"undefined\",3]" ], [ null, 1, 6, "[2,4,53324367238]" ], [ null, 12, 0, "[\"Google Inc. (Intel Inc.)\",\"ANGLE (Intel Inc., Intel(R) UHD Graphics 630, OpenGL 4.1)\",30]" ], [ null, 28, 2, "[1542343452,0,105002991,3556653,96784904,-731949068,-902263026,-1914850612,571474391,-1588406278,3443508,1967713171,-1249474914,-1588406278,0,918504841,-807058197]" ] - **Key 417** (`string`) - Value: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36...` - Description: Full Browser User-Agent - **Key 727** (`array`) - Value: `[]` - Description: Product Prices Blocks, contains prices for commercial products on the website, these may appear on marketplace websites such as Amazon, eBay, AliExpress, etc, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/findProductPricesBlock.js) - **Key 150** (`array`) - Value: `[\"Join And Get Free Trial!\",\"\",\"Captcha Solving Service\",\"Prod...` - Description: Links extracted from the `` elements of the website, the VM rarely extracts these values - **Key 545** (`boolean`) - Value: `false` - Description: `navigator.webdriver` - **Key 370** (`integer`) - Value: `0` - Description: Max Device Touch Points `navigator.maxTouchPoints` - **Key 779** (`array`) - Value: `[null,null,null,null,"false"]` - Description: Extracts data from shipping/billing fields, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/formFieldScrape.js) `postal|postalcode|postalcode|postal_code|zip` → searches for postal code field `ship|deliver` → shipping section `billing|payment|credit` → billing section `country` → country selector `addr.*(match|equal)|(match|equal).*address` → "same address" checkbox Reads name, id, autocomplete, className of each element Three phases: text inputs, SELECT statements, checkboxes - **Key 659** (`array`) - Value: `[[[0,921],[1,2053]],[[235054,1,1,1],[164277,3,4,1]],2,39]` - Description: Contains data of the pressed elements on the page in the format `[[[count,ts]],[[hashedElem,tagType,type,autoComplete]],pressedCount,behaviorChecksum]` - **Key 959** (`array`) - Value: `[[[0,0,979]],1,0]` - Description: Scroll movements, in the format `[[[scrollX,scrollY,ts]],count,behaviorChecksum]` - **Key 895** (`array`) - Value: `[[[1,0]]]` - Description: VisibilityStateEntry, check if the user left the page, in the format `[[[isVisible,startTime]]]` - **Key 1092** (`array`) - Value: `[886,2300,262.2099999997952,392.7600000009595,2050.2399999993577]` - Description: reCAPTCHA Performance, PerformanceNavigationTiming and PerformanceEventTiming, in format `[vmStart,vmEnd,domContentLoadedEventEnd,loadEventEnd,firstUserInteractionTime]` - **Key 41** (`array`) - Value: `[[[1123,0,0]]]` - Description: ClearTimeout - **Key 43** (`array`) - Value: `[[[1123,0]]]` - Description: ClearTimeout - **Key 549** (`array`) - Value: `[0,null,null,null,null,null,null]` - Description: KeyboardEvent, computed keys + timestamps - **Key 352** (`array`) - Value: `1,[[2050,125,633,266,[609,266,105,44],3,1,50,1,1]],[3,3,318],...` - Description: The structure contains: - Mouse movement timing - Cursor coordinates - Click durations - Pressed element dimensions - Pointer type information - Pressure metrics - Cursor travel distance - Behavioral timing statistics Base Format: [ eventsCount, mouseEvents, [ coalescedEventsCount, averageInterEventDelay, timingVarianceScore ], [ totalPoints, clickSequenceScore, totalCursorDistance, totalPoints ], 0, 0, behaviorChecksum ] Mouse Event Structure: Each entry inside mouseEvents follows this structure: [ timestamp, clickDuration, clientX, clientY, [ elementLeft, elementTop, elementWidth, elementHeight ], elementTagType, trackedElementIndex, pressure, pointerTravelDistance, pointerArea ] | Name | Description | |---|---| | `timestamp` | Event timestamp relative to event start | | `clickDuration` | Duration between `pointerdown` and `pointerup` | | `clientX` | ... | | `clientY` | ... | | `elementBounds` | Bounding rectangle of the interacted element | | `elementTagType` | Encoded DOM tag identifier of the interacted element | | `trackedElementIndex` | Internal identifier of the interacted DOM element from the runtime interaction map | | `pressure` | Normalized pointer pressure value multiplied by `100` | | `pointerTravelDistance` | Distance traveled between `pointerdown` and `pointerup` | | `pointerArea` | Contact area computed as `width * height` | Element Tag Type This is initialized during the execution of reCAPTCHA VM | Type | ID | |-----------|----| | `BODY` | 1 | | `INPUT` | 2 | | `BUTTON` | 3 | | `SELECT` | 4 | | `TEXTAREA`| 5 | | `FORM` | 6 | | `A` | 7 | | `AREA` | 8 | | `AUDIO` | 9 | | `VIDEO` | 10 | | `IFRAME` | 11 | | `DIV` | 12 | | `SPAN` | 13 | | `LABEL` | 14 | Example [ 18342, 91, 742, 381, [700, 320, 120, 38], 3, 1, 50, 1.4, 16 ] Represents: - event at `18.342s` - click duration of `91ms` - click at `(742, 381)` - interaction with a `BUTTON` - pointer pressure `0.5` (50) - slight cursor movement during click - pointer contact area of `16` - **Key 360** (`string`) - Value: `""` - Description: Collected Website Prices Total $ parsing with a regex ``(?i)total[\S\s]{0,20}?(?:(?:(?:USD|\$)\s*)?[\d\.,]+\s*(?:USD|\$)|(?:USD|\$)\s*[\d\.,]+)``, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/websitePricesTotal.js) - **Key 1278** (`integer`) - Value: `229.6` - Description: Division by 10 of current runtime timing `Math.trunc(performance.now()) / 10` - **Key 1422** (`boolean`) - Value: `false` - Description: Parse if there are OTP/2FA fields on the website, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/parseOTPFields.js) - **Key 614** (`array`) - Value: `[1,0,0,Infinity]` - Description: Device battery information, in the format `[level,isCharging,chargingTime,dischargingTime]` - **Key 2033** (`array`) - Value: `["0",-1,-1,999]` - Description: Some VM constant values ​​and VM runtime timing - **Key 1313** (`array`) - Value: `["undefined",3]` - Description: Android, Chrome checks, `[typeof window.android, Object.keys(window.chrome).length]` - **Key 1994** (`array`) - Value: `[2,4,53324367238]` - Description: `[navigator.hardwareConcurrency, navigator.deviceMemory, navigator.storage.estimate().qouta]` - **Key 1310** (`array`) - Value: `["Google Inc. (Intel Inc.)","ANGLE (Intel Inc.,...` - Description: WebGL Renderer, Vendor and Total Extensions, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/webglSignals.js) - **Key 291** (`array`) - Value: `[1542343452,0,105002991,3556653,96784904,-731949068,-902263026,...` - Description: Hashed specific Prototypes key of browser objects, like `SpeechSynthesisEvent`, `NetworkInformation`, `HTMLElement`, etc, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/hashBrowserProtos.js) ## Reload Request Payload This data is serialized using protobuf (Protocol Buffers), an efficient, neutral method for serializing structured data, developed by Google. [ "rreq", "U5VsmTDhJM1iOJUyw4DEUTYv", "03AFcWeA5Els3SIQviW2OYCHYD4uDhKlFPG6A48z2nk74BC2vrXSRvtpP9uVkWW96kUKm7sHIr...", null, null, "-383788762", "q", "05APQrAobTCFGtbKVY3NwExv-K_G7oqmzGyUcTXi532CBKvSJUiT49tkRSgGD__OdfVRZtrI3i...", "submit", null, null, null, null, null, "6LcAbwIqAAAAAJvVAhSSJ8qzYsujc7kn1knmSgQX", null, "0XA4cHhALxgMF9_Kt6uze2ZTR08XAe2x8o3BrU1hbTouNf3o1cnRmYRxZW01IA0BCNC_qJykb...", null, null, null, "tbMywxNTQsODQ0XSxbMSwyOTksMTA4Nl1dLFtbMiw2MSwxMzIuNzM5OTk5OTk5ODQ2MzNdLF...", "0aAPQrAobqMEazjp9PGLYWTgxWGGcq9k5MJNI6LFBWfTh0UkDaVobdH-InwAYsTXtxs3rH_fI", "BDAAYAIAGEcAAUoYI4lDCKAsCJlcgB6AAJtgggoIEEOALSoQRZxSZyAJBHANCkAJQYhFJES...", null, null, "W1tbNTAwNiw0M10sWzY0NjA3LDFdLFs0NTQ2NCwxXSxbMzU4MzcsMV1dXQ==", null, null, ] # Components | Index | Value | Description | |---|---|---| | `0` | `rreq` | Request type identifier | | `1` | `U5VsmTDhJM1iO...` | reCAPTCHA Version | | `2` | `03AFcWeA5Els3...` | Validation token obtained from the `/anchor` endpoint | | `5` | `-383788762` | Hashed the entire serialized fingerprint payload, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/hashFingerprint.js) | | `6` | `q` | Indicates the challenge or request mode being executed | | `7` | `05APQrAobTCFG...` | Usage Patterns, containing usage history and previously solved challenge patterns. Can significantly increase the score if valid | | `8` | `submit` | Specific Site action the user is performing on the page at the time of verification (e.g `signin`, `register`) | | `14` | `6LcAbwIqAAAA...` | Website Key | | `16` | `0XA4cHhALxgM...` | Encrypted the entire serialized fingerprint payload with the encryption key from anchor (index 18) `1777669303203` | | `20` | `tbMywxNTQsOD...` | Base64-encoded telemetry structure containing VM timing deltas, resource timings, collected browser object statistics and website script urls | | `21` | `0aAPQrAobqME...` | Token associated with a previously solved CAPTCHA. Used for session continuity and trust correlation | | `22` | `BDAAYAIAGEcA...` | Hashed all brower objects keys | | `25` | `W1tbNTAwNiw...` | Base64-encoded counters for user interaction events such as mouse movement, clicks, keyboard and focus changes | # Challenge Modes | Value | Description | |---|---| | `q` | reCAPTCHA V3 challenge | | `fi` | reCAPTCHA V2/Invisible challenge | | `a` | Audio challenge | | `qr` | Quick-response (new) | # Telemetry Payload (`Idx 20`) To decode: atob("W1tbMywwLDgyOV0sWzEs...") // → [[[3,0,829],[1,42,863]],[[2,727,1341.300000011921]... The payload contains: - Resource timing information - Long-task performance timing - reCAPTCHA VM execution deltas - Website script URLs - Browser object collection statistics ### Base Structure [ [recaptchaResources], [tasksTiming], [ null, null, null, idleTimeoutDelta, deltaTiming, 0, 0, 0, ], websiteScriptsUrls, [collectionElapsed, browserObjectsLength] ] ### Long Task Timing Format [ PerformanceLongTaskTiming.name == "self" ? 2 : 4, PerformanceLongTaskTiming.duration, PerformanceLongTaskTiming.startTime ] ### reCAPTCHA Resource Timing Format [ resourceType, duration, startTime ] | Resource | Type | |---|---| | `recaptcha/api.js` | `3` | | `recaptcha/releases/` | `1` | | `https://www.google.com/recaptcha/api2/anchor` | `2` | | `https://www.google.com/recaptcha/api2/bframe` | `4` | # Event Counters (`Idx 25`) This field contains Base64-encoded counters for browser interaction events collected during execution Decoded example: [ [ [5006, 43], [64607, 1], [45464, 1], [35837, 1] ] ] ### Event Counter Structure [ [ [eventType, count] ] ] ### Known Event Hashes | Hash | Event Type | |---|---| | `5006` | `pointermove` | | `64607` | `pointerdown` | | `45464` | `pointerup` | | `31617` | `keydown` | | `37178` | `keyup` | | `35837` | `focusin` | ## Response Structure [ "rresp", "", null, 120, [ "pmeta", [ "/m/013xlm", null, 3, 3, 3, null, "Tractor" ], null, [1] ], "", null, null, "", "", null, null, "", null, "", "", 0 ] ## Field Descriptions | Index | Name | Description | |---|---|---| | `0` | `rresp` | Response type identifier returned by the reload endpoint | | `1` | `responseToken` | reCAPTCHA response token | | `3` | `tokenExpiration` | Token lifetime in seconds before expiration | | `4` | `pmeta` | Challenge metadata block containing information about the CAPTCHA type, category, and grid layout | | `5` | `challengeType` | Type of CAPTCHA challenge | | `8` | `usagePatternToken` | Usage Patterns, stored in `window.sessionStorage` and reused in future `/reload` requests | | `9` | `challengeImageToken` | Token used to retrieve the CAPTCHA image payload from the `/payload` endpoint | | `12` | `humanVerificationToken` | Human identification token associated with Google reCAPTCHA state and browser cookies | | `14` | `captchaSessionToken` | Internal session token | | `15` | `bftToken` | ... | ### `pmeta` Structure Example: [ "pmeta", [ "/m/013xlm", null, 3, 3, 3, null, "Tractor" ], null, [1] ] ### `pmeta[1]` Values | Position | Value | Description | |---|---|---| | `0` | `/m/013xlm` | Internal category identifier for the target object class | | `2` | `3` | Number of grid columns | | `3` | `3` | Number of grid row | | `5` | `null` | Reserved or optional metadata field | | `6` | `"Tractor"` | Text label | ### Challenge Types | Type | Description | |---|---| | `imageselect` | Standard image selection CAPTCHA | | `tileselect` | Tile-based dynamic image challenge | | `dynamic` | Dynamic challenge where tiles reload after selection | | `multicaptcha` | Multi-step CAPTCHA challenge | | `audio` | Audio-based accessibility challenge | | `nocaptcha` | Checkbox-only verification flow | | `doscaptcha` | Deny CAPTCHA if there is abuse | ### Challenge Image Retrieval The value at `Idx 9` (`challengeImageToken`) is used to retrieve the CAPTCHA image: https://www.google.com/recaptcha//payload ?p= &k= ### Category Identifiers | ID | Category | |---|---| | `/m/0pg52` | Taxi | | `/m/01bjv` | Bus | | `/m/02yvhj` | School bus | | `/m/04_sv` | Motorcycle | | `/m/013xlm` | Tractor | | `/m/01jk_4` | Chimney | | `/m/014xcs` | Crosswalk | | `/m/015qff` | Traffic light | | `/m/0199g` | Bicycle | | `/m/015qbp` | Parking meter | | `/m/0k4j` | Car | | `/m/015kr` | Bridge | | `/m/019jd` | Boat | | `/m/0cdl1` | Palm tree | | `/m/09d_r` | Mountain / hill | | `/m/01pns0` | Fire hydrant | | `/m/01lynh` | Stairs | ## UserVerify Request Payload The `/userverify` payload is submitted after the user completes a reCAPTCHA v2 image challenge # Payload Structure v: hsFBb1u5wWWWkWP4in1ua2cQ c: 03AFcWeA5RIHz5mI2COQqTcLjdrC7FiPpdfkX-hB-B2iFenI... response: eyJyZXNwb25zZSI6WzMsMSw0LDksMCwxMSwxMCwxMywxNF0.... t: 24521 ct: 24521 ch: -4007845 oc: 0ZpqzzPgYKEEaN0xpfo3v_voeVUySZK3Ktf_fLVRdhnu3yeTy4BhO... pm: 51bGwsbnVsbCxbbnVsbCxudWxsLG51bGwsWzEwLDQuMjcwMDAwMD.... ## Components | Field | Name | Description | |---|---|---| | `v` | `recaptchaVersion` | reCAPTCHA Version | | `c` | `challengeToken` | Challenge state token returned from `/replaceimage` or a previous `/userverify` request | | `response` | Encoded payload containing the selected tile indices and additional interaction metadata | | `t` | `challengeElapsed` | Elapsed time since the challenge was initially loaded | | `ct` | `completionTime` | Total time taken by the user to solve and submit the CAPTCHA | | `ch` | `ocHash` | Hashed the entire serialized `oc` payload, [Sample](https://github.com/elyelysiox/recaptcha/blob/main/hashOC.js) | | `oc` | `encryptedVmSignals` | Encrypted signals collected from the reCAPTCHA VM, see [here](#vm-signals). | | `pm` | `telemetryPayload` | Base64-encoded telemetry structure containing VM timing deltas, resource timings, collected browser object statistics, and website script metadata | ### `response` Payload Represents the indices/positions of the squares selected by the user in the grid The payload is later encoded as JWT before submission ### 3×3 Grid Example ![grid33](https://github.com/elyelysiox/recaptcha/blob/main/photos/2141241242532.png) 0 1 2 3 4 5 6 7 8 Example payload: { "response": [2, 3, 6] } ### 4×4 MultiCaptcha Grid Example ![grid44](https://github.com/elyelysiox/recaptcha/blob/main/photos/4214891248124.png) 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Example payload: { "response": [2, 3, 6, 14] } ### `e` Field The `response` payload may also include an `e` field: { "response": [2, 3, 6, 14], "e": "bxCoiXVt49I7CTS_tNlVbGg" } This field contains encrypted interaction metadata related to CAPTCHA button actions such as: - `Verify` - `Next` - `Skip` ### Internal Structure of `e` After decryption, the structure resembles: [[["9ffd9672"]]] Each value represents a hashed identifier for the `rc-button-default` button class/action The hash is: - SHA-256-based - Truncated to 8 characters Longer interaction sequences may look like: [ [ ["9ffd9672"], ["9ffd9672"], ["9ffd9672"], ["9ffd9672"] ] ] ### `oc` — Encrypted VM Signals Uses the same encryption algorithm as the `idx 16` field of the `/reload` request payload, with the encryption key loaded in the anchor (index 31) `1777752103288` ### `pm` — Telemetry Payload The `pm` field contains a Base64-encoded telemetry structure similar to the telemetry payload used in `/reload`. ## Anti-debugging/Tampering - ***Symbol-based Integrity Tag*** reCAPTCHA set a Symbol key `Symbol(jas)` to every array and object with a numeric value used as an integrity check. Since Symbols are non-enumerable and invisible to standard cloning operations (like JSON.stringify), any attempt to replace or clone these structures loses the tag, which reCAPTCHA detects as tampering ![tamp](https://github.com/elyelysiox/recaptcha/blob/main/photos/849230834092888898.png) - ***Closure Variable Capture*** Some values ​​are intentionally scoped in an outer function and consumed only inside nested callbacks or closures, the variable never exists in the same scope where it is used - ***Timing Checks*** reCAPTCHA incorporates runtime debugging detection mechanisms. If it detects that the code is being analyzed by a debugger, it restarts the debugging session, causing the execution state and context to be lost - ***Crash Source Tab*** https://github.com/user-attachments/assets/4ae3bf68-5ae7-4adc-a0b9-36cc11b64998 This bug occurs in browsers that use Chromium. There are several bugs that cause the browser or developer tools to close unexpectedly, such as the one shown here: https://blog.castle.io/detect-and-crash-chromium-bots-with-one-weird-trick-bots-hate-it/ https://issues.chromium.org/issues/340836884?ref=blog.castle.io Therefore, one of these bugs is most likely triggered when the timeout occurs, as it's probably not something that would happen in a real user's flow ## reCAPTCHA Botguard Although BotGuard was removed by Google, I will explain a little about how it works internally for those who are interested in how it is, and how different it is from other types of botguard First, the token generation process: the VM generates tokens for persistent errors during execution. These errors can be due to bytecode offset deviations, missing VM registers, incorrect VM state, and poor control flow integrity. These errors are captured by the dispatcher, which calls a function that writes bytes for the token. The VM uses ARX Cipher, an algorithm created by the NSA in 2013, similar to Speck for encrypting data. It is also used in all Google BotGuard. The algorithm changes with each version, as do the constant (3990), the order of operations and rounds. It looks like this: /* D -> cipher state array P -> seed E -> byte index */ Vl = function(D, P, E, F, v) { F = D[3] | 0; D = D[2] | 0; for (v = 0; v < 14; v++) { E = E >>> 8 | E << 24; E += P | 0; E ^= D + 3990; P = P << 3 | P >>> 29; P ^= E; F = F >>> 8 | F << 24; F += D | 0; F ^= v + 3990; D = D << 3 | D >>> 29; D ^= F; } return [P >>> 24 & 255, P >>> 16 & 255, P >>> 8 & 255, P >>> 0 & 255, E >>> 24 & 255, E >>> 16 & 255, E >>> 8 & 255, E >>> 0 & 255]; } ### Byte Writer & Encryption The main encryption function has two modes: encryption and no encryption. The encryption mode uses ARX Cipher, Bitwise + XOR to encrypt the data and set it in a buffer. There are 4 types of buffers: - Main buffer `180` - Entropy Pad buffer `353` - Error Buffer `304` - PoE (Proof of Execution) buffer `243` (not used in this type of botguard). The no-encryption mode just set already encrypted bytes to the buffer // (The sequence flatten messed up the statements a bit) /* Q -> cipher state array FQ(v, c) -> derive a seed c = (z << 3) - 4 -> index FQ(v, (c | 0) + 4) -> position */ t = function(D, P, E, F, v, Q) { if (E.O == E) { P = function(h, A, c, x, z) { A = v.length; // buffer length z = (A | 0) - 4 >> 3; if (v.Jw != z) { // vm.block_index != index v.Jw = z; // set new block index c = (z << 3) - 4; x = [0, 0, Q[1], Q[2]]; try { v.zB = Vl(x, FQ(v, c), FQ(v, (c | 0) + 4)); // call ARX Cipher to generate keyStream } catch (V) { throw V; } } v.push(v.zB[A & 7] ^ h); // sets A to bits 0-7, and obtains a byte from the keystream and applies xor with a byte of the data to be encrypted }; v = Z(P, E); // get buffer if (P == 180 || P == 243 || P == 353) { Q = Z(189, E); } else { // set encripted bytes to buffer P = function(h) { v.push(h); }; } F && P(F & 255); E = D.length; for (F = 0; F < E; F++) { P(D[F]); } } } And this is the function that handles errors and calls the byte writer // (The sequence flatten messed up the statements a bit) p = function(D, P, E, F, v, Q, h, A) { D = E[1]; A = E[2]; Q = Z(465, P) >> 3; h.push(D, Q >> 8 & 255, Q & 255); // error code/header bytes E.message && (D += E.message); A = void 0; E && E[0] === U && (E = void 0); h = Z(244, P); h.length == 0 && (A != void 0 && h.push(A & 255)); D = ""; E && (E.stack && (D += ":" + E.stack)); E = Z(0, P); // buffer size limit (2048) if (!P.TB && E[0] > 3) { D = D.slice(0, (E[0] | 0) - 3); E[0] -= (D.length | 0) + 3; // reduce size limit D = Pv(D); E = P.O; P.O = P; try { v = (v = Z(304, P)) && v[v.length - 1] || 95; if (P.n3) { // this path is never executed (F = Z(123, P)) && F[F.length - 1] == v || t([v & 255], 123, P); } else { t([95], 304, P); // set byte to error buffer } t(O(2, D.length).concat(D), 180, P, 9); // set bytes to main buffer } finally { P.O = E; } } } At the end of the execution, the VM calls the main function that prepares the payload with these buffers and generates the token, which is a signature. Unlike other BotGuard VM, this VM does not have a fingerprinting system, Google Botguard nor does it perform these error-emitting + writing bytes, and is much simpler and easier to reverse engineer. # Nstproxy ### Reliable Proxy Infrastructure for Modern Automation Workflows

Nstproxy provides enterprise-grade residential and datacenter proxy infrastructure designed for browser automation, large-scale data collection, and high-volume scraping workflows. ## ✨ Why Developers Choose Nstproxy? - 110M+ Residential & ISP IPs Worldwide - Smart Rotation & Sticky Sessions - Optimized for Modern Anti-Bot Systems - Built for Puppeteer, Playwright & Selenium - Scalable Infrastructure for Automation - Starting from $0.1/GB [Nstproxy](https://www.nstproxy.com/?utm_source=github&utm_medium=elyelysiox) helps developers maintain reliable automation workflows with high-quality residential proxy infrastructure built for modern web environments. 👉 Learn more: [Nstproxy Official](https://www.nstproxy.com/?utm_source=github&utm_medium=elyelysiox) - Telegram: https://t.me/nstproxy - Discord: https://discord.gg/5jjWCAmvng ## 🎁 Discount Use code: `ELYELYSIOX` to get **10% OFF** ## Disclaimer This repository is exclusively for educational and research purposes. The code, techniques, and concepts presented here are intended for the academic study and understanding of the topics covered.
标签:自定义脚本