-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
53 lines (47 loc) · 1.44 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
#FROM alpine:latest as builder
#RUN apk update && apk add \
#build-base \
#openssl-dev \
#libnl3-dev \
#linux-headers \
#git \
#&& rm -rf /var/cache/apk/*
FROM kalilinux/kali-linux-docker as builder
RUN apt-get update && apt-get install -y \
build-essential \
pkg-config \
git \
libnl-genl-3-dev \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /hostapd-mana/
RUN git clone --depth=3 https://github.com/sensepost/hostapd-mana \
&& make -j2 -C hostapd-mana/hostapd
FROM kalilinux/kali-linux-docker
LABEL maintainer="@singe at SensePost <research@sensepost.com>"
RUN apt-get update && apt-get install -y \
aircrack-ng \
ca-certificates \
cron \
iw \
pciutils \
ssl-cert \
tcpreplay \
unzip \
wpasupplicant \
&& rm -rf /var/lib/apt/lists/*
COPY /attacker/*.sh /opt/sensepost/bin/
COPY /caps/wpa-induction.cap /opt/sensepost/capture/sensepost.cap
COPY /attacker/wpasup.conf /opt/sensepost/etc/wpasup.conf
RUN chmod +x /opt/sensepost/bin/wifi-replay.sh \
&& chmod +x /opt/sensepost/bin/client.sh \
&& echo -n \
"* * * * * /opt/sensepost/bin/wifi-replay.sh\n \
* * * * * /opt/sensepost/bin/client.sh\n" > crontab.tmp \
&& crontab -u root crontab.tmp \
&& rm -rf crontab.tmp
COPY --from=builder /hostapd-mana/hostapd-mana/hostapd/hostapd /usr/local/bin/
COPY --from=builder /hostapd-mana/hostapd-mana/hostapd/hostapd_cli /usr/local/bin/
COPY mana /root/mana/
ENV PATH $PATH:/hostapd-mana
CMD /etc/init.d/cron start && /bin/bash