forked from 0xricksanchez/like-dbg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.dockerfile_dbg
More file actions
44 lines (35 loc) · 1.2 KB
/
.dockerfile_dbg
File metadata and controls
44 lines (35 loc) · 1.2 KB
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
34
35
36
37
38
39
40
41
42
43
44
FROM like_dbg_base:latest
LABEL maintainer="Christopher Krah <[email protected]>"
ENV DEBIAN_FRONTEND noninteractive
ARG USER
WORKDIR /home/$USER
COPY io/scripts/.gdbinit .
COPY io/scripts/debugger.sh .
RUN apt-get update && \
set -e && \
apt-get install -yq --no-install-recommends \
libc-dev \
binutils \
libssl-dev \
libffi-dev \
gdb-multiarch \
ltrace \
strace \
ca-certificates \
procps \
libc6-dev && \
python3 -m pip install --upgrade --no-cache-dir pwntools && \
apt-get -y autoremove --purge && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
chown $USER:$USER .gdbinit debugger.sh
ENV LC_ALL=en_US.UTF-8
USER $USER
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN wget -q -O- https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash -s - && \
wget -q -O ~/.gdbinit-gef.py -q https://gef.blah.cat/dev && \
echo source ~/.gdbinit-gef.py >> ~/.gdbinit && \
wget -q -O- https://github.com/hugsy/gef/raw/dev/scripts/gef-extras.sh | bash -s - -b dev && \
echo "export PATH=/home/$USER/.local/bin/:${PATH}" >> /home/$USER/.zshrc
COPY io/scripts/gdb_script .
WORKDIR /io