-
Notifications
You must be signed in to change notification settings - Fork 112
/
Dockerfile
59 lines (53 loc) · 1.69 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
FROM debian:jessie
#Special thanks to blacktop for creating this docker config https://github.com/blacktop
MAINTAINER mitrecnd, https://github.com/mitrecnd
# Copy source code to tmp folder
COPY . /tmp
RUN chmod -R 755 /tmp
# Install ChopShop Required Dependencies
RUN buildDeps='apt-utils \
autoconf \
automake \
build-essential \
git-core \
libemu-dev \
libmagic-dev \
libpcre3-dev \
libssl-dev \
python-dev \
python-setuptools' \
&& set -x \
&& echo "[INFO] Installing Dependancies..." \
&& apt-get -q update \
&& apt-get install -y $buildDeps \
ca-certificates \
libpcap-dev \
libpcre3 \
libtool \
python \
python-yara \
swig \
python-m2crypto \
yara --no-install-recommends \
libemu-dev \
&& easy_install pymongo \
pycrypto \
dnslib \
pylibemu \
hpack \
&& echo "[INFO] Installing Modules..." \
&& cd /tmp \
&& docker/install/pynids.sh \
&& docker/install/htpy.sh \
&& docker/install/yaraprocessor.sh \
&& echo "[INFO] Installing ChopShop..." \
&& make \
&& make install \
&& echo "[INFO] Remove Build Dependancies..." \
&& apt-get autoremove --purge -y $buildDeps \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
VOLUME ["/pcap"]
WORKDIR /pcap
ENTRYPOINT ["/usr/local/bin/chopshop"]
CMD ["-h"]