botrefund.com
← BotRefund Home 原型与函数完整性

Function.toString Integrity

BotRefund 对 Function.prototype.toString 和原生 DOM 方法执行五项结构检查,以揭露隐身代理,并降低触屏设备上轻微格式差异的权重。

检测内容

The function-reflection probe inspects five invariants on Function.prototype.toString: whether .name differs from "toString", whether toString() omits "[native code]" or "toString", whether toString.call({}) fails to throw a TypeError, whether hasOwnProperty("toString") is true, and whether navigator.plugins.item.toString() omits "[native code]".

Structural violations such as accepting {} in call({}) or adding own properties raise a strong anti-tampering indicator, whereas touch-mode sessions exhibiting only minor name or formatting quirks are automatically downgraded to a low-severity note.

为何重要

Stealth automation wrappers commonly hook Function.prototype.toString so patched getters pretend to return [native code]. Incomplete wrappers frequently forget that native Function.prototype.toString.call({}) must reject plain objects with a TypeError or leave inspectable own properties behind.

自动放宽触屏环境中细微的文本格式差异,既保护真实移动 WebView,又保持对隐身桌面挂钩的强检测。

说明

如何解读结果

01 预期结果

未修补的 V8、SpiderMonkey 或 JavaScriptCore 行为

Native engines report name: "toString", return "[native code]", throw TypeError on call({}), and carry no own 'toString' property.

Example result toString.name: toString • [native code]: intact • call({}) throws TypeError: yes — Result: native reflection verified
02 可能的自动化信号

被篡改的 toString 接受非函数 call({})

A stealth Proxy or JavaScript shim failing to throw TypeError on call({}) or exposing an own 'toString' property signals function-reflection tampering.

Example result Function.prototype.toString.call({}) fails to throw TypeError — Result: native toString tampering detected

Forensic significance: High-confidence prototype-tampering detector on structural failures (automatically softened for minor touch formatting quirks), dampened or overridden by verified human interaction.