javascript - 如何绕过 Puppeteer 阻止系统

标签 javascript node.js websocket puppeteer

我要打开https://krunker.io/通过 puppeteer 师。然而,每当我通过 Puppeteer 打开 Krunker.io 时,它就会阻止我,并显示“检测到 Puppeteer”。有一个简单的解决方法吗? 我得到的一个答案是:

You need to make a matchmaker seek game request to get a websocket URL, and then you connect to it and simulate being a client

当我在不到 5 周前开始使用 Node.js 和 Javascript 进行编码时,我不知道如何做到这一点。 (我问,他说“就做吧”。这可能没那么难,我只是不太擅长 Node)。以下是我遇到的所有答案:

i just made my rce code in assembly and then link it with chrome executable and then using a hex dumper replace the rce function call bytes with a reference pointer to my own code.
also you need to make sure your rce code has the correct signature otherwise the rebuilt chrome executable will crash as soon as it reaches your rce runtime code

you can also append a EYF_33 byte after the ACE_26 bytes to grant GET requests to make it possible to create 2 PATCH requests at a time with different structures makiong it possible to create fully independent websocket connection to the krunker api and send more AES authorization messages at a time

不确定这意味着什么 ́\_(ツ)_/́。

有没有一种简单的方法来做到这一点,或者更好的是,有一个关于如何做到这一点的分步教程(在 Mac 上)?

谢谢:)

最佳答案

在大多数情况下,它是由用户代理检测的。简化后您可以使用 puppeteer-extra和插件 puppeteer-extra-plugin-stealth更改您的用户代理。

关于javascript - 如何绕过 Puppeteer 阻止系统,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63060146/

相关文章:

javascript - 如何在不更改 HTML (Angular 4+) 的情况下为不同的页面设置不同的 css?

javascript - 使用 javascript 连接两个变量并查找数组值位置

node.js - windows下用nodejs抓包

playframework - 基于 "resource"连接的客户端正在处理的 BroadcastHub 过滤?

javascript - 带有 wss ://的 WebSocket 操作码 7

javascript - 是否有用于在 Javascript/CSS 中呈现基本流程图的库?

javascript - 函数 isisogram 无法正常工作

javascript - 未处理的 promise 拒绝 - 关键路径不完整

javascript - 如何使用 async-await 停止执行下一个函数?

python - 如何在类中实现websocket?