forked from derv82/wifite2
-
Notifications
You must be signed in to change notification settings - Fork 258
Expand file tree
/
Copy pathDockerfile
More file actions
79 lines (66 loc) · 3.03 KB
/
Dockerfile
File metadata and controls
79 lines (66 loc) · 3.03 KB
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
FROM python:3.14-slim
ENV DEBIAN_FRONTEND=noninteractive
ENV HASHCAT_VERSION=hashcat-6.2.6
ENV HASHCAT_UTILS_VERSION=1.9
# Install all system dependencies in a single layer
RUN echo "deb http://deb.debian.org/debian trixie main" > /etc/apt/sources.list && \
echo "deb-src http://deb.debian.org/debian trixie main" >> /etc/apt/sources.list && \
apt update && \
apt install -y --no-install-recommends \
clang ca-certificates gcc openssl make kmod nano wget p7zip-full 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 libcurl3-dev unzip \
macchanger tshark rfkill autoconf automake libtool && \
apt build-dep -y aircrack-ng && \
apt clean && \
rm -rf /var/lib/apt/lists/*
# Install Aircrack from Source
RUN wget https://download.aircrack-ng.org/aircrack-ng-1.7.tar.gz && \
tar xzvf aircrack-ng-1.7.tar.gz && \
cd /aircrack-ng-1.7/ && \
autoreconf -i && \
./configure --with-experimental && \
make && make install && \
airodump-ng-oui-update && \
cd / && rm -rf /aircrack-ng-1.7 aircrack-ng-1.7.tar.gz
# Install pixiewps
RUN git clone https://github.com/wiire/pixiewps && \
cd /pixiewps && make && make install && \
cd / && rm -rf /pixiewps
# Install hcxdumptool
RUN git clone https://github.com/ZerBea/hcxdumptool.git && \
cd /hcxdumptool && make && make install && \
cd / && rm -rf /hcxdumptool
# Install hcxtools
RUN git clone https://github.com/ZerBea/hcxtools.git && \
cd /hcxtools && make && make install && \
cd / && rm -rf /hcxtools
# Install bully
RUN git clone https://github.com/kimocoder/bully && \
cd /bully/src && make && make install && \
cd / && rm -rf /bully
# Install and configure hashcat
RUN mkdir /hashcat && \
cd /hashcat && \
wget --no-check-certificate https://hashcat.net/files/${HASHCAT_VERSION}.7z && \
7zr x ${HASHCAT_VERSION}.7z && \
rm ${HASHCAT_VERSION}.7z && \
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 && \
ln -s /hashcat/${HASHCAT_VERSION}/hashcat64.bin /usr/bin/hashcat && \
ln -s /hashcat/hashcat-utils-${HASHCAT_UTILS_VERSION}/bin/cap2hccapx.bin /usr/bin/cap2hccapx
# Install reaver
RUN git clone https://github.com/t6x/reaver-wps-fork-t6x && \
cd /reaver-wps-fork-t6x/src && ./configure && make && make install && \
cd / && rm -rf /reaver-wps-fork-t6x
# Install cowpatty (with make install so binary is on PATH)
RUN git clone https://github.com/joswr1ght/cowpatty && \
cd /cowpatty && make && make install && \
cd / && rm -rf /cowpatty
# Install wifite and Python dependencies
RUN git clone https://github.com/kimocoder/wifite2.git && \
chmod -R 777 /wifite2/
WORKDIR /wifite2/
RUN pip install --no-cache-dir -r requirements.txt
ENTRYPOINT ["python", "wifite.py"]