Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] stealth Plugin detected on [Gmail&Google] after Login page #668

Open
signaldev1 opened this issue Jul 5, 2022 · 11 comments
Open

[Bug] stealth Plugin detected on [Gmail&Google] after Login page #668

signaldev1 opened this issue Jul 5, 2022 · 11 comments
Labels
issue: bug report A bug has been reported needs triage

Comments

@signaldev1
Copy link

Hello,

since last week this problem has started to show again
140619288-7953980a-a3d2-49d3-b67f-b3f97bafc102

It seems like the Gmail has made a new update ,
i use await this.page.setBypassCSP(true) but not working anymore .

Thank you.

@signaldev1 signaldev1 added issue: bug report A bug has been reported needs triage labels Jul 5, 2022
@opahopa
Copy link

opahopa commented Jul 5, 2022

i found that disabling iframe.contentWindow , navigator.plugins works for me. enabling any of them results in being detected

@signaldev1
Copy link
Author

i disable iframe.contentWindow by this code

        const StealthPlugin = require('puppeteer-extra-plugin-stealth')()
        StealthPlugin.enabledEvasions.delete('iframe.contentWindow')
        puppeteer.use(StealthPlugin)

and for navigator.plugins how to disable it ?

thanks @opahopa

@kornicameister
Copy link

kornicameister commented Jul 5, 2022

@signaldev1 there's an evasion called navigator.plugins although removing both evasions + removing setBypassCSP doesn't help my haedless case.

PS. using await page.setBypassCSP(true) helped me last week or a bit earlier, now it is a problem to use that even if headless=false

  const stealthPlugin = StealthPlugin();
  stealthPlugin.enabledEvasions.delete('iframe.contentWindow');
  stealthPlugin.enabledEvasions.delete('navigator.plugins');
  puppeteer.use(stealthPlugin);

@signaldev1
Copy link
Author

@kornicameister @opahopa , i confirm that it's working now , Thank you

@kornicameister
Copy link

Have you tried downgrading the puppeteer? Which version do you guys run?

@signaldev1
Copy link
Author

i use this version
pppp

@LinkTree3
Copy link

Unfortunately this solution did not work for me :(

I added this

const stealthPlugin = StealthPlugin();
stealthPlugin.enabledEvasions.delete('iframe.contentWindow');
stealthPlugin.enabledEvasions.delete('navigator.plugins');
puppeteer.use(StealthPlugin())

And I tried it both with await page.setBypassCSP(true) and without

Still with the same Gmail error

@thomask
Copy link

thomask commented Nov 9, 2022

@LinkTree3 It is because in your code you're re-instantiating the Stealthplugin on the puppeteer.use line instead of using the instance on which you've deleted the two evasions.

I can confirm this is currently working:

const stealthPlugin = StealthPlugin();
stealthPlugin.enabledEvasions.delete('iframe.contentWindow');
stealthPlugin.enabledEvasions.delete('navigator.plugins');
puppeteer.use(stealthPlugin)

@LinkTree3
Copy link

@LinkTree3 It is because in your code you're re-instantiating the Stealthplugin on the puppeteer.use line instead of using the instance on which you've deleted the two evasions.

I can confirm this is currently working:

const stealthPlugin = StealthPlugin();
stealthPlugin.enabledEvasions.delete('iframe.contentWindow');
stealthPlugin.enabledEvasions.delete('navigator.plugins');
puppeteer.use(stealthPlugin)

Yes this is correct! I found it out later but forgot to update here :(

@signaldev1
Copy link
Author

signaldev1 commented Jul 18, 2023

Once again, the issue has emerged today !
Are there any suggestions or solutions from anyone regarding this problem?

@signaldev1 signaldev1 reopened this Jul 18, 2023
@zfcsoftware
Copy link

Once again, the issue has emerged today ! Are there any suggestions or solutions from anyone regarding this problem?

https://github.com/zfcsoftware/puppeteer-real-browser
I created such a library, can you try it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug report A bug has been reported needs triage
Projects
None yet
Development

No branches or pull requests

6 participants