dockerfile
ubuntu 20.04
FROM ubuntu:20.04
WORKDIR /root
ENV LC_CTYPE C.UTF-8
ARG DEBIAN_FRONTEND=noninteractive
RUN dpkg --add-architecture i386
RUN apt update -y
RUN apt install 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
RUN apt-get update
RUN apt-get install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade pwntools
RUN apt-get install git gdb gcc-multilib build-essential
RUN git clone https://github.com/longld/peda.git ~/peda
RUN git clone https://github.com/scwuaptx/Pwngdb.git
RUN cp ~/Pwngdb/.gdbinit ~/
RUN echo "alias python='python3'" >> .bashrc
RUN mkdir /pwn
WORKDIR /pwn
ubuntu 18.04
FROM ubuntu:18.04
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ Asia/Seoul
ENV PYTHONIOENCODING UTF-8
ENV LC_CTYPE C.UTF-8
WORKDIR /root
RUN apt-get update && apt-get install -y netcat
RUN apt update
RUN apt install curl git wget file zsh sudo vim libssl-dev libffi-dev build-essential libssl-dev libc6-i386 libc6-dbg gcc-multilib make gcc gdb -y
RUN apt install python python-pip git curl wget vim zsh gdb python3 python3-pip -y
RUN dpkg --add-architecture i386 &&\
apt-get update
RUN apt-get install python3-dev ruby binutils-multiarch -y
RUN apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 ruby-full python-dev python-setuptools python-capstone socat -y
RUN gem install one_gadget seccomp-tools
RUN python3 -m pip install --upgrade pip
RUN apt-get update
RUN apt-get install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install --upgrade pwntools
RUN apt-get install git gdb gcc-multilib build-essential
RUN git clone https://github.com/longld/peda.git ~/peda
RUN git clone https://github.com/scwuaptx/Pwngdb.git
RUN cp ~/Pwngdb/.gdbinit ~/
RUN echo "alias python='python3'" >> .bashrc
RUN mkdir /pwn
WORKDIR /pwn