mxrch / GHunt

🕵️‍♂️ Offensive Google framework.
Other
15.65k stars 1.3k forks source link

TypeError: find_driver() takes 2 positional arguments but 5 were given #316

Closed ralghamdi closed 2 years ago

ralghamdi commented 2 years ago

I was trying to run GHunt from a kali machine with this command "python3 check_and_gen.py" and it shows the below error:

Traceback (most recent call last): File "/home/user/ghunt/check_and_gen.py", line 220, in driverpath = get_driverpath() File "/home/user/ghunt/lib/utils.py", line 214, in get_driverpath driverpath_with_version = chromedrivermanager_silent.driver_cache.find_driver(driver.browser_version, driver.get_name(), driver.get_os_type(), driver.get_version()) TypeError: find_driver() takes 2 positional arguments but 5 were given

ahmedkhlief commented 2 years ago

me 2

najirod commented 2 years ago

Same

ItsMalware commented 2 years ago

Same

woj-ciech commented 2 years ago

Change line 214 and 215 from lib/utils.py

driverpath_with_version = chromedrivermanager_silent.driver_cache.find_driver(driver.browser_version, driver.get_name(), driver.get_os_type(), driver.get_version())
driverpath_without_version = chromedrivermanager_silent.driver_cache.find_driver("", driver.get_name(), driver.get_os_type(), "")

to

driverpath_with_version = chromedrivermanager_silent.driver_cache.find_driver(driver)
driverpath_without_version = chromedrivermanager_silent.driver_cache.find_driver(driver)

and make sure you have chrome browser compatible with the driver.

mxrch commented 2 years ago

Fixed in 1e4098aa215761feb08a6132eadb074f4cd823d5 :) you can git pull.