EyeWitness icon indicating copy to clipboard operation
EyeWitness copied to clipboard

Eyewitness does nothing, just loads infinitely

Open atharvak95 opened this issue 2 years ago • 30 comments

I am running a WSL kali linux & i installed eyewitness using the command sudo apt install eyewitness. It installed correctly.

when I try to run it, it just stalls infinitely. So i thought might be an issue with the package from Kali. So tried your repo as well.

I get the same issue. I have installed geckodriver & chromium as well to support it, but it doesn't generate anything.

the /ds.txt file of mine as per screenshot contains only 5 urls for me to test. Still no luck. Waited 15 mins, still nothing.

Check screenshot, coz I can't think of how to fix this.

issue

atharvak95 avatar Jan 22 '24 11:01 atharvak95

Make sure that you full uninstall anything that was installed by the package manager and then run the python setup again watching the setup script for any errors.

The package will probably be out of date and may have installed things that the repo version is then using rather than the version that it should be using.

digininja avatar Jan 22 '24 11:01 digininja

Make sure that you full uninstall anything that was installed by the package manager and then run the python setup again watching the setup script for any errors.

The package will probably be out of date and may have installed things that the repo version is then using rather than the version that it should be using.

Still nothing, i removed it all & installed from the repo.

tried changing my command to sudo as well & running it.

still blank.

check screenshots. blank command

atharvak95 avatar Jan 22 '24 11:01 atharvak95

Running it with sudo won't work due to sandboxing with the geko drivers.

What happens if you run it against a single site?

Can you post the output from the setup script in pastebin and drop a link to here.

digininja avatar Jan 22 '24 11:01 digininja

Running it with sudo won't work due to sandboxing with the geko drivers.

What happens if you run it against a single site?

Can you post the output from the setup script in pastebin and drop a link to here.

the setup ran successfully but when i try to run a single URL it gives me this error - check screenshot ERROR

atharvak95 avatar Jan 22 '24 14:01 atharvak95

That error says it can't create the output directory, check the permissions on that directory.

Or point the output somewhere else with -d.

And I'm asking for the setup output as there may be something in there that shows an error, just because it completes, doesn't mean it was successful. Having seen this error, it is unlikely the setup script that is at fault, but it would be good to see it, just in case.

digininja avatar Jan 22 '24 15:01 digininja

That error says it can't create the output directory, check the permissions on that directory.

Or point the output somewhere else with -d.

And I'm asking for the setup output as there may be something in there that shows an error, just because it completes, doesn't mean it was successful. Having seen this error, it is unlikely the setup script that is at fault, but it would be good to see it, just in case.

pointed it to another directory & it gets to this & stalls - error 2

Ran the setup script & here's the output, no errors - output 1

atharvak95 avatar Jan 22 '24 15:01 atharvak95

I'm going to try this once more then give up, can I get all the output from setup in pastebin or something like that rather than screenshot of half of it.

And for the question, did you answer y and press enter? What was the full command you used to start it?

digininja avatar Jan 22 '24 15:01 digininja

I'm going to try this once more then give up, can I get all the output from setup in pastebin or something like that rather than screenshot of half of it.

And for the question, did you answer y and press enter? What was the full command you used to start it?

here's the output on pastebin link - https://pastebin.com/25KStVFu

and yes i pressed enter key after pressing Y, still it stalled.

Command used - python3 EyeWitness.py -f /home/kali/domains.txt -d /home/kali/new_folder/

atharvak95 avatar Jan 23 '24 00:01 atharvak95

Hey @atharvak95 , thanks for reporting this issue.

The output of your setup script seems fine from here. I can think of a few things to try. First, after uninstalling EyeWitness from repo, did you run anything like apt autoremove? Looks like the python packages were already installed and I'm wondering if this could be a dependency version thing.

Also, have you tried running EyeWitness with sudo or as root? I would be interested to hear if this changes anything, given the permission denied error you got previously.

If nothing else, I can see if anybody I work with has a Kali WSL available to see if we can reproduce the behavior.

Thanks!

0x6d6f7468 avatar Jan 23 '24 00:01 0x6d6f7468

My guess is that there is a dependency issue caused by the package version installing things then not removing them correctly when the package was removed.

I've just re-ran the setup script on one of my Kali boxes and the versions of some of the Python libraries are different to the ones shown in the setup output.

Would you be able to setup a new Kali instance and try on that? We know the script works fine on Kali so it could be either WSL or dependencies with my money being on the dependencies.

For running it as sudo, didn't we decide that that wouldn't work properly due to sandboxing and it was best not to run as root?

digininja avatar Jan 23 '24 09:01 digininja

I just used EW on a Kali box on my current gig, so I know that's not a problem.

Also Kali is different from Ubuntu. Running as root on Kali causes no issues because the Firefox that installs from apt is not from the snap store and therefore not sandboxed (at least not in the same way).

0x6d6f7468 avatar Jan 23 '24 15:01 0x6d6f7468

I was comparing the versions to my Kali box.

And I remember the sudo snap problem now, Ubuntu not Kali.

digininja avatar Jan 23 '24 15:01 digininja

I completely uninstalled the WSL & reloaded it. The I ran sudo apt update && sudo apt full-upgrade --fix-missing Then i git cloned Eyewitness & ran the setup.sh then I tried to run the command python3 EyeWitness.py -f /home/kali/domains/urls.txt & it fails, shows this error - image

so i changed the destination of output by running command - python3 EyeWitness.py -f /home/kali/domains/urls.txt -d /home/kali/urls_2.txt then it shows directory exists do you want to overwrite? i press Y & enter. It stalls again image

tried it with sudo of these commands just in case, but that hasn't worked either. just stalls.

atharvak95 avatar Jan 24 '24 21:01 atharvak95

Alright, thanks for trying those things and responding. I don't have a Kali WSL instance on-hand, so I'm checking if anybody on our crew has one available for testing.

In the meantime, have you considered trying the Docker container version of EyeWitness? There are instructions for it in the README. Full disclosure I'm not sure how well Docker works through WSL, but I just want to figure out an alternative solution for you while we look into this.

Thanks.

0x6d6f7468 avatar Jan 24 '24 22:01 0x6d6f7468

do you guys use Kali full version in VMware or Virtualbox ? is that's why it's working for you guys & not for me on WSL ?

Meanwhile I'll try it on Docker.

atharvak95 avatar Jan 24 '24 22:01 atharvak95

I am using full VM installations of Parrot Security and Kali Linux. I know that works, but I also know that I can't simply tell you "it works for us" and dismiss the issue.

I have no idea what potential differences there might be between WSL and a full VM, so I think more testing will be required to figure this out.

Haven't yet heard from anybody using Kali WSL so it's mostly a lack of data right now. If you could, it might also be worth considering running a full Kali VM.

0x6d6f7468 avatar Jan 24 '24 22:01 0x6d6f7468

okay i'll try full version Kali in VMware/Virtualbox - which of these have cross platform copy/paste function ? As far as I know VMware community edition does not have it.

atharvak95 avatar Jan 24 '24 22:01 atharvak95

VMware Player and VirtualBox should both support copy/paste, as far as I know. You might need to disable guest isolation and install the open-vm-tools-desktop package in the guest VM.

0x6d6f7468 avatar Jan 24 '24 22:01 0x6d6f7468

I tried again on a fresh install of WSL as well as a full VM of Kali. Nothing seems to be working. Tried docker as well, but something seems to be going wrong with the tool itself that it's getting stalled.

atharvak95 avatar Jan 28 '24 11:01 atharvak95

Have you tried it on different sites? Is it just the one that is failing?

On Sun, 28 Jan 2024, 11:17 Atharva Ketkar, @.***> wrote:

I tried again on a fresh install of WSL as well as a full VM of Kali. Nothing seems to be working. Tried docker as well, but something seems to be going wrong with the tool itself that it's getting stalled.

— Reply to this email directly, view it on GitHub https://github.com/RedSiege/EyeWitness/issues/642#issuecomment-1913559348, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA4SWPBC7HUTI5I2U4DEDDYQYXVZAVCNFSM6AAAAABCFAOF7CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGU2TSMZUHA . You are receiving this because you commented.Message ID: @.***>

digininja avatar Jan 28 '24 11:01 digininja

Yeah I have tried different websites as well. Doesn't work. Can you test on your Kali WSL from Microsoft store?

atharvak95 avatar Jan 28 '24 11:01 atharvak95

Well this seems strange then, if it's not working across multiple installations and Linux environments, then I'm wondering if it's a WSL issue at all.

Are you able to curl/wget any of the resources you're trying to capture in EyeWitness? Are you behind any sort of web proxy?

0x6d6f7468 avatar Jan 28 '24 16:01 0x6d6f7468

Same in my case. I tried to install and run it in WSL 2, but it still couldn’t work. Eventually, I used the Windows version instead. I assume maybe the problem lies in the default installation settings of the WSL browsers. Haven't tried to dig in more into this problems.

azizp128 avatar Feb 24 '24 21:02 azizp128