-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
115 lines (84 loc) · 2.64 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
FROM python:2.7.14-jessie
ENV DEBIAN_FRONTEND noninteractive
ENV HASHCAT_VERSION hashcat-5.1.0
ENV HASHCAT_UTILS_VERSION 1.9
# Intall requirements
RUN echo "deb-src http://deb.debian.org/debian jessie main" >> /etc/apt/sources.list
RUN apt-get update && apt-get upgrade -y
RUN apt-get install ca-certificates gcc openssl make kmod nano wget p7zip build-essential libsqlite3-dev libpcap0.8-dev libpcap-dev sqlite3 pkg-config libnl-genl-3-dev libssl-dev net-tools iw ethtool usbutils pciutils wireless-tools git curl wget unzip macchanger pyrit tshark -y
RUN apt-get build-dep aircrack-ng -y
#Install Aircrack from Source
RUN wget https://download.aircrack-ng.org/aircrack-ng-1.5.2.tar.gz
RUN tar xzvf aircrack-ng-1.5.2.tar.gz
WORKDIR /aircrack-ng-1.5.2/
RUN autoreconf -i
RUN ./configure --with-experimental
RUN make
RUN make install
RUN airodump-ng-oui-update
# Workdir /
WORKDIR /
# Install wps-pixie
RUN git clone https://github.com/wiire/pixiewps
WORKDIR /pixiewps/
RUN make
RUN make install
# Workdir /
WORKDIR /
# Install hcxdump
RUN git clone https://github.com/ZerBea/hcxdumptool.git
WORKDIR /hcxdumptool/
RUN make
RUN make install
# Workdir /
WORKDIR /
# Install hcxtools
RUN git clone https://github.com/ZerBea/hcxtools.git
WORKDIR /hcxtools/
RUN make
RUN make install
# Workdir /
WORKDIR /
# Install bully
RUN git clone https://github.com/aanarchyy/bully
WORKDIR /bully/src/
RUN make
RUN make install
# Workdir /
WORKDIR /
#Install and configure hashcat
RUN mkdir /hashcat
#Install and configure hashcat: it's either the latest release or in legacy files
RUN cd /hashcat && \
wget --no-check-certificate https://hashcat.net/files/${HASHCAT_VERSION}.7z && \
7zr x ${HASHCAT_VERSION}.7z && \
rm ${HASHCAT_VERSION}.7z
RUN cd /hashcat && \
wget https://github.com/hashcat/hashcat-utils/releases/download/v${HASHCAT_UTILS_VERSION}/hashcat-utils-${HASHCAT_UTILS_VERSION}.7z && \
7zr x hashcat-utils-${HASHCAT_UTILS_VERSION}.7z && \
rm hashcat-utils-${HASHCAT_UTILS_VERSION}.7z
#Add link for binary
RUN ln -s /hashcat/${HASHCAT_VERSION}/hashcat64.bin /usr/bin/hashcat
RUN ln -s /hashcat/hashcat-utils-${HASHCAT_UTILS_VERSION}/bin/cap2hccapx.bin /usr/bin/cap2hccapx
# Workdir /
WORKDIR /
# Install reaver
RUN git clone https://github.com/gabrielrcouto/reaver-wps.git
WORKDIR /reaver-wps/src/
RUN ./configure
RUN make
RUN make install
# Workdir /
WORKDIR /
# Install cowpatty
RUN git clone https://github.com/roobixx/cowpatty.git
WORKDIR /cowpatty/
RUN make
# Workdir /
WORKDIR /
# Install wifite
RUN git clone https://github.com/derv82/wifite2.git
RUN chmod -R 777 /wifite2/
WORKDIR /wifite2/
RUN apt-get install rfkill -y
ENTRYPOINT ["/bin/bash"]