ultrafunkamsterdam / undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
https://github.com/UltrafunkAmsterdam/undetected-chromedriver
GNU General Public License v3.0
9.93k stars 1.16k forks source link

Bypass CloudFlare new version #1404

Closed devCanario closed 1 year ago

devCanario commented 1 year ago

To bypass cloudflare you need the chrome version 115, it seems that the versions prior to 115 do not like it,but with 115 the captcha is bypassed, (changing the user agent wont work)

NCLnclNCL commented 1 year ago

Oh yeah but 115 still will cannot pass

sh-erfan commented 1 year ago

To bypass cloudflare you need the chrome version 115, it seems that the versions prior to 115 do not like it,but with 115 the captcha is bypassed, (changing the user agent wont work)

Have you tested that? The latest solution was opening in a new tab and waiting for a while, but sounds patched by Cloudflare I haven't tested with 115 yet

ParhamSobhan commented 1 year ago

anyone tested?

luluhoc commented 1 year ago

anyone tested?

Doesn't work, at least with puppeteer

Sunda001 commented 1 year ago

anyone tested?

Doesn't work, at least with puppeteer

bruh, this isn't puppeteer repo

rcarvalho16 commented 1 year ago

To bypass cloudflare you need the chrome version 115, it seems that the versions prior to 115 do not like it,but with 115 the captcha is bypassed, (changing the user agent wont work)

I can't use undetected_chromedriver with version 115 of Chrome This version of ChromeDriver only supports Chrome version 113

devCanario commented 1 year ago

yo need to repatch the file, redownload the chromedriver with the new version or use a driver manager to downloadit automaticaly

rcarvalho16 commented 1 year ago

yo need to repatch the file, redownload the chromedriver with the new version or use a driver manager to downloadit automaticaly

Either way it is being detected by CF so not much I can do

Sunda001 commented 1 year ago

@rcarvalho16 dm me on telegram @anternal12 I'll be able to help u, I'm bypassing CF without a problem

Invalid telegram username

Sunda001 commented 1 year ago

@anternal12 anternal12 @Sunda001

image

Screenshot_20230723-045041_Nekogram_X.png

He's scammer guys don't trust him

Sunda001 commented 1 year ago

@anternal12 anternal12 @Sunda001

image

Screenshot_20230723-045041_Nekogram_X.png

He's scammer guys don't trust him

He's begging for 100$ crazy AF

luluhoc commented 1 year ago

@anternal12 anternal12 @Sunda001

image

Screenshot_20230723-045041__X.png

He's scammer guys don't trust him

He's begging for 100$ crazy AF

@Sunda001 You are the one begging for the solution, Ive put my time and found a solution to a problem and I’ve put the price on it nothing wrong with it. He was offering me 1$ when I didn’t align with his low ball offer he decided to post false info.

I just wanted to inform you that I’m reporting you to the police for defamation and leaking private conversations without a consent.

Cheers

Sunda001 commented 1 year ago

Am i supposed to be afraid now? And u hope me to delete my screenshot? Nice try man, and Unfortunately i live in a jungle, so police cant come here, or maybe they will knock ur door in the morning :)

On Sun, Jul 23, 2023, 5:41 AM LULU @.***> wrote:

@anternal12 anternal12 @Sunda001 https://github.com/Sunda001

[image: image] https://user-images.githubusercontent.com/22813220/255352465-3ad2f68d-914c-43a1-8944-4efef2006d1e.png

[image: Screenshot_20230723-045041__X.png] https://github.com/ultrafunkamsterdam/undetectedchromedriver/assets/32301831/fd9d30be-39b9-497b-bdb3-17909719b92d

He's scammer guys don't trust him

He's begging for 100$ crazy AF

@Sunda001 https://github.com/Sunda001 You are the one begging for the solution, Ive put my time and found a solution to a problem and I’ve put the price on it nothing wrong with it.

I just wanted to inform you that I’m reporting you to the police for defamation and leaking private conversations without a consent.

Cheers

— Reply to this email directly, view it on GitHub https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/1404#issuecomment-1646684971, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWOGB67RJVPG3HGGHLE3Y3XRRJJDANCNFSM6AAAAAA2RQ7UGA . You are receiving this because you were mentioned.Message ID: @.*** com>

NCLnclNCL commented 1 year ago

Am i supposed to be afraid now? And u hope me to delete my screenshot? Nice try man, and Unfortunately i live in a jungle, so police cant come here, or maybe they will knock ur door in the morning :) On Sun, Jul 23, 2023, 5:41 AM LULU @.> wrote: @anternal12 anternal12 @Sunda001 https://github.com/Sunda001 [image: image] https://user-images.githubusercontent.com/22813220/255352465-3ad2f68d-914c-43a1-8944-4efef2006d1e.png [image: Screenshot_20230723-045041__X.png] https://github.com/ultrafunkamsterdam/undetectedchromedriver/assets/32301831/fd9d30be-39b9-497b-bdb3-17909719b92d He's scammer guys don't trust him He's begging for 100$ crazy AF @Sunda001 https://github.com/Sunda001 You are the one begging for the solution, Ive put my time and found a solution to a problem and I’ve put the price on it nothing wrong with it. I just wanted to inform you that I’m reporting you to the police for defamation and leaking private conversations without a consent. Cheers — Reply to this email directly, view it on GitHub <#1404 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHWOGB67RJVPG3HGGHLE3Y3XRRJJDANCNFSM6AAAAAA2RQ7UGA . You are receiving this because you were mentioned.Message ID: @. com>

do you know how to bypass cloudflare?

baptx commented 1 year ago

@kenegdane this solution worked for me: https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/1388#issuecomment-1651886887

ultrafunkamsterdam commented 1 year ago
with driver:
    driver.get('https://somecloudflareprotectedsite.tld

works fine

luluhoc commented 1 year ago

with driver:

    driver.get('https://somecloudflareprotectedsite.tld

works fine

@ultrafunkamsterdam equivalent of this in puppeteer?

ultrafunkamsterdam commented 1 year ago

go the the puppeteer git and ask

ultrafunkamsterdam commented 1 year ago

is cf detecting puppetteer as well ? lol

ultrafunkamsterdam commented 1 year ago

check in discussions under "announcements" ;)

luluhoc commented 1 year ago

check in discussions under "announcements" ;)

@ultrafunkamsterdam Thanks, Do you mind telling me how CF was detecting webdriver?

devCanario commented 1 year ago

@ultrafunkamsterdam the only way to bypass currently is opening the browser with a debug port pass the captcha automaticaly then connect to the browser instance with selenium, it worked without undetected, can you look into it. it think cloudflare is messaging the driver

Sunda001 commented 1 year ago

@ultrafunkamsterdam the only way to bypass currently is opening the browser with a debug port pass the captcha automaticaly then connect to the browser instance with selenium, it worked without undetected, can you look into it. it think cloudflare is messaging the driver

Do u have ur own version of undetected-chromium?

luluhoc commented 1 year ago

@ultrafunkamsterdam

the only way to bypass currently is opening the browser with a debug port pass the captcha automaticaly then connect to the browser instance with selenium, it worked without undetected, can you look into it. it think cloudflare is messaging the driver

Yeah, it has to message the driver for sure or check if maybe the driver is changing some values or adding some function to global, cause as soon as driver is disconnected it doesn’t detect.

ysfmrz commented 1 year ago

check in discussions under "announcements" ;)

with driver:
    driver.get('https://somecloudflareprotectedsite.tld

not work for me Should we wait for the new update? for solving this problem?

devCanario commented 1 year ago

@Sunda001 you dont need undetected open chrome with the flags to set the debug port, the create script to connect with the chrome that is currentyl running and you will have the control of the driver and the captcha will be bypasses

Sunda001 commented 1 year ago

@Sunda001 you dont need undetected open chrome with the flags to set the debug port, the create script to connect with the chrome that is currentyl running and you will have the control of the driver and the captcha will be bypasses

Can u show example code and the demonstration

rcarvalho16 commented 1 year ago

@Sunda001 you dont need undetected open chrome with the flags to set the debug port, the create script to connect with the chrome that is currentyl running and you will have the control of the driver and the captcha will be bypasses

Can u show example code and the demonstration

this ^^, didn't quite understand the other guys explanation

ultrafunkamsterdam commented 1 year ago

@Sunda001 you dont need undetected open chrome with the flags to set the debug port, the create script to connect with the chrome that is currentyl running and you will have the control of the driver and the captcha will be bypasses

All nice and good. But everyone can open chrome with some parameters , maybe even navigate to a page without captcha, It's more the part of ... (and then).... Most uc users only know a bit selenium, and arent developers. So technically you are correct, but it's not helping anyone. Rewriting all this into a useable, foolproof and friendly selenium-like automation framework is another horror Story (and Almost finished. See announcements.)

rcarvalho16 commented 1 year ago

@ultrafunkamsterdam Any idea on how I could solve the 'can't connect to captcha' problem? I think it is being triggered by selenium and I know for a fact that CF is detecting it, but there's no manual captcha I can solve before connecting to an existing chrome browser.

IAISI commented 1 year ago

@Sunda001 you dont need undetected open chrome with the flags to set the debug port, the create script to connect with the chrome that is currentyl running and you will have the control of the driver and the captcha will be bypasses

All nice and good. But everyone can open chrome with some parameters , maybe even navigate to a page without captcha, It's more the part of ... (and then).... Most uc users only know a bit selenium, and arent developers. So technically you are correct, but it's not helping anyone. Rewriting all this into a useable, foolproof and friendly selenium-like automation framework is another horror Story (and Almost finished. See announcements.)

Sorry for my lack of knowledge but isn't that exactly what chrome driver is doing? Launching chrome installed on the system with specific params? Not sure how that would be any different? With exception that some extra flags and stuff is set when chromedriver is launching chrome?

luluhoc commented 1 year ago

We have figured out what the issue was. It was related to finding browser setting related to external ip: timezone, language, locale something from that list. It was reproduced only on my PC and for my ip. On our other team member PC it never reproduces, it also doesn't reproduces with proxy.

While we will continue to investigate, maybe updating ip database will help,

Feel free to use puppeteer-with-fingerprints with Cloudflare, it must work on your side.

Originally posted by @bablosoft in https://github.com/CheshireCaat/puppeteer-with-fingerprints/issues/34#issuecomment-1655489340

can anyone test it on windows, is it true what he is saying?