sullo / nikto

Nikto web server scanner
Other
8.36k stars 1.21k forks source link

Bug: 2failed to create shim task" when executing docker run #795

Open GrimRob opened 1 year ago

GrimRob commented 1 year ago

Expected behavior

runs without errors

Actual behavior

docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "nikto.pl": executable file not found in $PATH: unknown.

Steps to reproduce

  1. docker build -t sullo/nikto .
  2. docker run --rm sullo/nikto

Further technical info

I am running windows 11, docker from wsl . I don't have perl installed (hence using docker)

mce1978 commented 1 year ago

I have the same problem running docker in windows 11 (but not using wsl). Seems like the nikto.pl file can't be read in windows. So I tried to copy paste the code inte nikto.pl. But the file cant be found when it is in the docker image. It disappears. Very strange.

A workaround is to use this instead: https://github.com/ellerbrock/nikto-docker

It worked flawless!

HuntClauss commented 8 months ago

@mce1978 @GrimRob Does this problem still occur?

I installed Docker Desktop on my Windows 11 machine and used WSL 2 as a backend and it worked flawlessly

HuntClauss commented 8 months ago

I think that this might be the same issue https://github.com/sullo/nikto/issues/777#issuecomment-1586196518. So adding Nikto to exception list in Windows Defender / your anti virus should solve the problem