Public Repository

Last pushed: 6 months ago
Short Description
Short description is empty for this repo.
Full Description

FROM ubuntu:latest

LABEL Maintainers = 'Nuno Azevedo nunoaz95@gmail.com, João Paulo joaolrpaulo@gmail.com'

RUN apt-get update && apt-get install -y --no-install-recommends \
ssh zsh tmux man ca-certificates libssl-dev lib32ncurses5 curl wget iputils-ping netcat make gcc clang \
python python-dev python-pip python3 python3-dev python3-pip nginx sqlite3 git nano gdb file && \
rm -rf /var/lib/apt/lists/ /tmp/ /var/tmp/*

RUN pip install --upgrade pip
RUN pip install setuptools
RUN pip install ipython pwntools
RUN pip3 install --upgrade pip
RUN pip3 install setuptools
RUN pip3 install ipython

ENV ZSH_CUSTOM /root/.oh-my-zsh/custom
ENV ZSH_THEMES /root/.oh-my-zsh/themes

RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -q -O - | zsh 2> /dev/null || true

ADD https://gist.githubusercontent.com/nuno-azevedo/b6f9b965ca53ab4a7224459fd7cab3ed/raw/honukai.zsh-theme $ZSH_THEMES
RUN sed -i 's/ZSH_THEME=.*/ZSH_THEME="honukai"/g' /root/.zshrc

RUN git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
RUN git clone https://github.com/zsh-users/zsh-history-substring-search $ZSH_CUSTOM/plugins/zsh-history-substring-search
RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
RUN sed -i 's/plugins=.*/plugins=(colored-man-pages colorize extract urltools z git pip \
python zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting)/g' /root/.zshrc

RUN { \
printf '\nZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=cyan"\n\n'; \
printf 'function cd {\n'; \
printf ' builtin cd $@ && ls\n'; \
printf '}\n\n'; \
} >> /root/.zshrc

RUN mkdir -p /root/xstf/ctf-tools

RUN git clone https://github.com/longld/peda.git /root/xstf/ctf-tools/peda && \
echo 'source /root/xstf/ctf-tools/peda/peda.py' >> /root/.gdbinit

RUN rm -rf /root/bin /root/.cache /root/.wget-hsts /root/.zcompdump* /root/.zsh-update /root/.zsh_history

EXPOSE 22 80

WORKDIR /root

ENTRYPOINT /usr/bin/zsh

Docker Pull Command
Owner
nunoaz

Comments (0)