-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (21 loc) · 1.3 KB
/
Dockerfile
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
27
28
29
30
31
32
33
# docker build -t pwn .
# docker run --rm --publish=2222-2224:2222-2224 -v $PWD:/root/pwd --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -d --name pwn -i pwn
# docker exec -it pwn /bin/bash
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get install -y build-essential curl dnsutils gcc gcc-multilib gdb gdb-multiarch git jq libc6-dev libdb-dev libffi-dev libncurses5:i386 libpcre3-dev libssl-dev libstdc++6:i386 libxaw7-dev libxt-dev ltrace make net-tools netcat procps python python3 python3-dev python3-pip rubygems socat strace tmux tree vim wget wget zsh
RUN pip3 install capstone capstone keystone-engine pwntools pwntools r2pipe requests ropper unicorn
RUN mkdir /root/tools
WORKDIR /root/tools
RUN git clone https://github.com/JonathanSalwan/ROPgadget
#RUN git clone https://github.com/radare/radare2 && cd radare2 && sys/install.sh
#RUN git clone https://github.com/pwndbg/pwndbg && cd pwndbg && git checkout stable && ./setup.sh
RUN git clone https://github.com/niklasb/libc-database && cd libc-database && ./get ubuntu debian
RUN bash -c "$(wget http://gef.blah.cat/sh -O -)"
RUN gem install one_gadget
ADD jeopardy/run.py run.py
RUN echo 'unbind C-b\nset-option -g prefix C-n' > ~/.tmux.conf
WORKDIR /root/pwd