zfcsoftware / puppeteer-real-browser

This package is designed to bypass puppeteer's bot-detecting captchas such as Cloudflare. It acts like a real browser and can be managed with puppeteer.
https://www.npmjs.com/package/puppeteer-real-browser
MIT License
359 stars 45 forks source link

Huge Stealth Improvment. #61

Open TheRealStingo opened 4 weeks ago

TheRealStingo commented 4 weeks ago

Instead of using Runtime.enable() to execute the cloudfalre click , why dont you intercept the request of cloudflare and modify the challenge response body with a click ( ll attach it down here ) that will execute by itself rather than using Runtime which is easilty detectable , example of click is in this lib https://github.com/Akmal-CloudFreed/CloudFreed-CloudFlare-bypass

zfcsoftware commented 4 weeks ago

The library has been updated and the CDP session has been completely removed. Recaptcha v3 detects it anyway. In the future this library will be updated to create a browser like the browser.js file below. https://github.com/zfcsoftware/cf-clearance-scraper/blob/main/module/browser.js

https://github.com/zfcsoftware/puppeteer-real-browser/issues/49

I think the process you are talking about is the process in this discussion. The body in the incoming request can be changed, but Cloudflare detects the click with .click(). While it works for free plan Captchas, corporate plan Captchas cannot be passed with this method. Also, the library is not only optimized for Cloudflare. It is designed to be suitable for general use.