Adapt Dockerfile to Containerfile and change base image to bitnami/minidep
This commit is contained in:
parent
f1de404bdf
commit
2290dd0f5a
29
Containerfile
Normal file
29
Containerfile
Normal file
@ -0,0 +1,29 @@
|
||||
# Adapted from https://github.com/deadbeefmonster/docker-binaryexploitation
|
||||
# Bootstrapped from bitnami/minideb
|
||||
# Maintained for software security tasks at university
|
||||
|
||||
FROM bitnami/minideb:latest
|
||||
ENV LC_CTYPE C.UTF-8
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Copy custom configuration files
|
||||
COPY dot_rizinrc /root/.rizinrc
|
||||
|
||||
# Install dependencies and tools
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
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 && \
|
||||
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://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 && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
26
Dockerfile
26
Dockerfile
@ -1,26 +0,0 @@
|
||||
# Bootstrapped from https://github.com/LiveOverflow/pwn_docker_example/blob/master/ctf/Dockerfile
|
||||
# Thanks, LiveOverflow!
|
||||
###
|
||||
|
||||
|
||||
# Build the docker container -> build.sh
|
||||
# Run the docker container -> run.sh
|
||||
# Get a shell in the container -> shell.sh
|
||||
|
||||
FROM ubuntu:23.04
|
||||
ENV LC_CTYPE C.UTF-8
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
COPY dot_rizinrc /root/.rizinrc
|
||||
RUN apt-get update && \
|
||||
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 && \
|
||||
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://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
|
||||
Loading…
x
Reference in New Issue
Block a user