diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b081a90 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +# Bootstrapped from https://github.com/LiveOverflow/pwn_docker_example/blob/master/ctf/Dockerfile +# Thanks, LiveOverflow! +### + + +# docker build -t docker-binaryexploitation:ubuntu19.10 . +# docker run --rm -v $PWD:/pwd --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -d --name docker-binaryexploitation -i docker-binaryexploitation:ubuntu19.10 +# docker exec -it docker-binaryexploitation /bin/bash + +FROM ubuntu:19.10 +ENV LC_CTYPE C.UTF-8 +ENV DEBIAN_FRONTEND=noninteractive +COPY dot_radare2rc /root/.radare2rc +RUN dpkg --add-architecture i386 && \ +apt-get update && \ +apt-get install -y build-essential jq strace ltrace curl wget rubygems gcc dnsutils netcat gcc-multilib net-tools vim gdb gdb-multiarch python python3 python3-pip python3-dev libssl-dev libffi-dev wget git make procps libpcre3-dev libdb-dev libxt-dev libxaw7-dev python-pip libc6:i386 libncurses5:i386 libstdc++6:i386 emacs-nox && \ +pip install capstone requests pwntools r2pipe && \ +pip3 install pwntools keystone-engine unicorn capstone ropper && \ +mkdir tools && cd tools && \ +git clone https://github.com/JonathanSalwan/ROPgadget && \ +git clone https://github.com/radare/radare2 && cd radare2 && sys/install.sh && \ +cd .. && git clone https://github.com/pwndbg/pwndbg && cd pwndbg && git checkout stable && ./setup.sh && \ +cd .. && git clone https://github.com/niklasb/libc-database && \ +gem install one_gadget + diff --git a/dot_radare2rc b/dot_radare2rc new file mode 100644 index 0000000..55f2815 --- /dev/null +++ b/dot_radare2rc @@ -0,0 +1,5 @@ +e asm.cmtright=true +e asm.pseudo = true +eco darkda +e scr.utf8 = true +e dbg.slow = true \ No newline at end of file