Skip to content

Commit

Permalink
Merge pull request #2 from XaviTorello/feature/improve_build
Browse files Browse the repository at this point in the history
Improve image with new tools and tor
  • Loading branch information
XaviTorello authored Jan 13, 2019
2 parents 59eb0e6 + cf71bf7 commit b7bf6da
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,28 @@ 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
RUN apt-get install -y git colordiff colortail unzip vim tmux xterm zsh curl telnet strace ltrace tmate less
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 zstd
RUN git clone https://github.com/danielmiessler/SecLists /usr/share/seclists
RUN updatedb

CMD ["/bin/bash"]
# ngrok
RUN curl https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | gunzip - > /usr/bin/ngrok
RUN chmod +x /usr/bin/ngrok

# 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

# Tor refresh every 5 requests
RUN echo MaxCircuitDirtiness 10 >> /etc/tor/torrc
# Tor start at init
RUN update-rc.d tor enable

# 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

CMD ["/bin/bash", "--init-file", "/etc/profile"]

0 comments on commit b7bf6da

Please sign in to comment.