Skip to content
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

Broken Dockerfile #25

Closed
tristanlatr opened this issue Jun 7, 2021 · 4 comments · Fixed by #30
Closed

Broken Dockerfile #25

tristanlatr opened this issue Jun 7, 2021 · 4 comments · Fixed by #30

Comments

@tristanlatr
Copy link
Contributor

Hi, it looks like the docker image cannot be build with the latest kali distributions :/

I'm unsure which python dependencies have docutils as a requirements, tho.

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python-docutils : Depends: docutils-common (= 0.12+dfsg-1) but 0.16+dfsg-4 is to be installed
                   Recommends: python-pil but it is not going to be installed
                   Recommends: python-pygments but it is not going to be installed
                   Recommends: libpaper-utils but it is not going to be installed
                   Recommends: docutils-doc (= 0.12+dfsg-1) but it is not going to be installed
 python-requests : Depends: python-chardet but it is not installable
E: Unable to correct problems, you have held broken packages.
The command '/bin/sh -c apt-get install -y   python2.7   wget   dmitry   dnsrecon   wapiti   nmap   sslyze   dnsenum   wafw00f   golismero   dirb   host   lbd   xsser   dnsmap   dnswalk   fierce   davtest   whatweb   nikto   uniscan   whois   theharvester' returned a non-zero code: 100
@tristanlatr
Copy link
Contributor Author

Looks like it's the installation of golismero that is causing this trouble

@tristanlatr
Copy link
Contributor Author

I have a version of the Dockerfile that works, but we need to drop golismero install :/

# This currently fails, so we install golismero manually. See issue https://github.com/golismero/golismero/issues/59
# RUN apt-get install -y golismero
# This also fails, so we skip completely for now. See issue https://github.com/kislyuk/argcomplete/issues/348
# RUN cd /opt && git clone https://github.com/golismero/golismero.git && cd golismero && pip install -r requirements.txt && ln -s /opt./golismero/golismero.py /usr/bin/golismero

FROM kalilinux/kali-rolling
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get -yu dist-upgrade -y
RUN apt-get install -y ca-certificates
RUN echo "deb https://http.kali.org/kali kali-rolling main contrib non-free" > ./etc/apt/sources.list
RUN echo "deb http://old.kali.org/kali sana main non-free contrib" >> ./etc/apt/sources.list

RUN apt-get -yq install \
      python \
      host \
      whois \
      sslyze \
      wapiti \
      nmap \
      dmitry \
      dnsenum \
      dnsmap \
      dnsrecon \
      dnswalk \
      dirb \
      wafw00f \
      whatweb \
      nikto \
      lbd \
      xsser \
      fierce \
      theharvester \
      davtest \
      uniscan \
      amass \
      wget && \
    apt-get -yq autoremove && \
    apt-get clean && \
    rm -rf /var/lib/{apt,dpkg,cache,log}
RUN cd /usr/local/bin && \
    wget --no-check-certificate -q -O rapidscan.py https://raw.githubusercontent.com/skavngr/rapidscan/master/rapidscan.py &&\
    chmod +x rapidscan.py
WORKDIR /app
ENTRYPOINT ["/usr/local/bin/rapidscan.py"]

@tristanlatr
Copy link
Contributor Author

@sh4nx0r I can open a PR with the updated Dockerfile, would you like to ?

@sh4nx0r
Copy link
Member

sh4nx0r commented Jul 25, 2021

@tristanlatr , Yes please. Much Obliged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants