-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathDockerfile
64 lines (53 loc) · 1.6 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
59
60
61
62
63
64
FROM debian
MAINTAINER Tim Blazytko <[email protected]>
RUN apt-get update -y && \
# general dependencies
apt-get install -y wget less vim git htop build-essential screen psmisc && \
# specific dependencies
apt-get install -y python-dev python-setuptools ipython python-pip libglib2.0-dev libffi-dev && \
pip install orderedset && \
# unicorn
cd /usr/src && \
git clone https://github.com/unicorn-engine/unicorn.git && \
cd /usr/src/unicorn && \
./make.sh && ./make.sh install && \
cd /usr/src/unicorn/bindings/python && \
make install && \
# capstone
cd /usr/src && \
git clone https://github.com/aquynh/capstone.git && \
cd /usr/src/capstone && \
git checkout next && \
make && \
make install && \
cd /usr/src/capstone/bindings/python && \
make && \
make install && \
# miasm
cd /usr/src && \
git clone https://github.com/serpilliere/elfesteem.git elfesteem && \
cd elfesteem && \
python2 setup.py build && \
python2 setup.py install && \
cd .. && \
git clone https://github.com/cea-sec/miasm.git && \
cd miasm && \
python2 setup.py build && \
python2 setup.py install && \
# z3
cd /usr/src && \
git clone https://github.com/Z3Prover/z3.git && \
cd z3 && \
python scripts/mk_make.py --python && \
cd build && \
make -j 5 && \
make install && \
# cleanup
rm -rf /usr/src/* && \
rm -rf /var/cache/apt/archives/* && \
# set root password to "root"
echo "root:root" | chpasswd && \
# add user
adduser --disabled-password --gecos '' docker
USER docker
WORKDIR /home/docker