├── .gitattributes ├── 16.04 └── Dockerfile ├── 18.04 └── Dockerfile ├── 19.04 └── Dockerfile ├── 20.04 └── Dockerfile ├── 21.04 └── Dockerfile └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /16.04/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:16.04 2 | WORKDIR /root 3 | ENV LC_CTYPE C.UTF-8 4 | ARG DEBIAN_FRONTEND=noninteractive 5 | 6 | RUN dpkg --add-architecture i386 7 | 8 | RUN apt update -y 9 | RUN apt install software-properties-common -y 10 | RUN apt-add-repository ppa:brightbox/ruby-ng 11 | RUN apt update -y 12 | RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6:i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby2.4 ruby2.4-dev -y 13 | RUN curl -O https://bootstrap.pypa.io/2.7/get-pip.py && python get-pip.py && rm get-pip.py 14 | RUN python -m pip install --upgrade pip && python3 -m pip install pip==20.0.1 15 | RUN python -m pip install --ignore-installed pwntools && python3 -m pip install --ignore-installed pwntools 16 | RUN gem install one_gadget seccomp-tools 17 | 18 | RUN git clone https://github.com/pwndbg/pwndbg .pwndbg 19 | RUN sed -i 's/raise\ Exception(\x27Cannot\ override\ non-whitelisted\ built-in\ command\ \x22%s\x22\x27\ %\ command_name)/pass/g' .pwndbg/pwndbg/commands/__init__.py 20 | RUN python3 -m pip install -r .pwndbg/requirements.txt 21 | RUN git clone https://github.com/hugsy/gef .gef 22 | RUN python3 -m pip install -r .gef/requirements.txt 23 | RUN git clone https://github.com/scwuaptx/Pwngdb .pwngdb 24 | RUN echo "source ~/.pwngdb/pwngdb.py\\nsource ~/.pwngdb/angelheap/gdbinit.py\\n\\npython\\nimport angelheap\\nangelheap.init_angelheap()\\nend\\n\\ndefine init-pwndbg\\nsource ~/.pwndbg/gdbinit.py\\nend\\n\\ndefine init-gef\\nsource ~/.gef/gef.py\\nend" > .gdbinit 25 | RUN echo "#!/bin/sh\\nexec gdb -q -ex init-pwndbg \"\$@\"" > /usr/bin/gdb-pwndbg 26 | RUN echo "#!/bin/sh\\nexec gdb -q -ex init-gef \"\$@\"" > /usr/bin/gdb-gef 27 | RUN chmod +x /usr/bin/gdb-* 28 | 29 | RUN mkdir .zsh 30 | RUN git clone https://github.com/sindresorhus/pure .zsh/pure 31 | RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting 32 | RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc 33 | 34 | RUN mkdir /pwn 35 | WORKDIR /pwn 36 | CMD [ "/bin/zsh" ] 37 | -------------------------------------------------------------------------------- /18.04/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:18.04 2 | WORKDIR /root 3 | ENV LC_CTYPE C.UTF-8 4 | ARG DEBIAN_FRONTEND=noninteractive 5 | 6 | RUN dpkg --add-architecture i386 7 | 8 | RUN apt update -y 9 | RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full -y 10 | 11 | RUN wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc-bin_2.27-3ubuntu1.2_amd64.deb 12 | RUN wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc-dev-bin_2.27-3ubuntu1.2_amd64.deb 13 | RUN wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dbg_2.27-3ubuntu1.2_amd64.deb 14 | RUN wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.27-3ubuntu1.2_amd64.deb 15 | RUN wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-i386_2.27-3ubuntu1.2_amd64.deb 16 | RUN wget http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.27-3ubuntu1.2_amd64.deb 17 | 18 | RUN dpkg -i libc-bin_2.27-3ubuntu1.2_amd64.deb 19 | RUN dpkg -i libc-dev-bin_2.27-3ubuntu1.2_amd64.deb 20 | RUN dpkg -i libc6_2.27-3ubuntu1.2_amd64.deb 21 | RUN dpkg -i libc6-dev_2.27-3ubuntu1.2_amd64.deb 22 | RUN dpkg -i libc6-i386_2.27-3ubuntu1.2_amd64.deb 23 | RUN dpkg -i libc6-dbg_2.27-3ubuntu1.2_amd64.deb 24 | 25 | RUN curl -O https://bootstrap.pypa.io/2.7/get-pip.py && python get-pip.py && rm get-pip.py 26 | RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip 27 | RUN python -m pip install --ignore-installed pwntools 28 | RUN gem install one_gadget seccomp-tools 29 | 30 | RUN git clone https://github.com/pwndbg/pwndbg .pwndbg 31 | RUN sed -i 's/raise\ Exception(\x27Cannot\ override\ non-whitelisted\ built-in\ command\ \x22%s\x22\x27\ %\ command_name)/pass/g' .pwndbg/pwndbg/commands/__init__.py 32 | RUN python3 -m pip install -r .pwndbg/requirements.txt 33 | RUN git clone https://github.com/hugsy/gef .gef 34 | RUN python3 -m pip install -r .gef/requirements.txt 35 | RUN git clone https://github.com/scwuaptx/Pwngdb .pwngdb 36 | RUN echo "source ~/.pwngdb/pwngdb.py\\nsource ~/.pwngdb/angelheap/gdbinit.py\\n\\npython\\nimport angelheap\\nangelheap.init_angelheap()\\nend\\n\\ndefine init-pwndbg\\nsource ~/.pwndbg/gdbinit.py\\nend\\n\\ndefine init-gef\\nsource ~/.gef/gef.py\\nend" > .gdbinit 37 | RUN echo "#!/bin/sh\\nexec gdb -q -ex init-pwndbg \"\$@\"" > /usr/bin/gdb-pwndbg 38 | RUN echo "#!/bin/sh\\nexec gdb -q -ex init-gef \"\$@\"" > /usr/bin/gdb-gef 39 | RUN chmod +x /usr/bin/gdb-* 40 | 41 | RUN mkdir .zsh 42 | RUN git clone https://github.com/sindresorhus/pure .zsh/pure 43 | RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting 44 | RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc 45 | 46 | RUN mkdir /pwn 47 | WORKDIR /pwn 48 | CMD [ "/bin/zsh" ] 49 | -------------------------------------------------------------------------------- /19.04/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:19.04 2 | WORKDIR /root 3 | ENV LC_CTYPE C.UTF-8 4 | ARG DEBIAN_FRONTEND=noninteractive 5 | 6 | RUN dpkg --add-architecture i386 7 | 8 | RUN sed -i -re 's/([a-z]{2}.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list 9 | RUN apt update -y 10 | RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6:i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full -y 11 | RUN curl -O https://bootstrap.pypa.io/2.7/get-pip.py && python get-pip.py && rm get-pip.py 12 | RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip 13 | RUN python -m pip install --ignore-installed pwntools 14 | RUN gem install one_gadget seccomp-tools 15 | 16 | RUN git clone https://github.com/pwndbg/pwndbg .pwndbg 17 | RUN sed -i 's/raise\ Exception(\x27Cannot\ override\ non-whitelisted\ built-in\ command\ \x22%s\x22\x27\ %\ command_name)/pass/g' .pwndbg/pwndbg/commands/__init__.py 18 | RUN python3 -m pip install -r .pwndbg/requirements.txt 19 | RUN git clone https://github.com/hugsy/gef .gef 20 | RUN python3 -m pip install -r .gef/requirements.txt 21 | RUN git clone https://github.com/scwuaptx/Pwngdb .pwngdb 22 | RUN echo "source ~/.pwngdb/pwngdb.py\\nsource ~/.pwngdb/angelheap/gdbinit.py\\n\\npython\\nimport angelheap\\nangelheap.init_angelheap()\\nend\\n\\ndefine init-pwndbg\\nsource ~/.pwndbg/gdbinit.py\\nend\\n\\ndefine init-gef\\nsource ~/.gef/gef.py\\nend" > .gdbinit 23 | RUN echo "#!/bin/sh\\nexec gdb -q -ex init-pwndbg \"\$@\"" > /usr/bin/gdb-pwndbg 24 | RUN echo "#!/bin/sh\\nexec gdb -q -ex init-gef \"\$@\"" > /usr/bin/gdb-gef 25 | RUN chmod +x /usr/bin/gdb-* 26 | 27 | RUN mkdir .zsh 28 | RUN git clone https://github.com/sindresorhus/pure .zsh/pure 29 | RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting 30 | RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc 31 | 32 | RUN mkdir /pwn 33 | WORKDIR /pwn 34 | CMD [ "/bin/zsh" ] 35 | -------------------------------------------------------------------------------- /20.04/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | WORKDIR /root 3 | ENV LC_CTYPE C.UTF-8 4 | ARG DEBIAN_FRONTEND=noninteractive 5 | 6 | RUN dpkg --add-architecture i386 7 | 8 | RUN apt update -y 9 | RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools python-capstone libssl-dev libffi-dev build-essential libc6-i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full -y 10 | RUN curl -O https://bootstrap.pypa.io/2.7/get-pip.py && python get-pip.py && rm get-pip.py 11 | RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip 12 | RUN python -m pip install --ignore-installed pwntools 13 | RUN gem install one_gadget seccomp-tools 14 | 15 | RUN git clone https://github.com/pwndbg/pwndbg .pwndbg 16 | RUN sed -i 's/raise\ Exception(\x27Cannot\ override\ non-whitelisted\ built-in\ command\ \x22%s\x22\x27\ %\ command_name)/pass/g' .pwndbg/pwndbg/commands/__init__.py 17 | RUN python3 -m pip install -r .pwndbg/requirements.txt 18 | RUN git clone https://github.com/hugsy/gef .gef 19 | RUN python3 -m pip install -r .gef/requirements.txt 20 | RUN git clone https://github.com/scwuaptx/Pwngdb .pwngdb 21 | RUN echo "source ~/.pwngdb/pwngdb.py\\nsource ~/.pwngdb/angelheap/gdbinit.py\\n\\npython\\nimport angelheap\\nangelheap.init_angelheap()\\nend\\n\\ndefine init-pwndbg\\nsource ~/.pwndbg/gdbinit.py\\nend\\n\\ndefine init-gef\\nsource ~/.gef/gef.py\\nend" > .gdbinit 22 | RUN echo "#!/bin/sh\\nexec gdb -q -ex init-pwndbg \"\$@\"" > /usr/bin/gdb-pwndbg 23 | RUN echo "#!/bin/sh\\nexec gdb -q -ex init-gef \"\$@\"" > /usr/bin/gdb-gef 24 | RUN chmod +x /usr/bin/gdb-* 25 | 26 | RUN mkdir .zsh 27 | RUN git clone https://github.com/sindresorhus/pure .zsh/pure 28 | RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting 29 | RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc 30 | 31 | RUN mkdir /pwn 32 | WORKDIR /pwn 33 | CMD [ "/bin/zsh" ] 34 | -------------------------------------------------------------------------------- /21.04/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:21.04 2 | WORKDIR /root 3 | ENV LC_CTYPE C.UTF-8 4 | ARG DEBIAN_FRONTEND=noninteractive 5 | 6 | RUN dpkg --add-architecture i386 7 | 8 | RUN apt update -y 9 | RUN apt install python python-dev python-setuptools python3 python3-pip python3-dev python3-setuptools libssl-dev libffi-dev build-essential libc6-i386 libc6-dbg gcc-multilib make gcc netcat git curl wget gdb vim nano zsh ruby-full -y 10 | RUN curl -O https://bootstrap.pypa.io/2.7/get-pip.py && python get-pip.py && rm get-pip.py 11 | RUN python -m pip install --upgrade pip && python3 -m pip install --upgrade pip 12 | RUN python -m pip install --ignore-installed pwntools 13 | RUN gem install one_gadget seccomp-tools 14 | 15 | RUN git clone https://github.com/pwndbg/pwndbg .pwndbg 16 | RUN sed -i 's/raise\ Exception(\x27Cannot\ override\ non-whitelisted\ built-in\ command\ \x22%s\x22\x27\ %\ command_name)/pass/g' .pwndbg/pwndbg/commands/__init__.py 17 | RUN python3 -m pip install -r .pwndbg/requirements.txt 18 | RUN git clone https://github.com/hugsy/gef .gef 19 | RUN python3 -m pip install -r .gef/requirements.txt 20 | RUN git clone https://github.com/scwuaptx/Pwngdb .pwngdb 21 | RUN echo "source ~/.pwngdb/pwngdb.py\\nsource ~/.pwngdb/angelheap/gdbinit.py\\n\\npython\\nimport angelheap\\nangelheap.init_angelheap()\\nend\\n\\ndefine init-pwndbg\\nsource ~/.pwndbg/gdbinit.py\\nend\\n\\ndefine init-gef\\nsource ~/.gef/gef.py\\nend" > .gdbinit 22 | RUN echo "#!/bin/sh\\nexec gdb -q -ex init-pwndbg \"\$@\"" > /usr/bin/gdb-pwndbg 23 | RUN echo "#!/bin/sh\\nexec gdb -q -ex init-gef \"\$@\"" > /usr/bin/gdb-gef 24 | RUN chmod +x /usr/bin/gdb-* 25 | 26 | RUN mkdir .zsh 27 | RUN git clone https://github.com/sindresorhus/pure .zsh/pure 28 | RUN git clone https://github.com/zdharma/fast-syntax-highlighting .zsh/fast-syntax-highlighting 29 | RUN echo "ZSH_THEME=""\\nsource /root/.zsh/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh\\nfpath+=/root/.zsh/pure\\nautoload -U promptinit; promptinit\\nprompt pure" > .zshrc 30 | 31 | RUN mkdir /pwn 32 | WORKDIR /pwn 33 | CMD [ "/bin/zsh" ] 34 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # pwn-docker 2 | 3 | --------------------------------------------------------------------------------