Hack Forums
Obfuscated selenium chromedriver - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Blackhat • Red Team • Offensive Security (https://hackforums.net/forumdisplay.php?fid=447)
+---- Forum: Hacking Tools and Programs (https://hackforums.net/forumdisplay.php?fid=10)
+---- Thread: Obfuscated selenium chromedriver (/showthread.php?tid=6256938)



Obfuscated selenium chromedriver - C1ph3rpunk - Nov 21, 2023

I make web scraping/ automation bots so this is handy and I thought I might share this here:
https://github[dot]com/ultrafunkamsterdam/undetected-chromedriver

It works like a charm and in my experience also passes recaptcha v3 checks.

Also I've been looking for a similar gecko webdriver but I haven't found anything that works as well. The best I could find is to disable the webdriver.enabled option and the "useAtomationExtension". These are the flags that webdrives uses to say what they are.

Code
profile = webdriver.FirefoxProfile('/path/to/geckodriver')

profile.set_preference("dom.webdriver.enabled", False)
profile.set_preference('useAutomationExtension', False)
profile.update_preferences()
desired = DesiredCapabilities.FIREFOX

driver = webdriver.Firefox(firefox_profile=profile, desired_capabilities=desired)

Hope this helps someone.