魔改chromium源码——CDP(Chrome DevTools Protocol)检测01 whether the browser environment is controlled by a robot. chromium指纹魔改

魔改chromium源码——CDP(Chrome DevTools Protocol)检测01环境检测网站,https: - 掘金

 

BrowserScan - Robot Detection/WebDriver | BrowserScan

BrowserScan detects automated activities on scripts or browsers. It analyzes various browser properties to determine whether the browser environment is controlled by a robot. Various human-machine verification products such as Cloudflare Turnstile and Google reCAPTCHA include this aspect of detection, which is usually divided into three categories:

Bot Detection Service

 

  • Normal bots - usually bots belonging to well-known search engines (Google, Bing, Baidu). It crawls websites to create a searchable index of content. A good bot can also be a monitoring or uptime checking tool.
  • Malicious bots - Usually automated tools like Selenium, Puppeteer, Playwright or anything that pretends to be a good search bot. It can take over accounts, submit spam, steal passwords, scrape data, waste resources, and more.Discord bots.
  • No bots detected - the visitor could be a human using a regular browser.

 

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
    <title>Chrome DevTools Protocol Detection</title>
</head>
<body>
    <div>devTool:<b id="status"></b></div>
    
    <script>
        const el = document.getElementById('status')
        const hook = new Error()
        Object.defineProperty(hook, "stack", {
            get: function () {
                el.innerText = '打开了'
                return num;
            }
        });

        function isOpenDevTool() {
            el.innerText = '未打开'
            console.debug(hook);
        }
        isOpenDevTool()
    </script>
</body>
</html> 

  

这段代码的检测能力非常强,我们尝试用自动化框架去打开cdp.html,即便我们不打开devtool,他也会检测到你是机器人。

The console.debug() static method outputs a message to the console at the "debug" log level. The message is only displayed to the user if the console is configured to display debug output. In most cases, the log level is configured within the console UI. This log level might correspond to the Debug or Verbose log level.

/src/v8/src/inspector/v8-console.cc

image

 

chromium指纹魔改 - Nickname肖知寒的专栏 - 掘金



 

posted @ 2026-06-28 16:51  papering  阅读(3)  评论(0)    收藏  举报