-
Notifications
You must be signed in to change notification settings - Fork 846
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
error in selenium #599
Comments
I'm having this same issue on a new minimal kali installation after running apt install eyewitness. I fixed it by copying an old '/usr/lib/python3/distpackages/selenium/webdriver/firefox/webdriver_prefs.json' to the new device. |
Don't use the package manager version, always install from GitHub, it makes
debugging stuff a lot easier.
…On Fri, 18 Nov 2022, 20:12 catpipeless, ***@***.***> wrote:
I'm having this same issue on a new minimal kali installation after
running apt install eyewitness. I fixed it by copying an old
'/usr/lib/python3/distpackages/selenium/webdriver/firefox/webdriver_prefs.json'
to the new device.
—
Reply to this email directly, view it on GitHub
<#599 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA4SWLE3JIMBN2UULBLR7DWI7PLHANCNFSM6AAAAAASEZUZRM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I did try installing it from github, by cloning the project and then running the setup.sh script. This did not resolve the issue. |
i download it from github but still the same issue |
Try the fix from #598 What distro and version of Linux are you using? |
I don't see a fix in #598 |
I don't think it's related but I'd like it posted here if anyone has the same problem. [] Selenium not found. downgrade commands :
Once updated everything works again : 👍 |
Someone could upload the content of the file '/usr/lib/python3/distpackages/selenium/webdriver/firefox/webdriver_prefs.json'? I remove all the old versions in my machine. Thank you guys! EDIT: Just copy that in /usr/lib/python3/distpackages/selenium/webdriver/firefox/webdriver_prefs.json and it's done! |
Heads up to folks hitting this issue: Issue might exist by conflicting selenium versions. Was troubleshooting this with a coworker and the issue existed in Removing the Selenium module present in |
Maybe, there is another kind of conflict regarding Python3 Selenium because these two folders are quoted:
Maybe distro-dependent I do not know. Thanks @0x6d6f7468:
So I try to copy one of them: sudo cp /usr/local/lib/python3.9/dist-packages/selenium/webdriver/firefox/webdriver_prefs.json /usr/lib/python3/dist-packages/selenium/webdriver/firefox/webdriver_prefs.json But, now I have this error:
Edit: Ok fine, I just ran the |
Glad you got it working. Thinking maybe we should add a check in the setup script that either removes existing versions of Selenium, or copies the downloaded webdriver_prefs.json to the /usr/lib directory. Will investigate when I have a moment. |
that is a good idea, and likely should get added in |
I can sketch something up quick if you like. Do you have a preference between deleting existing selenium or copying webdriver_prefs.json all over the place? Or should the user get a prompted choice? |
My instant reaction to this is don't delete anything already on the system
without full confirmation. I'd be very annoyed if my already configured and
working stuff stopped working due to installing a new tool.
…On Sun, 8 Jan 2023, 19:44 moth, ***@***.***> wrote:
I can sketch something up quick if you like. Do you have a preference
between deleting existing selenium or copying webdriver_prefs.json all over
the place? Or should the user get a prompted choice?
—
Reply to this email directly, view it on GitHub
<#599 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA4SWKZAPIUSHAOWDRWH3LWRMKKTANCNFSM6AAAAAASEZUZRM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yeah that's fair, digi. The solution seemed like a bit of a kludge in the moment, but was mostly to get another tester running. I'm not aware of an issue with deleting the /usr/lib location but perhaps even just symlinking the webdriver_prefs file would be good enough? |
I don't know enough about how it works to comment on putting a symlink in.
…On Sun, 8 Jan 2023, 19:48 moth, ***@***.***> wrote:
Yeah that's fair, digi. The solution seemed like a bit of a kludge in the
moment, but was mostly to get another tester running. I'm not aware of an
issue with deleting the /usr/lib location but perhaps even just symlinking
the webdriver_prefs file would be good enough?
—
Reply to this email directly, view it on GitHub
<#599 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA4SWPAP5KQKAB37RBSRTDWRMKZZANCNFSM6AAAAAASEZUZRM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Ok. I can look at a few options for setup script changes and report back tomorrow with what seems to be the best solution. |
I've just had a look at the closed tickets and I think I must have sorted
it directly with Chris.
The problem was Kali wasn't working correctly with the pip installed
packages but worked fine with those installed from apt so we changed the
installer to use those.
If you build it to use venv, make sure you test a completely fresh Kali
install so there isn't any residue from an only apt instant lying around to
confuse things.
…On Sun, 8 Jan 2023, 19:58 moth, ***@***.***> wrote:
Ok. I can look at a few options for setup script changes and report back
tomorrow with what seems to be the best solution.
—
Reply to this email directly, view it on GitHub
<#599 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA4SWOLQBSN4GEXYBIRU2TWRML4XANCNFSM6AAAAAASEZUZRM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
@digininja This can be closed at this point? between Chris' work and the new setup script, i think this might be resolved. |
Yes, I think it is sorted out now.
…On Mon, 20 May 2024, 20:41 Kent Ickler, ***@***.***> wrote:
@digininja <https://github.com/digininja> This can be closed at this
point? between Chris' work and the new setup script, i think this might be
resolved.
—
Reply to this email directly, view it on GitHub
<#599 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA4SWIXDZ5HG3NTSAWZVLTZDJGWLAVCNFSM6AAAAAASEZUZROVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRGA4DIMZTGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
OS Used - ALL Information (architecture, linux flavor, etc.)
kali linux
Pastebin link to error you are encountering
the tools did not take any screen shoots
Expected behavior (vs. what you encountered)
Trying to make web screenshots using syntax:
./Eyewitness.py -f urllist.txt --web
Any additional information
Process Process-2:
Traceback (most recent call last):
File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/kali/Desktop/EyeWitness/Python/EyeWitness.py", line 253, in worker_thread
driver = create_driver(cli_parsed, user_agent)
File "/home/kali/Desktop/EyeWitness/Python/modules/selenium_module.py", line 39, in create_driver
profile = webdriver.FirefoxProfile()
File "/usr/lib/python3/dist-packages/selenium/webdriver/firefox/firefox_profile.py", line 61, in init
with open(
FileNotFoundError: [Errno 2] No such file ordirectory:'/usr/lib/python3/distpackages/selenium/webdriver/firefox/webdriver_prefs.json'
The text was updated successfully, but these errors were encountered: