2022-05-05 04:36:38 +00:00
|
|
|
FROM ubuntu:20.04
|
2020-03-28 03:11:16 +00:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get -y install \
|
|
|
|
hostapd \
|
2020-03-28 03:14:48 +00:00
|
|
|
nano \
|
2020-04-02 23:05:00 +00:00
|
|
|
iw \
|
2020-04-14 14:43:23 +00:00
|
|
|
wireless-tools \
|
2020-03-28 03:11:16 +00:00
|
|
|
ifupdown \
|
2022-05-05 04:36:38 +00:00
|
|
|
python3 \
|
2020-03-28 03:11:16 +00:00
|
|
|
python3-pip \
|
2022-05-05 04:36:38 +00:00
|
|
|
python3-dev \
|
2020-03-28 03:11:16 +00:00
|
|
|
iptables \
|
|
|
|
net-tools \
|
|
|
|
rfkill \
|
2021-05-07 04:20:02 +00:00
|
|
|
libpcap-dev \
|
2022-05-05 04:36:38 +00:00
|
|
|
libglib2.0-0 \
|
2020-03-28 03:11:16 +00:00
|
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
2022-05-05 04:36:38 +00:00
|
|
|
# Copy all files to app folder
|
2020-03-28 03:11:16 +00:00
|
|
|
COPY . /usr/src/app
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY config/hostapd/hostapd.conf /etc/hostapd/hostapd.conf
|
2022-05-05 04:36:38 +00:00
|
|
|
#RUN update-alternatives --install /usr/bin/python3 python3 1
|
|
|
|
RUN python3 -m pip install --upgrade pip
|
|
|
|
RUN python3 -m pip install pyqt5==5.14
|
|
|
|
RUN python3 -m pip install -r requirements.txt
|
|
|
|
RUN python3 setup.py install
|
2020-06-23 15:48:02 +00:00
|
|
|
WORKDIR /root/.config/wifipumpkin3
|
2022-05-05 04:36:38 +00:00
|
|
|
CMD /usr/local/bin/wifipumpkin3 -i wlan1 --pulp scripts/hackpack.pulp --wireless-mode docker --no-colors --rest --restport 54445 --username $WP3USERNAME --password $WP3PASSWORD
|
|
|
|
|