View Issue Details

IDProjectCategoryView StatusLast Update
0008149Kali LinuxKali Package Bugpublic2023-01-20 13:07
Reporterimjustanoob Assigned Tosbrun  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version2022.4 
Fixed in Version2023.1 
Summary0008149: eyewitness requires a json file in selenium and newer geckodriver
Description

When running EyeWitness you will a python error complaining about missing the webdriver_prefs.json file.

FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3/dist-packages/selenium/webdriver/firefox/webdriver_prefs.json'

This can be fixed by downloading the file from https://raw.githubusercontent.com/SeleniumHQ/selenium/trunk/third_party/js/selenium/webdriver.json and placing it in the correct path.

After fixing the selenium error Eyewitness fails with a geckodriver error. The geckodriver.log error is "geckodriver: error: Found argument '--websocket-port' which wasn't expected, or isn't valid in this context". This is because the selenium version requires a newer version of geckodriver.

The geckodriver eror can be fixed by downloading the latest release from https://github.com/mozilla/geckodriver/releases/download/v0.32.0/geckodriver-v0.32.0-linux32.tar.gz, extracting and overwriting the /usr/bin/geckodriver file.

Steps To Reproduce

apt install eyewitness
eyewitness --single http://www.google.com

Activities

sbrun

sbrun

2023-01-20 10:30

manager   ~0017412

Thanks for your report.

I think the first issue (missing file webdriver_prefs.json) is an issue from the Debian package python3-selenium. I have reported it
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029236

The second issue is a Kali issue. I will fix it in the next upload.

sbrun

sbrun

2023-01-20 13:07

manager   ~0017413

both issues are fixed in eyewitness version 20221203.1-0kali1

FTR I created a temporary fork of python-selenium in Kali to re-introduce the missing file.

Issue History

Date Modified Username Field Change
2023-01-17 20:09 imjustanoob New Issue
2023-01-19 09:06 sbrun Assigned To => sbrun
2023-01-19 09:06 sbrun Status new => assigned
2023-01-20 10:30 sbrun Note Added: 0017412
2023-01-20 13:07 sbrun Note Added: 0017413
2023-01-20 13:07 sbrun Status assigned => resolved
2023-01-20 13:07 sbrun Resolution open => fixed
2023-01-20 13:07 sbrun Fixed in Version => 2023.1