P0cL4bs / wifipumpkin3

Powerful framework for rogue access point attack.
http://wifipumpkin3.github.io/
Apache License 2.0
1.97k stars 290 forks source link

Cannot build the Docker image #254

Closed cosad3s closed 10 months ago

cosad3s commented 10 months ago

Description of the bug or feature request

Cannot build the Docker image.

To Reproduce

  1. git clone https://github.com/P0cL4bs/wifipumpkin3.git
  2. cd wifipumpkin3/
  3. docker build -t "wifipumpkin3" . the after a while:
1.285 Extracting wifipumpkin3-1.1.7-py3.7.egg to /usr/local/lib/python3.7/dist-packages
1.496 Adding wifipumpkin3 1.1.7 to easy-install.pth file
1.497 Installing captiveflask script to /usr/local/bin
1.497 Installing evilqr3 script to /usr/local/bin
1.497 Installing phishkin3 script to /usr/local/bin
1.497 Installing sslstrip3 script to /usr/local/bin
1.498 Installing wifipumpkin3 script to /usr/local/bin
1.498 Installing wp3 script to /usr/local/bin
1.498 
1.498 Installed /usr/local/lib/python3.7/dist-packages/wifipumpkin3-1.1.7-py3.7.egg
1.498 Processing dependencies for wifipumpkin3==1.1.7
1.592 Searching for zope-interface>=5
1.592 Reading https://pypi.python.org/simple/zope-interface/
2.008 No local packages or working download links found for zope-interface>=5
2.008 error: Could not find suitable distribution for Requirement.parse('zope-interface>=5')
------
Dockerfile:29
--------------------
  27 |     RUN python3.7 -m pip install pyqt5==5.14
  28 |     RUN python3.7 -m pip install -r requirements.txt 
  29 | >>> RUN python3.7 setup.py install
  30 |     #CMD /usr/local/bin/wifipumpkin3 -m docker
  31 |     WORKDIR /root/.config/wifipumpkin3
--------------------
ERROR: failed to solve: process "/bin/sh -c python3.7 setup.py install" did not complete successfully: exit code: 1

Expected behavior

Docker build success.

Desktop (please complete the following information):

mh4x0f commented 10 months ago

@cosad3s hi, update the main branch and try again.

cosad3s commented 10 months ago

Thanks, but I am still having an error.

I tried with docker build -t "wifipumpkin3" --no-cache .:

# (...)
3.363 Collecting urwid==2.1.2 (from wifipumpkin3==1.1.7)
3.396   Downloading urwid-2.1.2.tar.gz (634 kB)
3.424      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 634.6/634.6 kB 23.8 MB/s eta 0:00:00
3.483   Preparing metadata (setup.py): started
3.624   Preparing metadata (setup.py): finished with status 'done'
3.626 INFO: pip is looking at multiple versions of wifipumpkin3 to determine which version is compatible with other requirements. This could take a while.
3.626 ERROR: Package 'wifipumpkin3' requires a different Python: 3.7.5 not in '>=3.8'
------
Dockerfile:28
--------------------
  26 |     RUN python3.7 -m pip install --upgrade pip
  27 |     RUN python3.7 -m pip install pyqt5==5.14
  28 | >>> RUN python3.7 -m pip install .
  29 |     #CMD /usr/local/bin/wifipumpkin3 -m docker
  30 |     WORKDIR /root/.config/wifipumpkin3
--------------------
ERROR: failed to solve: process "/bin/sh -c python3.7 -m pip install ." did not complete successfully: exit code: 1

Indeed, the provided version of Python in Dockerfile is Python 3.7, instead it requires Python 3.8 (also as specified in the Readme)

mh4x0f commented 10 months ago

i fix now, thanks again for report the bug.

image

cosad3s commented 10 months ago

No problem, thanks, it perfectly builds now! :+1: