Skip to content

Instantly share code, notes, and snippets.

@blluv
Last active May 25, 2023 02:36
Show Gist options
  • Save blluv/68f7f3f415b43b4d6047394bec9e240e to your computer and use it in GitHub Desktop.
Save blluv/68f7f3f415b43b4d6047394bec9e240e to your computer and use it in GitHub Desktop.
pwn docker
FROM --platform=amd64 ubuntu:18.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ Asia/Seoul
ENV PYTHONIOENCODING UTF-8
ENV LC_CTYPE C.UTF-8
WORKDIR /root
RUN dpkg --add-architecture i386 && \
apt update && \
apt install -y netcat ruby-full vim git gcc ssh curl wget gdb sudo zsh python3 python3-dev python3-pip python3-setuptools libffi-dev build-essential libssl-dev libc6-i386 libc6:i386 libc6-dbg gcc-multilib make && \
pip3 install -U pip && \
pip3 install unicorn keystone-engine pwntools capstone ropper ropgadget && \
wget -O ~/.gdbinit-gef.py -q https://gef.blah.cat/py && \
echo source ~/.gdbinit-gef.py >> ~/.gdbinit && \
gem install one_gadget -v 1.7.3
RUN mkdir /pwn
WORKDIR /pwn
CMD [ "/bin/bash" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment