-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
68 lines (60 loc) · 1.7 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
65
66
67
68
FROM phusion/baseimage:master-amd64
MAINTAINER skysider <skysider@163.com>
RUN apt-get -y update && \
apt-get install -y \
pkg-config \
libglib2.0-dev \
gdb-multiarch \
'binfmt*' \
libc6-mipsel-cross \
libc6-dbg-mipsel-cross \
libc6-mips-cross \
libc6-dbg-mips-cross \
libc6-mips64el-cross \
libc6-dbg-mips64el-cross \
libc6-mips64-cross \
libc6-dbg-mips64-cross \
libc6-armel-cross \
libc6-dbg-armel-cross \
libc6-armhf-cross \
libc6-dbg-armhf-cross \
libc6-arm64-cross \
libc6-dbg-arm64-cross \
python3-dev \
python3-pip \
socat \
cmake \
wget \
git \
file \
ssh \
tmux \
libffi-dev \
libssl-dev \
build-essential \
bison \
libpixman-1-dev \
flex \
vim && \
rm -rf /var/lib/apt/list/*
RUN wget https://download.qemu.org/qemu-4.0.0.tar.xz && \
tar xvJf qemu-4.0.0.tar.xz && cd qemu-4.0.0 && \
./configure --target-list=aarch64-linux-user,arm-linux-user,armeb-linux-user,mips64-linux-user,mips64el-linux-user,mipsel-linux-user,mips-linux-user \
--enable-debug \
--python=/usr/bin/python3 && \
make && make install && cd .. && rm -rf qemu-4.0.0
RUN python3 -m pip install -U pip && \
python3 -m pip install --no-cache-dir \
pwntools \
ropper
RUN wget -q -O- https://github.com/hugsy/gef/raw/master/scripts/gef.sh | sh
RUN mkdir /usr/gnemul && \
ln -s /usr/mipsel-linux-gnu /usr/gnemul/qemu-mipsel && \
ln -s /usr/mips-linux-gnu /usr/gnemul/qemu-mips && \
ln -s /usr/mips64el-linux-gnuabi64 /usr/gnemul/qemu-mips64el && \
ln -s /usr/mips64-linux-gnuabi64 /usr/gnemul/qemu-mips64 && \
ln -s /usr/arm-linux-gnueabi /usr/gnemul/qemu-arm && \
ln -s /usr/aarch64-linux-gnu /usr/gnemul/qemu-aarch64
WORKDIR /work/
COPY listen_program.sh /work/
CMD ["/sbin/my_init"]