botrefund.com
← BotRefund Home PROTOTYPE & FUNCTION INTEGRITY

Function.toString Integrity

BotRefund runs five structural checks on Function.prototype.toString and native DOM methods to expose stealth proxies, downgrading minor formatting quirks on touch devices.

What we test

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.

Why it matters

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.

Automatically softening minor text-formatting differences in touch environments shields genuine mobile WebViews while maintaining strong detection against stealth desktop hooks.

EXPLANATION

How to interpret the response

01 EXPECTED RESPONSE

Unpatched V8, SpiderMonkey, or JavaScriptCore behavior

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 POSSIBLE AUTOMATION SIGNAL

Tampered toString accepts non-function 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.