pwndbg + pwntools Docker
2020. 7. 20. 20:48
pwndbg 및 pwntool 세팅
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | FROM ubuntu:20.04 ENV DEBIAN_FRONTEND=noninteractive RUN dpkg --add-architecture i386 RUN apt-get -y update --fix-missing && apt-get -y upgrade RUN apt-get -y install libc6:i386 libncurses5:i386 libstdc++6:i386 RUN apt-get -y install socat gdb git gcc vim RUN apt-get -y install gcc-multilib RUN git clone https://github.com/pwndbg/pwndbg WORKDIR pwndbg RUN ./setup.sh RUN apt-get -y install tmux RUN apt-get -y install python3 libssl-dev libffi-dev build-essential RUN apt-get -y install python3-pip RUN python3 -m pip install --upgrade pwntools RUN apt-get -y install | cs |
gdb-peda 및 pwndbg + pwntool
1 | docker build -t pwn16:0.0 `pwd` | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | FROM ubuntu:16.04 ENV DEBIAN_FRONTEND=noninteractive RUN dpkg --add-architecture i386 RUN apt-get -y update --fix-missing && apt-get -y upgrade RUN apt-get -y install libc6:i386 libncurses5:i386 libstdc++6:i386 RUN apt-get -y install socat gdb git gcc vim RUN apt-get -y install gcc-multilib WORKDIR /root RUN git clone https://github.com/pwndbg/pwndbg WORKDIR /root/pwndbg RUN ./setup.sh WORKDIR /root RUN git clone https://github.com/longld/peda.git ~/peda RUN git clone https://github.com/scwuaptx/Pwngdb.git RUN cp ./Pwngdb/.gdbinit ~/ RUN apt install netcat RUN apt-get -y install tmux RUN apt-get -y install python3 libssl-dev libffi-dev build-essential RUN apt-get -y install python3-pip RUN python3 -m pip install --upgrade pwntools RUN apt-get -y install RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.5 1 | cs |
run 공유폴더 세팅
1 | docker run -v C:/Users/`username`/Downloads/Dreamhack:/root/shared -it --name pwn16 pwn16:0.0 bash | cs |
start 및 연결
1 2 | docker start pwn16 docker exec -it pwn16 /bin/bash | cs |
'Pwnable!!' 카테고리의 다른 글
FSB 스택값만큼 공백 출력 (0) | 2020.04.05 |
---|---|
코드분석 & 취약점분석시 지나치지 말아야할 것 (0) | 2019.12.11 |
libc 주소에서 stack 주소 구하기 (0) | 2019.12.11 |
pwntool aslr 옵션 (0) | 2019.12.11 |
[PIE & Full RELRO] PIE Leak 하기 (0) | 2019.10.10 |