mirror of https://github.com/1N3/Sn1per.git
Change commands in Dockerfile and add workdir
This commit is contained in:
parent
11dc28dcc4
commit
2854c4b3ee
20
Dockerfile
20
Dockerfile
|
|
@ -1,4 +1,4 @@
|
||||||
FROM kalilinux/kali-rolling
|
FROM docker.io/kalilinux/kali-rolling:latest
|
||||||
|
|
||||||
LABEL org.label-schema.name='Sn1per - Kali Linux' \
|
LABEL org.label-schema.name='Sn1per - Kali Linux' \
|
||||||
org.label-schema.description='Automated pentest framework for offensive security experts' \
|
org.label-schema.description='Automated pentest framework for offensive security experts' \
|
||||||
|
|
@ -14,21 +14,21 @@ RUN echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /e
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apt-get -yqq update \
|
&& apt -yqq update \
|
||||||
&& apt-get -yqq dist-upgrade \
|
&& apt -yqq full-upgrade \
|
||||||
&& apt-get clean
|
&& apt clean
|
||||||
RUN apt-get install -y metasploit-framework
|
RUN apt install --yes metasploit-framework
|
||||||
|
|
||||||
RUN sed -i 's/systemctl status ${PG_SERVICE}/service ${PG_SERVICE} status/g' /usr/bin/msfdb && \
|
RUN sed -i 's/systemctl status ${PG_SERVICE}/service ${PG_SERVICE} status/g' /usr/bin/msfdb && \
|
||||||
service postgresql start && \
|
service postgresql start && \
|
||||||
msfdb reinit
|
msfdb reinit
|
||||||
|
|
||||||
RUN apt-get --yes install git \
|
WORKDIR /usr/src/app
|
||||||
&& mkdir -p security \
|
|
||||||
&& cd security \
|
RUN apt --yes install git bash
|
||||||
&& git clone https://github.com/1N3/Sn1per.git \
|
RUN git clone https://github.com/1N3/Sn1per.git \
|
||||||
&& cd Sn1per \
|
&& cd Sn1per \
|
||||||
&& ./install.sh \
|
&& ./install.sh \
|
||||||
&& sniper -u force
|
&& sniper -u force
|
||||||
|
|
||||||
CMD ["bash"]
|
CMD ["sniper"]
|
||||||
Loading…
Reference in New Issue