Update to current Ubuntu 23.04 and ensure things still work.

This commit is contained in:
Chris Humphries 2023-06-03 06:48:46 -04:00
parent f0710885f4
commit 44818cf9ff
3 changed files with 7 additions and 8 deletions

View File

@ -7,21 +7,20 @@
# Run the docker container -> run.sh
# Get a shell in the container -> shell.sh
FROM ubuntu:21.04
FROM ubuntu:23.04
ENV LC_CTYPE C.UTF-8
ENV DEBIAN_FRONTEND=noninteractive
COPY dot_rizinrc /root/.rizinrc
#COPY dot_bashrc /root/.bashrc
RUN 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 \
apt-get install -y build-essential jq strace ltrace curl wget rubygems gcc dnsutils netcat-traditional gcc-multilib net-tools \
vim gdb gdb-multiarch python3-full python3-pip python3-dev libssl-dev libffi-dev wget git make procps \
libpcre3-dev libdb-dev libxt-dev libxaw7-dev emacs-nox tmux && \
pip install capstone requests pwntools r2pipe keystone-engine unicorn ropper meson ninja && \
pip3 install --break-system-packages capstone requests pwntools r2pipe keystone-engine unicorn ropper meson ninja && \
mkdir /tools && \
cd /tools && git clone https://github.com/JonathanSalwan/ROPgadget && \
cd /tools && git clone https://github.com/niklasb/libc-database && \
cd /tools && git clone https://github.com/hugsy/gef && \
wget -O /root/.gdbinit-gef.py -q https://github.com/hugsy/gef/raw/master/gef.py && \
wget -O /root/.gdbinit-gef.py -q https://raw.githubusercontent.com/hugsy/gef/main/gef.py && \
echo source /root/.gdbinit-gef.py >> /root/.gdbinit && \
cd /tools && git clone --recurse-submodules https://github.com/rizinorg/rizin && \
cd rizin && meson build && ninja -C build && ninja -C build install

View File

@ -1,2 +1,2 @@
#!/bin/sh
docker build -t docker-binaryexploitation:ubuntu20.10 .
docker build -t docker-binaryexploitation:ubuntu23.04 .

2
run.sh
View File

@ -1,2 +1,2 @@
#!/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:ubuntu20.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:ubuntu23.04