botrefund.com
← BotRefund Home 高级 JS 引擎泄漏

错误堆栈代理痕迹

Invokes controlled TypeError traps against Function.prototype.toString to expose JavaScript Proxy frames inside thrown call stacks.

检测内容

Inside try/catch blocks, BotRefund executes two deliberately invalid self-referential operations: calling .toString() on Object.create(Function.prototype.toString) and evaluating Function.prototype.toString instanceof Function.prototype.toString.

It inspects both captured error stack traces for JavaScript wrapper or trap frames—specifically looking for at Object.toString, at Proxy., at Proxy.[Symbol.hasInstance], or at Object.[Symbol.hasInstance].

为何重要

Stealth automation libraries frequently wrap Function.prototype.toString inside an ES6 Proxy so mocked browser APIs appear to return [native code]. Executing invalid prototype checks forces those hidden traps to surface inside the thrown TypeError stack.

未修改的 V8、JavaScriptCore 和 SpiderMonkey 引擎会发出直接的原生调用帧,而无需 JavaScript 代理捕获条目。

说明

如何解读结果

01 预期结果

不含代理帧的原生 TypeError 堆栈

Unmodified JavaScript engines throw clean native TypeError stacks pointing to the caller without at Object.toString or at Proxy.[Symbol.hasInstance] frames.

Example result toString stack: native caller frame • instanceof stack: native caller frame — Result: no proxy artifacts detected
02 可能的自动化信号

堆栈跟踪中泄漏的代理捕获或包装帧

Wrapped Function.prototype.toString shims expose at Proxy. or at Proxy.[Symbol.hasInstance] frames inside thrown stacks, revealing active API stealth hooking.

Example result instanceof stack: "TypeError ... at Proxy.[Symbol.hasInstance]" — Result: proxy stack artifact detected

Forensic significance: Strong standalone indicator of Function.prototype.toString proxy hooking used by stealth frameworks; interpret alongside prototype descriptor checks and interaction telemetry.