mirror of
https://github.com/deadbeefmonster/docker-binaryexploitation.git
synced 2025-11-09 04:13:58 +01:00
Ubuntu 19.10 to 20.10, no more python 2, replace radare2 with rizin, remove i386 arch
This commit is contained in:
parent
0ea37acce8
commit
a28a2cb52a
25
Dockerfile
25
Dockerfile
@ -7,24 +7,19 @@
|
|||||||
# Run the docker container -> run.sh
|
# Run the docker container -> run.sh
|
||||||
# Get a shell in the container -> shell.sh
|
# Get a shell in the container -> shell.sh
|
||||||
|
|
||||||
FROM ubuntu:19.10
|
FROM ubuntu:20.10
|
||||||
ENV LC_CTYPE C.UTF-8
|
ENV LC_CTYPE C.UTF-8
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
COPY dot_radare2rc /root/.radare2rc
|
COPY dot_radare2rc /root/.radare2rc
|
||||||
#COPY dot_bashrc /root/.bashrc
|
#COPY dot_bashrc /root/.bashrc
|
||||||
RUN dpkg --add-architecture i386 && \
|
RUN apt-get update && \
|
||||||
apt-get update && \
|
|
||||||
apt-get install -y build-essential jq strace ltrace curl wget rubygems gcc dnsutils netcat gcc-multilib net-tools \
|
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 \
|
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 && \
|
libpcre3-dev libdb-dev libxt-dev libxaw7-dev emacs-nox && \
|
||||||
pip install capstone requests pwntools r2pipe && \
|
pip install capstone requests pwntools r2pipe pwntools keystone-engine unicorn capstone ropper meson ninja && \
|
||||||
pip3 install pwntools keystone-engine unicorn capstone ropper && \
|
mkdir /tools && \
|
||||||
mkdir tools && cd tools && \
|
cd /tools && git clone https://github.com/JonathanSalwan/ROPgadget && \
|
||||||
git clone https://github.com/JonathanSalwan/ROPgadget && \
|
cd /tools && git clone https://github.com/niklasb/libc-database && \
|
||||||
git clone https://github.com/radare/radare2 && \
|
cd /tools && git clone https://github.com/hugsy/gef && sh -c "$(curl -fsSL http://gef.blah.cat/sh)" && \
|
||||||
cd .. && git clone https://github.com/pwndbg/pwndbg && cd pwndbg && git checkout stable && ./setup.sh && \
|
cd /tools && git clone --recurse-submodules https://github.com/rizinorg/rizin && \
|
||||||
cd .. && git clone https://github.com/niklasb/libc-database && \
|
cd rizin && meson build && ninja -C build && ninja -C build install
|
||||||
gem install one_gadget
|
|
||||||
|
|
||||||
|
|
||||||
# radare2 -> cd radare2 && sys/install.sh
|
|
||||||
|
|||||||
2
build.sh
2
build.sh
@ -1,2 +1,2 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
docker build -t docker-binaryexploitation:ubuntu19.10 .
|
docker build -t docker-binaryexploitation:ubuntu20.10 .
|
||||||
|
|||||||
2
run.sh
2
run.sh
@ -1,2 +1,2 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
docker run --rm -v "$(pwd)/host:/host" -v "$(pwd)/logs:/logs" --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -d --name docker-binaryexploitation -i docker-binaryexploitation:ubuntu19.10
|
docker run --rm -v "$(pwd)/host:/host" -v "$(pwd)/logs:/logs" --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -d --name docker-binaryexploitation -i docker-binaryexploitation:ubuntu20.10
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user