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

Devtools Runtime detection #57

Closed
xAffan opened this issue Jun 8, 2023 · 12 comments
Closed

Devtools Runtime detection #57

xAffan opened this issue Jun 8, 2023 · 12 comments
Assignees
Labels
dev Development for dev branch enhancement New feature or request

Comments

@xAffan
Copy link

xAffan commented Jun 8, 2023

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):

  • OS: Arch Linux
  • OS-Version Latest
  • Browser Chromium
  • Selenium-Profiles Version 2.2.5.1

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
Copy link
Owner

kaliiiiiiiiii commented Jun 8, 2023

merge to #44
And yes, it is correlated to the devtools. Currently no solution, but working on it:)

Thanks a lot for your nice formatted issue:)

@kaliiiiiiiiii kaliiiiiiiiii changed the title Falix.gg detected the chromedriver Devtools & driver detecetion Jun 8, 2023
@xAffan
Copy link
Author

xAffan commented Jun 8, 2023

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

@xAffan xAffan changed the title Devtools & driver detecetion Devtools & driver detection Jun 8, 2023
@kaliiiiiiiiii
Copy link
Owner

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
Copy link
Author

xAffan commented Jun 9, 2023

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

@kaliiiiiiiiii
Copy link
Owner

kaliiiiiiiiii commented Jun 9, 2023

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 kaliiiiiiiiii added enhancement New feature or request dev Development for dev branch labels Jun 10, 2023
@kaliiiiiiiiii
Copy link
Owner

kaliiiiiiiiii commented Jun 11, 2023

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

@xAffan
Copy link
Author

xAffan commented Jun 11, 2023

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
Copy link
Owner

kaliiiiiiiiii commented Jun 16, 2023

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 kaliiiiiiiiii self-assigned this Jun 16, 2023
@kaliiiiiiiiii kaliiiiiiiiii changed the title Devtools & driver detection Devtools Runtime detection Jun 27, 2023
@kaliiiiiiiiii
Copy link
Owner

@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
Copy link

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
Copy link
Owner

with selenium-driverless

warning:

  • this package is experimental and might include bugs, please report them at bug-reports
  • only for python >=3.8
  • you'll need to install pycdp first with pip install git+https://github.com/HMaker/python-cdp.git@latest
from selenium_profiles.webdriver import Chrome
from selenium_profiles.profiles import profiles
from selenium_driverless.webdriver import ChromeOptions
from selenium_driverless.types.by import By

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 for usages

@Bengrove20011
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Development for dev branch enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants