gowitness
gowitness copied to clipboard
executable file not found in $PATH
I am getting the below error when trying to run gowitness in kali-
gowitness single http://www.google.com 10 Mar 2024 01:28:11 INF preflight result statuscode=200 title=Google url=http://www.google.com 10 Mar 2024 01:28:11 ERR failed to take screenshot error="exec: "google-chrome": executable file not found in $PATH"
Can someone please tell me how to fix it? I am a beginner
Thanks
I had the same issue on kali in WSL while using the precompiled binary. The issue is that gowitness cannot find the chrome binary in the expected location, so either put it in the expected location or tell gowitness where to find it by using the --chrome-path
option.
My WSL solution is like:
gowitness <other args> --chrome-path /mnt/c/Program\ Files/Google/Chrome/Application/chrome.exe
EDIT: the --chrome-path arg is a valid fix, but this should not be done through WSL. At least in my case it caused only preflights to work (screenshots fail). Will be using the Windows binary instead :)
edit2: I ended up just using docker. Much easier.