Skip to content

Instantly share code, notes, and snippets.

@cyamax
Last active February 21, 2018 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyamax/bd050da68678e78c86d23bd45ab688e6 to your computer and use it in GitHub Desktop.
Save cyamax/bd050da68678e78c86d23bd45ab688e6 to your computer and use it in GitHub Desktop.
dockerfile/ctf Pwn debug-tools ubuntu 14.04 64bit
FROM ubuntu:14.04
# Debian Installerが使うフロントエンドに関わるエラーを表示しない
ENV DEBIAN_FRONTEND noninteractive
# 初期インストール
RUN dpkg --add-architecture i386
RUN apt-get update -y
RUN apt-get install -y wget git
# x64環境でx86バイナリを動かすパッケージ
RUN apt-get install -y libc6:i386 libncurses5:i386 libstdc++6:i386
RUN apt-get install -y gcc-multilib g++-multilib
#ELF解析用
RUN apt-get install -y binutils
#Python,perl
RUN apt-get install -y python2.7 perl
#ROPガジェット探索用
RUN cd ~
RUN wget https://github.com/downloads/0vercl0k/rp/rp-lin-x86
RUN chmod +x rp-lin-x86
RUN mv rp-lin-x86 /usr/local/bin
#その他
RUN apt-get install -y gdb socat nasm tmux
# gdb-peda導入
RUN git clone https://github.com/longld/peda.git ~/peda
RUN echo "source ~/peda/peda.py" >> ~/.gdbinit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment