Sign inSign up

xinali/binbox

By xinali

Updated almost 8 years ago

docker for pwn

Image
0

68

xinali/binbox repository overview

docker for pwn

FROM ubuntu:latest

MAINTAINER xina1i [email protected]

ENV DEBIAN_FRONTEND noninteractive
# prequirements
RUN apt update && apt upgrade -y && apt install -y python python-pip python3-pip git vim curl wget sudo zsh wget curl


# install libheap                                                                                                          
RUN apt install -y libc6-dbg && git clone https://github.com/cloudburst/libheap /opt/libheap && pip3 install /opt/libheap/  

# install pwntools
RUN apt install -y python2.7 python-pip python-dev git libssl-dev libffi-dev build-essential && pip install pwntools


# install some python packages
RUN pip3 install ipython requests keystone-engine capstone unicorn ropper retdec-python 

# install gef 
RUN git clone https://github.com/hugsy/gef.git /opt/gef && echo "source /opt/gef/gef.py" >> ~/.gdbinit

# install peda
RUN git clone https://github.com/longld/peda.git /opt/peda && echo "source /opt/peda/peda.py" >> ~/.gdbinit

#install pwndbg
RUN git clone https://github.com/pwndbg/pwndbg.git /opt/pwndbg && \
    cd /opt/pwndbg && ./setup.sh && cd ~ 
    

# zsh
RUN wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O /tmp/install.sh && bash /tmp/install.sh
RUN wget https://gist.githubusercontent.com/xinali/60e6a283f9ce6e9cb6f575928e26be67/raw/7ebc737fb7a5567b80399b5c474791ef6235515d/zshrc \
        -O ~/.zshrc

# vim
RUN wget https://gist.githubusercontent.com/xinali/e5ba9e33d2ab942d35dda7a0bfa98029/raw/d871f503e2aee014def04947d8c81c6d426769e7/vimrc \
        -O ~/.vimrc
        

# install vim-plug
RUN curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    
# 1. install keystone-engine
RUN apt install -y g++ gdb  gcc cmake python-capstone
RUN git clone https://github.com/keystone-engine/keystone /opt/keystone && cd /opt/keystone && mkdir build  \
                && cd build && ../make-share.sh && make install && ldconfig


# install radare2
RUN git clone https://github.com/radare/radare2.git /opt/radare2 && \
        cd /opt/radare2 && \
                git fetch --tags && \
                git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) && \
                ./sys/install.sh  && \
                make symstall && cd ~

# set locale to en_US.UTF-8
RUN apt install -y locales && locale-gen en_US.UTF-8

WORKDIR /root
ENTRYPOINT ["zsh"]

Tag summary

Content type

Image

Digest

Size

631.1 MB

Last updated

almost 8 years ago

docker pull xinali/binbox:20181116