Stuub / Helios

Helios: Automated XSS Testing
127 stars 25 forks source link

Getting Error while testing url #1

Closed rahul199300 closed 3 months ago

rahul199300 commented 3 months ago

Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/common/service.py", line 72, in start self.process = subprocess.Popen(cmd, env=self.env, File "/usr/lib/python3.10/subprocess.py", line 971, in init self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.10/subprocess.py", line 1847, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'geckodriver'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/root/Helios/helios.py", line 751, in main() File "/root/Helios/helios.py", line 727, in main scanner = XSSScanner(target, args.browser, args.headless, args.threads, File "/root/Helios/helios.py", line 113, in init self.driver = self.setup_driver() File "/root/Helios/helios.py", line 133, in setup_driver driver = webdriver.Firefox(options=options) File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/firefox/webdriver.py", line 164, in init self.service.start() File "/usr/local/lib/python3.10/dist-packages/selenium/webdriver/common/service.py", line 81, in start raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

Stuub commented 3 months ago

Geckodriver must be in path, it's likely you haven't got it installed.

Simple fix :)

  1. Go to https://github.com/mozilla/geckodriver/releases

  2. Download Geckodriver

  3. Move Geckodriver to location in $PATH - for Linux this is /usr/local/bin

Should work perfectly after that.

Let me know if you need anymore help

Stuub commented 3 months ago

Added a more automated fix for this with webdriver explicit definitions, users shouldn't have this issue going forward :)