-
Notifications
You must be signed in to change notification settings - Fork 24
/
Dockerfile
58 lines (51 loc) · 1.55 KB
/
Dockerfile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# A portable reverse engineering environment using docker
FROM debian:stable-slim
MAINTAINER Clément Boin
ARG username="re"
ARG password="docker"
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get install -y --no-install-recommends apt-utils \
&& apt-get install -y \
build-essential \
gdb \
radare2 \
strace \
ltrace \
xxd \
bsdiff \
libcapstone-dev \
libcapstone3 \
flasm \
python-pip \
python3 \
python3-pip \
libffi-dev \
git \
vim \
wget \
llvm \
clang \
lldb \
volatility \
binwalk \
python3-binwalk \
sudo \
locales \
tmux \
gcc-multilib
# Set up locale for tmux
RUN sed -i '/en_US.UTF-8/s/^#//g' /etc/locale.gen
RUN locale-gen
# Create a standard user
RUN useradd -ms /bin/bash ${username}
RUN echo "${username}:${password}" | chpasswd
RUN adduser ${username} sudo
USER ${username}
WORKDIR /home/${username}
# Install gdb-peda
RUN git clone https://github.com/longld/peda.git ~/peda \
&& echo "source ~/peda/peda.py" >> ~/.gdbinit \
&& echo "DONE! debug your program with gdb and enjoy"
# Install angr
RUN pip install angr