From bab30ab22d0eded507832544a09604cd3ba823e2 Mon Sep 17 00:00:00 2001 From: MrTuxracer Date: Thu, 29 Aug 2019 20:30:04 +0200 Subject: [PATCH 1/2] Update kali-archive-keyring location --- install_debian_ubuntu.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install_debian_ubuntu.sh b/install_debian_ubuntu.sh index 052bffb..90ac62d 100644 --- a/install_debian_ubuntu.sh +++ b/install_debian_ubuntu.sh @@ -24,8 +24,8 @@ if [ ! -f "/etc/apt/sources.list.bak" ]; then echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" >> /etc/apt/sources.list echo "deb-src http://http.kali.org/kali kali-rolling main non-free contrib" >> /etc/apt/sources.list fi -wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.1_all.deb -apt install ./kali-archive-keyring_2018.1_all.deb +wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2018.2_all.deb +apt install ./kali-archive-keyring_2018.2_all.deb apt update cp /root/.Xauthority /root/.Xauthority.bak 2> /dev/null cp -a /run/user/1000/gdm/Xauthority /root/.Xauthority 2> /dev/null @@ -34,4 +34,4 @@ chown root /root/.Xauthority XAUTHORITY=/root/.Xauthority git clone https://github.com/1N3/Sn1per /tmp/Sn1per cd /tmp/Sn1per -bash install.sh \ No newline at end of file +bash install.sh From 4488fdfe0102dd076d769d4fb23cc622cf62e64a Mon Sep 17 00:00:00 2001 From: Cyril Levis Date: Thu, 29 Aug 2019 21:42:28 +0200 Subject: [PATCH 2/2] fix docker Dockerfile --- Dockerfile | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c4ff94..c90f704 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,32 +1,33 @@ FROM kalilinux/kali-linux-docker -LABEL org.label-schema.name='Sn1per - Kali Linux' -org.label-schema.description='Automated pentest framework for offensive security experts' -org.label-schema.usage='https://github.com/1N3/Sn1per' -org.label-schema.url='https://github.com/1N3/Sn1per' -org.label-schema.vendor='https://xerosecurity.com' -org.label-schema.schema-version='1.0' -org.label-schema.docker.cmd.devel='docker run --rm -ti hariomv/sniper' -MAINTAINER="Hariom Vashisth hariom.devops@gmail.com" +LABEL org.label-schema.name='Sn1per - Kali Linux' \ + org.label-schema.description='Automated pentest framework for offensive security experts' \ + org.label-schema.usage='https://github.com/1N3/Sn1per' \ + org.label-schema.url='https://github.com/1N3/Sn1per' \ + org.label-schema.vendor='https://xerosecurity.com' \ + org.label-schema.schema-version='1.0' \ + org.label-schema.docker.cmd.devel='docker run --rm -ti hariomv/sniper' \ + MAINTAINER="Hariom Vashisth hariom.devops@gmail.com" -RUN echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.list && -echo "deb-src http://http.kali.org/kali kali-rolling main contrib non-free" >> /etc/apt/sources.list +RUN echo "deb http://http.kali.org/kali kali-rolling main contrib non-free" > /etc/apt/sources.list && \ + echo "deb-src http://http.kali.org/kali kali-rolling main contrib non-free" >> /etc/apt/sources.list ENV DEBIAN_FRONTEND noninteractive -RUN set -x -&& apt-get -yqq update -&& apt-get -yqq dist-upgrade -&& apt-get clean +RUN set -x \ + && apt-get -yqq update \ + && apt-get -yqq dist-upgrade \ + && apt-get clean RUN apt-get install -y metasploit-framework -RUN sed -i 's/systemctl status ${PG_SERVICE}/service ${PG_SERVICE} status/g' /usr/bin/msfdb && msfdb reinit +RUN sed -i 's/systemctl status ${PG_SERVICE}/service ${PG_SERVICE} status/g' /usr/bin/msfdb && \ + service postgresql start && \ + msfdb reinit -RUN -apt-get --yes install git -&& mkdir -p security -&& cd security -&& git clone https://github.com/1N3/Sn1per.git -&& cd Sn1per -&& ./install.sh +RUN apt-get --yes install git \ + && mkdir -p security \ + && cd security \ + && git clone https://github.com/1N3/Sn1per.git \ + && cd Sn1per \ + && ./install.sh -CMD ["bash"] \ No newline at end of file +CMD ["bash"]