kaliiiiiiiiii / Selenium-Profiles

undetected Selenium using chromedriver and emulation / device profiles
Other
255 stars 29 forks source link

Devtools Runtime detection #57

Closed xAffan closed 11 months ago

xAffan commented 1 year ago

Describe the bug Falix.gg detects the chromedriver, and subsequently redirects you to about:blank.

To Reproduce

from selenium_profiles.webdriver import Chrome
from selenium_profiles.profiles import profiles
from selenium.webdriver.common.by import By  # locate elements
from selenium.webdriver import ChromeOptions

profile = profiles.Windows()
options = ChromeOptions()
mydriver = Chrome(profile, options=options, uc_driver=False)
# mydriver.options.add_argument("--headless=new")

driver = mydriver.start()

# get url
driver.get('https://falix.gg/?id=12345678')  # test fingerprint

input("Press ENTER to exit: ")
driver.quit()  # Execute on the End!

Expected behavior or error-message There should not have been a redirect to about:blank. You can verify the behavior of the site by visiting normally.

Environment (please complete the following information):

Additional context I would like to add that the website detects dev tools and redirects you. I think detecting dev tools correlates to detecting Chromedriver.

kaliiiiiiiiii commented 1 year ago

merge to https://github.com/kaliiiiiiiiii/Selenium-Profiles/discussions/44 And yes, it is correlated to the devtools. Currently no solution, but working on it:)

Thanks a lot for your nice formatted issue:)

xAffan commented 1 year ago

Definitely waiting desperately for some solution. Undetected chromedriver's solution was to ditch chromedriver (soon) Check discussion https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/1321#issuecomment-1582188178

kaliiiiiiiiii commented 1 year ago

Definitely waiting desperately for some solution. Undetected chromedriver's solution was to ditch chromedriver (soon) Check discussion ultrafunkamsterdam/undetected-chromedriver#1321 (comment)

oh that's interesting. Wonder what's happening in the background//how it works

xAffan commented 1 year ago

Do u plan on working for a solution tho or is it on stall rn?

kaliiiiiiiiii commented 1 year ago

Do u plan on working for a solution tho or is it on stall rn?

Uh yeah I actually I do. But undetected-chromedriver's probably gonna have a solution first, as I currently don't really have a approach for it

kaliiiiiiiiii commented 1 year ago
driver.execute_cdp_cmd("Runtime.disable",{})
driver.get('https://falix.gg/?id=12345678')

fixes this issue for me. But causes some problems:

see Runtime.disable for documentation

xAffan commented 1 year ago

script execution may not matter much but find element and click are crucial for selenium app. That being said, this still is huge progress 🥳

kaliiiiiiiiii commented 1 year ago

UPDATE:

Selenium-Driverless now passes bet365, cloudfare and others:)

Original comment

driver.execute_cdp_cmd("Runtime.disable",{})
driver.get('https://falix.gg/?id=12345678')

fixes this issue for me. But causes some problems:

  • find element doesn't work
  • click doesn't work
  • script execution doesn't work

see Runtime.disable for documentation

there might be a way to automate chrome using a remote-controlled chrome-extension status:working on ( see https://github.com/kaliiiiiiiiii/Selenium-Injector)

kaliiiiiiiiii commented 12 months ago

@xAffan I'd like to do further tests on that, but unfortanely, the website seems down (ERR_CONNECTION_TIMED_OUT).

Any other sites I could use for that?

NCLnclNCL commented 11 months ago
driver.execute_cdp_cmd("Runtime.disable",{})
driver.get('https://falix.gg/?id=12345678')

fixes this issue for me. But causes some problems:

  • find element doesn't work
  • click doesn't work
  • script execution doesn't work

see Runtime.disable for documentation

there might be a way to automate chrome using a remote-controlled chrome-extension status:working on ( see https://github.com/kaliiiiiiiiii/Selenium-Injector)

i dont like extension

kaliiiiiiiiii commented 11 months ago

with selenium-driverless

warning:

profile = profiles.Windows() # or .Android options = ChromeOptions()

options.add_argument("--headless=new")

driver = Chrome(profile, options=options, driverless_options=True)

get url

driver.get('https://nowsecure.nl#relax') # test fingerprint

driver.quit() # Execute on the End!


see [documentation](https://github.com/kaliiiiiiiiii/Selenium-Driverless) for usages
Bengrove20011 commented 9 months ago

@kaliiiiiiiiii please can you contact me regards to work email info@cashmakeruk.com