botrefund.com
← BotRefund 首页 浏览器与交互信号

屏幕获取函数完整性

BotRefund 检查 Screen.prototype 的 width 和 height 属性描述符,以确认原生 getter 名称及标准的 '[native code]' 序列化。

检测内容

The collector calls Object.getOwnPropertyDescriptor(Screen.prototype, 'width') and Object.getOwnPropertyDescriptor(Screen.prototype, 'height') to inspect how screen dimensions are defined.

It serializes each getter with Function.prototype.toString to verify the expected native getter name (get width or get height) and [native code] body signature.

为何重要

Viewport-spoofing extensions and naive headless browser patches frequently wrap screen.width or screen.height inside custom JavaScript getter closures whose serialized source exposes script wrappers rather than native C++ accessors.

注意:移动 WebView 和合法的视口缩放工具可以自定义屏幕描述符,因此触摸会话上的发现会被大幅弱化,且经过验证的人工交互会抑制误报。

说明

如何解读结果

01 预期结果

原生 Screen.prototype 的 width 和 height getter

Unmodified browsers expose native getter functions named 'get width' and 'get height' that serialize with '[native code]'.

Example result Width getter: native code • Height getter: native code • Touch mode: no — Result: native descriptors verified
02 可能的自动化信号

被覆盖的 Screen getter 缺少原生签名

Non-native JavaScript functions overriding screen.width or screen.height indicate screen spoofing, softened on touch devices and suppressed on human interaction.

Example result Width getter: custom JS function • [native code]: absent — Result: screen getter tampering detected

Forensic significance: Reliable indicator of screen-resolution tampering on desktop sessions; softened on mobile touch devices and overridden by real human interaction to protect embedded WebViews.