From 9b8201777273c948dc04a64aa22a41214126f520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Sun, 24 Mar 2019 22:33:52 +0100 Subject: [PATCH 01/17] Integrate w3af at /opt/w3af and their dependencies --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index b0a2271..7b48e37 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,6 +22,9 @@ RUN updatedb # nodejs, npm and yarn RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - ; apt-get install -y nodejs npm yarnpkg +# w3af +RUN git clone https://github.com/andresriancho/w3af.git /opt/w3af && apt-get install -y libssl-dev libxml2-dev libxslt1-dev zlib1g-dev python-dev python-pybloomfiltermmap ; /opt/w3af/w3af_console ; bash /tmp/w3af_dependency_install.sh + # ngrok RUN curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | gunzip - > /usr/bin/ngrok RUN chmod +x /usr/bin/ngrok From a93fa235f5fd03a5d847a35b815b16fdc869aaf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Sun, 24 Mar 2019 22:37:23 +0100 Subject: [PATCH 02/17] Add w3af into path! --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7b48e37..8f0f43f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ RUN updatedb RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - ; apt-get install -y nodejs npm yarnpkg # w3af -RUN git clone https://github.com/andresriancho/w3af.git /opt/w3af && apt-get install -y libssl-dev libxml2-dev libxslt1-dev zlib1g-dev python-dev python-pybloomfiltermmap ; /opt/w3af/w3af_console ; bash /tmp/w3af_dependency_install.sh +RUN git clone https://github.com/andresriancho/w3af.git /opt/w3af && apt-get install -y libssl-dev libxml2-dev libxslt1-dev zlib1g-dev python-dev python-pybloomfiltermmap ; /opt/w3af/w3af_console ; bash /tmp/w3af_dependency_install.sh && export PATH=/opt/w3af:$PATH >> /etc/profile # ngrok RUN curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | gunzip - > /usr/bin/ngrok From 05371d2fae939840b2b459dc7aa7802e75f78d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 00:10:32 +0100 Subject: [PATCH 03/17] Group base Kali linux deployment in one unique layer i --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8f0f43f..76f4521 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,11 +5,8 @@ MAINTAINER Xavi Torelló ENV DEBIAN_FRONTEND noninteractive ENV TERM xterm-256color -RUN rm -fR /var/lib/apt/ -RUN apt-get clean -RUN apt-get update -y -RUN apt-get install -y software-properties-common && apt-get update -y -RUN apt-get install -y kali-linux-full --fix-missing +# Install Kali Full +RUN rm -fR /var/lib/apt/ && apt-get clean && apt-get update -y && apt-get install -y software-properties-common kali-linux-full --fix-missing # secLists! RUN git clone https://github.com/danielmiessler/SecLists /usr/share/seclists From 2d353f26237033ade98046e5fec5d9244fc58dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 00:11:26 +0100 Subject: [PATCH 04/17] Resort tools installation process --- Dockerfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 76f4521..5113a3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,16 +8,18 @@ ENV TERM xterm-256color # Install Kali Full RUN rm -fR /var/lib/apt/ && apt-get clean && apt-get update -y && apt-get install -y software-properties-common kali-linux-full --fix-missing -# secLists! -RUN git clone https://github.com/danielmiessler/SecLists /usr/share/seclists +# Add NodeJS repo +RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - # Some system tools -RUN git clone https://github.com/arialdomartini/oh-my-git.git ~/.oh-my-git && echo source ~/.oh-my-git/prompt.sh >> /etc/profile -RUN apt-get install -y git colordiff colortail unzip vim tmux xterm zsh curl telnet strace ltrace tmate less build-essential wget python3-setuptools python3-pip tor proxychains proxychains4 zstd net-tools bash-completion iputils-tracepath +RUN apt-get install -y git colordiff colortail unzip vim tmux xterm zsh curl telnet strace ltrace tmate less build-essential wget python3-setuptools python3-pip tor proxychains proxychains4 zstd net-tools bash-completion iputils-tracepath nodejs npm yarnpkg RUN updatedb -# nodejs, npm and yarn -RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - ; apt-get install -y nodejs npm yarnpkg +# Oh-my-git! +RUN git clone https://github.com/arialdomartini/oh-my-git.git ~/.oh-my-git && echo source ~/.oh-my-git/prompt.sh >> /etc/profile + +# secLists! +RUN git clone https://github.com/danielmiessler/SecLists /usr/share/seclists # w3af RUN git clone https://github.com/andresriancho/w3af.git /opt/w3af && apt-get install -y libssl-dev libxml2-dev libxslt1-dev zlib1g-dev python-dev python-pybloomfiltermmap ; /opt/w3af/w3af_console ; bash /tmp/w3af_dependency_install.sh && export PATH=/opt/w3af:$PATH >> /etc/profile From f38d8a6d35888b22ccdc70c77691d71e5a85d731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 00:33:36 +0100 Subject: [PATCH 05/17] Disable node script integration WIP to integrate it manually instead of use the script, it raises an error due to non-matched distro --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5113a3f..d5795b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ ENV TERM xterm-256color RUN rm -fR /var/lib/apt/ && apt-get clean && apt-get update -y && apt-get install -y software-properties-common kali-linux-full --fix-missing # Add NodeJS repo -RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - +#RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - # Some system tools RUN apt-get install -y git colordiff colortail unzip vim tmux xterm zsh curl telnet strace ltrace tmate less build-essential wget python3-setuptools python3-pip tor proxychains proxychains4 zstd net-tools bash-completion iputils-tracepath nodejs npm yarnpkg From b2518ea12d79986b6255e120cb80c901c624a511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 00:34:22 +0100 Subject: [PATCH 06/17] Updatedb and clean'up apt --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d5795b9..e69f8c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,6 @@ RUN rm -fR /var/lib/apt/ && apt-get clean && apt-get update -y && apt-get instal # Some system tools RUN apt-get install -y git colordiff colortail unzip vim tmux xterm zsh curl telnet strace ltrace tmate less build-essential wget python3-setuptools python3-pip tor proxychains proxychains4 zstd net-tools bash-completion iputils-tracepath nodejs npm yarnpkg -RUN updatedb # Oh-my-git! RUN git clone https://github.com/arialdomartini/oh-my-git.git ~/.oh-my-git && echo source ~/.oh-my-git/prompt.sh >> /etc/profile @@ -45,6 +44,11 @@ RUN update-rc.d tor enable RUN sed -i 's/^strict_chain/#strict_chain/g;s/^#random_chain/random_chain/g' /etc/proxychains.conf RUN sed -i 's/^strict_chain/#strict_chain/g;s/^round_robin_chain/round_robin_chain/g' /etc/proxychains4.conf +# Update DB and clean'up! +RUN updatedb && \ + apt-get autoremove -y && \ + apt-get clean + # Welcome message RUN echo "echo 'Kali full container!\n\n- If you need proxychains over Tor just activate tor service with:\n$ service tor start\n'" >> /etc/profile From 8e1660a35ea4cc8cb2ed56509528945a8b38732a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 00:49:11 +0100 Subject: [PATCH 07/17] Fix f*cking scripts without correct return codes... --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e69f8c6..c9f3e75 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ RUN git clone https://github.com/arialdomartini/oh-my-git.git ~/.oh-my-git && ec RUN git clone https://github.com/danielmiessler/SecLists /usr/share/seclists # w3af -RUN git clone https://github.com/andresriancho/w3af.git /opt/w3af && apt-get install -y libssl-dev libxml2-dev libxslt1-dev zlib1g-dev python-dev python-pybloomfiltermmap ; /opt/w3af/w3af_console ; bash /tmp/w3af_dependency_install.sh && export PATH=/opt/w3af:$PATH >> /etc/profile +RUN git clone https://github.com/andresriancho/w3af.git /opt/w3af && apt-get install -y libssl-dev libxml2-dev libxslt1-dev zlib1g-dev python-dev python-pybloomfiltermmap ; /opt/w3af/w3af_console ; bash /tmp/w3af_dependency_install.sh ; export PATH=/opt/w3af:$PATH >> /etc/profile # ngrok RUN curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | gunzip - > /usr/bin/ngrok From 2ba4fa71539d808a4914aac8ff20ffd622c6bceb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 00:56:09 +0100 Subject: [PATCH 08/17] Add code-server --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index c9f3e75..3f6868e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,9 @@ RUN git clone https://github.com/andresriancho/w3af.git /opt/w3af && apt-get ins RUN curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | gunzip - > /usr/bin/ngrok RUN chmod +x /usr/bin/ngrok +# code-server +RUN mkdir -p /opt/code-server && curl -Ls https://api.github.com/repos/codercom/code-server/releases/latest | grep "browser_download_url.*linux" | cut -d ":" -f 2,3 | tr -d \" | xargs curl -Ls | tar xz -C /opt/code-server --strip 1 && export PATH=/opt/code-server:$PATH >> /etc/profile + # virtualenv config RUN pip install virtualenvwrapper RUN echo 'export WORKON_HOME=$HOME/.virtualenvs' >> /etc/profile From 0216bb3dac890a1af4d2083fd4c2c28169f1693e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 01:02:41 +0100 Subject: [PATCH 09/17] Fix PATH completition with latest tools ^^' WTF!!! ^^' --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3f6868e..6625930 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,14 +21,14 @@ RUN git clone https://github.com/arialdomartini/oh-my-git.git ~/.oh-my-git && ec RUN git clone https://github.com/danielmiessler/SecLists /usr/share/seclists # w3af -RUN git clone https://github.com/andresriancho/w3af.git /opt/w3af && apt-get install -y libssl-dev libxml2-dev libxslt1-dev zlib1g-dev python-dev python-pybloomfiltermmap ; /opt/w3af/w3af_console ; bash /tmp/w3af_dependency_install.sh ; export PATH=/opt/w3af:$PATH >> /etc/profile +RUN git clone https://github.com/andresriancho/w3af.git /opt/w3af && apt-get install -y libssl-dev libxml2-dev libxslt1-dev zlib1g-dev python-dev python-pybloomfiltermmap ; /opt/w3af/w3af_console ; bash /tmp/w3af_dependency_install.sh ; echo 'export PATH=/opt/w3af:$PATH' >> /etc/profile # ngrok RUN curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | gunzip - > /usr/bin/ngrok RUN chmod +x /usr/bin/ngrok # code-server -RUN mkdir -p /opt/code-server && curl -Ls https://api.github.com/repos/codercom/code-server/releases/latest | grep "browser_download_url.*linux" | cut -d ":" -f 2,3 | tr -d \" | xargs curl -Ls | tar xz -C /opt/code-server --strip 1 && export PATH=/opt/code-server:$PATH >> /etc/profile +RUN mkdir -p /opt/code-server && curl -Ls https://api.github.com/repos/codercom/code-server/releases/latest | grep "browser_download_url.*linux" | cut -d ":" -f 2,3 | tr -d \" | xargs curl -Ls | tar xz -C /opt/code-server --strip 1 && echo 'export PATH=/opt/code-server:$PATH' >> /etc/profile # virtualenv config RUN pip install virtualenvwrapper From f332b87e2139b87dd9f4c02d80e2371c972bb4dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 01:06:35 +0100 Subject: [PATCH 10/17] Add code-server to installed apps --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 09987e4..d1f0dcb 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ Be patient, this will install all Kali tools (just for the first install, at ima - configured to provide a new IP every 10 seconds - configurable via `MaxCircuitDirtiness` at `/etc/tor/torrc` - [SecLists](https://github.com/danielmiessler/SecLists) at `/usr/share/seclists` +- [code-server](https://github.com/codercom/code-server) + - a VSCode served at `tcp/8443` - [ngrok](http://ngrok.com) - python virtualenvs via `virtualenvwrapper` - projects placed at /`root/projects` From 7cebb963b1b07f7c152ca0d51abb1107c6168b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 01:06:51 +0100 Subject: [PATCH 11/17] Add w3af to installed apps --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d1f0dcb..809515d 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Be patient, this will install all Kali tools (just for the first install, at ima - configured to provide a new IP every 10 seconds - configurable via `MaxCircuitDirtiness` at `/etc/tor/torrc` - [SecLists](https://github.com/danielmiessler/SecLists) at `/usr/share/seclists` +- w3af (dropped out of Kali repos) - [code-server](https://github.com/codercom/code-server) - a VSCode served at `tcp/8443` - [ngrok](http://ngrok.com) From 71c98182584ab74ef7fd5508d176eb198cf24764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 01:07:00 +0100 Subject: [PATCH 12/17] Add nodejs, yarn and npm --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 809515d..46a9bcb 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,7 @@ Be patient, this will install all Kali tools (just for the first install, at ima - python3-setuptools python3-pip - bash-completion - oh-my-git integration + - nodejs, npm and yarn ## Usage From 214a06926f72a4550300157fbbeae65e650aa5b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 01:19:33 +0100 Subject: [PATCH 13/17] Expose tcp/8443 to host to be able to interact with VSCode Also run with `--service-ports` flags! --- docker-compose.yml | 2 ++ run.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 73057ed..7e3b153 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,3 +6,5 @@ services: - NET_ADMIN stdin_open: true tty: true + ports: + - "8443:8443" diff --git a/run.sh b/run.sh index ca5e7d9..a52c6e9 100644 --- a/run.sh +++ b/run.sh @@ -1,3 +1,3 @@ #!/bin/bash -docker-compose run --rm kali +docker-compose run --rm --service-ports kali From 376783a88633e15fde9d659af1c56b3dc7cda870 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 01:48:58 +0100 Subject: [PATCH 14/17] Reuse same RUN sections for each build block To minimize the number of resultant layers --- Dockerfile | 45 +++++++++++++++++++++++++++------------------ 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6625930..08ac67f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,46 +6,55 @@ ENV DEBIAN_FRONTEND noninteractive ENV TERM xterm-256color # Install Kali Full -RUN rm -fR /var/lib/apt/ && apt-get clean && apt-get update -y && apt-get install -y software-properties-common kali-linux-full --fix-missing +RUN rm -fR /var/lib/apt/ && \ + apt-get clean && \ + apt-get update -y && \ + apt-get install -y software-properties-common kali-linux-full --fix-missing # Add NodeJS repo -#RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - +# RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - # Some system tools RUN apt-get install -y git colordiff colortail unzip vim tmux xterm zsh curl telnet strace ltrace tmate less build-essential wget python3-setuptools python3-pip tor proxychains proxychains4 zstd net-tools bash-completion iputils-tracepath nodejs npm yarnpkg # Oh-my-git! -RUN git clone https://github.com/arialdomartini/oh-my-git.git ~/.oh-my-git && echo source ~/.oh-my-git/prompt.sh >> /etc/profile +RUN git clone https://github.com/arialdomartini/oh-my-git.git ~/.oh-my-git && \ + echo source ~/.oh-my-git/prompt.sh >> /etc/profile # secLists! RUN git clone https://github.com/danielmiessler/SecLists /usr/share/seclists # w3af -RUN git clone https://github.com/andresriancho/w3af.git /opt/w3af && apt-get install -y libssl-dev libxml2-dev libxslt1-dev zlib1g-dev python-dev python-pybloomfiltermmap ; /opt/w3af/w3af_console ; bash /tmp/w3af_dependency_install.sh ; echo 'export PATH=/opt/w3af:$PATH' >> /etc/profile +RUN git clone https://github.com/andresriancho/w3af.git /opt/w3af && \ + apt-get install -y libssl-dev libxml2-dev libxslt1-dev zlib1g-dev python-dev python-pybloomfiltermmap ; \ + /opt/w3af/w3af_console ; \ + bash /tmp/w3af_dependency_install.sh ; \ + echo 'export PATH=/opt/w3af:$PATH' >> /etc/profile # ngrok -RUN curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | gunzip - > /usr/bin/ngrok -RUN chmod +x /usr/bin/ngrok +RUN curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | gunzip - > /usr/bin/ngrok && \ + chmod +x /usr/bin/ngrok # code-server -RUN mkdir -p /opt/code-server && curl -Ls https://api.github.com/repos/codercom/code-server/releases/latest | grep "browser_download_url.*linux" | cut -d ":" -f 2,3 | tr -d \" | xargs curl -Ls | tar xz -C /opt/code-server --strip 1 && echo 'export PATH=/opt/code-server:$PATH' >> /etc/profile +RUN mkdir -p /opt/code-server && \ + curl -Ls https://api.github.com/repos/codercom/code-server/releases/latest | grep "browser_download_url.*linux" | cut -d ":" -f 2,3 | tr -d \" | xargs curl -Ls | tar xz -C /opt/code-server --strip 1 && \ + echo 'export PATH=/opt/code-server:$PATH' >> /etc/profile # virtualenv config -RUN pip install virtualenvwrapper -RUN echo 'export WORKON_HOME=$HOME/.virtualenvs' >> /etc/profile -RUN echo 'export PROJECT_HOME=$HOME/projects' >> /etc/profile && mkdir /root/projects -RUN echo 'export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh' >> /etc/profile -RUN bash /usr/local/bin/virtualenvwrapper.sh -RUN echo 'source /usr/local/bin/virtualenvwrapper.sh' >> /etc/profile +RUN pip install virtualenvwrapper && \ + echo 'export WORKON_HOME=$HOME/.virtualenvs' >> /etc/profile && \ + echo 'export PROJECT_HOME=$HOME/projects' >> /etc/profile && mkdir /root/projects && \ + echo 'export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh' >> /etc/profile && \ + bash /usr/local/bin/virtualenvwrapper.sh && \ + echo 'source /usr/local/bin/virtualenvwrapper.sh' >> /etc/profile # Tor refresh every 5 requests -RUN echo MaxCircuitDirtiness 10 >> /etc/tor/torrc -# Tor start at init -RUN update-rc.d tor enable +RUN echo MaxCircuitDirtiness 10 >> /etc/tor/torrc && \ + update-rc.d tor enable # Use random proxy chains / round_robin_chain for pc4 -RUN sed -i 's/^strict_chain/#strict_chain/g;s/^#random_chain/random_chain/g' /etc/proxychains.conf -RUN sed -i 's/^strict_chain/#strict_chain/g;s/^round_robin_chain/round_robin_chain/g' /etc/proxychains4.conf +RUN sed -i 's/^strict_chain/#strict_chain/g;s/^#random_chain/random_chain/g' /etc/proxychains.conf && \ + sed -i 's/^strict_chain/#strict_chain/g;s/^round_robin_chain/round_robin_chain/g' /etc/proxychains4.conf # Update DB and clean'up! RUN updatedb && \ From 1b192ea632b3fb8aa34797ad0af99480f9d165b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 01:50:09 +0100 Subject: [PATCH 15/17] Set VERSION_CODENAME=kali-rolling to fix lsb_release identification --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 08ac67f..f841b10 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,8 @@ ENV TERM xterm-256color RUN rm -fR /var/lib/apt/ && \ apt-get clean && \ apt-get update -y && \ - apt-get install -y software-properties-common kali-linux-full --fix-missing + apt-get install -y software-properties-common kali-linux-full --fix-missing && \ + echo 'VERSION_CODENAME=kali-rolling' >> /etc/os-release # Add NodeJS repo # RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - From 3bc00a70c08332010c564b001b4516450ef83eb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 01:50:32 +0100 Subject: [PATCH 16/17] Reactivate latest nodejs11 installation based on their repos --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f841b10..dcb9bb0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ RUN rm -fR /var/lib/apt/ && \ echo 'VERSION_CODENAME=kali-rolling' >> /etc/os-release # Add NodeJS repo -# RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - +RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - # Some system tools RUN apt-get install -y git colordiff colortail unzip vim tmux xterm zsh curl telnet strace ltrace tmate less build-essential wget python3-setuptools python3-pip tor proxychains proxychains4 zstd net-tools bash-completion iputils-tracepath nodejs npm yarnpkg From f08664a9d1d5087ef6e9a8490c6fe151a2d9440b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavi=20Torell=C3=B3?= Date: Mon, 25 Mar 2019 02:24:05 +0100 Subject: [PATCH 17/17] Add access url for vscode-server --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 46a9bcb..413b241 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Be patient, this will install all Kali tools (just for the first install, at ima - [SecLists](https://github.com/danielmiessler/SecLists) at `/usr/share/seclists` - w3af (dropped out of Kali repos) - [code-server](https://github.com/codercom/code-server) - - a VSCode served at `tcp/8443` + - a VSCode served at `tcp/8443` (http://localhost:8443) - [ngrok](http://ngrok.com) - python virtualenvs via `virtualenvwrapper` - projects placed at /`root/projects`