Last active
June 24, 2017 17:02
-
-
Save grittyninja/ae571e0fae663f32f96a266a8f3eded0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install https://github.com/Lokaltog/powerline-fonts | |
# save as 'Dockerfile' | |
# run docker without sudo, run 'sudo gpasswd -a $USER docker' | |
# docker build -t pwnbox . | |
FROM gliderlabs/alpine:3.4 | |
# update packages | |
RUN apk update | |
# install dev essential | |
RUN apk add --update python \ | |
py-pip \ | |
python-dev \ | |
python3 \ | |
socat \ | |
git \ | |
build-base \ | |
alpine-sdk \ | |
strace \ | |
ltrace \ | |
perl \ | |
ruby \ | |
zsh \ | |
fish \ | |
bash \ | |
htop \ | |
tmux \ | |
vim \ | |
libffi-dev \ | |
linux-headers \ | |
openssl \ | |
openssl-dev \ | |
apache2 \ | |
xz-libs \ | |
xz-dev | |
# install php | |
RUN apk add php5-fpm php5-mcrypt php5-soap php5-openssl php5-gmp php5-pdo_odbc php5-json php5-dom php5-pdo php5-zip php5-mysql php5-mysqli php5-sqlite3 php5-apcu php5-pdo_pgsql php5-bcmath php5-gd php5-xcache php5-odbc php5-pdo_mysql php5-pdo_sqlite php5-gettext php5-xmlreader php5-xmlrpc php5-bz2 php5-memcache php5-mssql php5-iconv php5-pdo_dblib php5-curl php5-ctype | |
# python pip and asciinema | |
RUN pip install --upgrade pip | |
RUN pip3 install --upgrade pip | |
RUN pip3 install asciinema | |
# run tmux when startup | |
RUN echo 'tmux' >> /etc/profile | |
# install CTF tools | |
RUN pip2 install pwntools -v | |
RUN pip2 install angr -v | |
RUN git clone https://github.com/longld/peda.git ~/.peda | |
RUN echo "source ~/.peda/peda.py" >> ~/.gdbinit | |
RUN cd .z3; python scripts/mk_make.py; cd build; make; make install; cd / | |
RUN git clone https://github.com/trailofbits/manticore.git ~/.manticore; cd ~/.manticore; pip2 install . -v ; cd / | |
RUN pip install ropgadget | |
RUN git clone https://github.com/devttys0/binwalk.git ~/.binwalk; cd ~/.binwalk; python setup.py install; cd / | |
RUN git clone https://github.com/radare/radare2 ~/.radare2; cd ~/.radare2; ./sys/install.sh; make install; cd / | |
# | |
# install oh my fish - agnoster | |
RUN curl -L https://get.oh-my.fish | fish | |
RUN omg install agnoster; omf theme agnoster | |
RUN echo 'fish' >> /etc/profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment