WiFi-Pumpkin-deprecated icon indicating copy to clipboard operation
WiFi-Pumpkin-deprecated copied to clipboard

the package requirement mitmproxy==0.18.2 is not satisfied

Open mohbra opened this issue 5 years ago • 36 comments

Before opening a new issue, please read this wiki

What's the problem (or question)?

I have got a Parrot OS running on my virtualbox and I added WiFi-Pumpkin but i got the error message below after installation You do not have a working installation of the service_identity module: 'cannot import name opentype'. Please install it from https://pypi.python.org/pypi/service_identity and make sure all of its dependencies are satisfied. Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.

and on the WiFi-Pumpkin GUI under pumpkin proxy I get this

the package requirement mitmproxy==0.18.2 is not satisfied

I have gone through all the answers here with NO luck

answer here

Please tell us details about your environment.

  • Card wireless adapters name (please check if support AP/mode): ALFA NETWORK pumpkin error

  • Version used tool:

  • Virtual Machine (yes or no and which): YES VirtualBox

  • Operating System and version:

mohbra avatar Jan 29 '19 20:01 mohbra

the mitmproxy package is the problem, I added support run WP without this package because I don't found a solution.

mh4x0f avatar Jan 29 '19 22:01 mh4x0f

ya, same issue here.

mother2110 avatar Jan 30 '19 21:01 mother2110

fixed the service_identity error after upgrading pyasn1-modules

pip install --upgrade pyasn1-modules

but "the package requirement mitmproxy==0.18.2 is not satisfied" remains in WP

easyfic avatar Feb 01 '19 14:02 easyfic

Same here on ParotOS.... and can only get it running on Kali live after installing LionSecs/Xerosploit which has most the proper packages.... this is really frustrating. As I really like how smooth ParotOS is... but still have to run Kali for most MITM features to work properly...

3th3r3al3 avatar Feb 01 '19 21:02 3th3r3al3

If you run Mitmproxy you could have this message : ImportError : cannot import ssl_match_hostname So :

sudo apt-get install python-backports.ssl-match-hostname

After WP can running without the message not satisfied

DRAHCORE avatar Feb 07 '19 03:02 DRAHCORE

@mh4x0f is it possible to include mitmproxy itself in the package? That's a way to solve things out beside relying on distribution packages.

minhducsun2002 avatar Feb 18 '19 10:02 minhducsun2002

@minhducsun2002 no, the package mitmproxy need specific version the cryptography lib this is a problem.

mh4x0f avatar Feb 18 '19 21:02 mh4x0f

@mh4x0f If you can get cryptography to work, maybe including the library itself with WiFi-Pumpkin itself is an idea?

minhducsun2002 avatar Feb 20 '19 06:02 minhducsun2002

@minhducsun2002 you do not understand, even if the mitmproxy package is in the WP repo it will be compiled and will result in same errors.

mh4x0f avatar Feb 20 '19 11:02 mh4x0f

@mh4x0f I mean, you include cryptography itself, not just mitmproxy. It also breaks?

minhducsun2002 avatar Feb 20 '19 11:02 minhducsun2002

@minhducsun2002 yes

mh4x0f avatar Feb 20 '19 11:02 mh4x0f

I don't really know how on earth can I still invoke WiFi-Pumpkin normally even when rolling back to 7f5633f6cf033583b55c4b4181412c6be495bc26 - which is the version that breaks upon the absence of mitmproxy. I only have mitmproxy installed from Debian Stretch's official repository, and no appropriate version of cryptography (I have 2.3 whereas <=1.6 is required).

EDIT : add proof :

cipher@magister-mentium [0] ~/Programs/Pen-testing/WiFi-Pumpkin $ git reset --hard 7f5633f6cf033583b55c4b4181412c6be495bc26 
HEAD is now at 7f5633f Update requirements.txt
cipher@magister-mentium [0] ~/Programs/Pen-testing/WiFi-Pumpkin $ sudo python wifi-pumpkin.py
:0: UserWarning: You do not have a working installation of the service_identity module: 'cannot import name opentype'.  Please install it from <https://pypi.python.org/pypi/service_identity> and make sure all of its dependencies are satisfied.  Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification.  Many valid certificate/hostname mappings may be rejected.
Loading GUI...
WiFi-Pumpkin Running!
libpng warning: iCCP: known incorrect sRGB profile

minhducsun2002 avatar Feb 20 '19 12:02 minhducsun2002

Hello, I have something similar but I don't know if it is related (or if it can help the community). When I install pyasn1 0.4.1 I don't get errors when I start wifi-pumpkin but it warns about mitmproxy's pyasn1 version. When I install pyasn1 0.1.9 I get the same errors (as OP) when I start wifi-pumpkin and it warns about pyasn1-modules 0.2.4 but no warnings about mitmproxy. But still get the same issue "the package requirement mitmproxy==0.18.2 is not satisfied" on the GUI. 1

Maybe it helps to workout something Cheers

Diabinhodo69 avatar Feb 20 '19 12:02 Diabinhodo69

hi all, maybe the solution to install the mitmproxy is this:

sudo apt-get install libssl1.0
sudo pip install mitmproxy==0.18.2

execute this command your system and check if mitmproxy module is installed successfully

mh4x0f avatar Mar 12 '19 13:03 mh4x0f

Okay, in short, you install the old library that was needed for compilation?

minhducsun2002 avatar Mar 12 '19 14:03 minhducsun2002

hi all, maybe the solution to install the mitmproxy is this:

sudo apt-get install libssl1.0
sudo pip install mitmproxy==0.18.2

execute this command your system and check if mitmproxy module is installed successfully

Tried this and pip list does show mitmproxy 0.18.2, but I still get the error...

hakonamatata avatar Mar 14 '19 07:03 hakonamatata

Same here.. had it for some time now

kimocoder avatar Mar 14 '19 12:03 kimocoder

@hakonamatata Try firing up a Python 2 interpreting instance and import mitmproxy. Does it work?

my system has pretty weird behavior - WiFi-Pumpkin launches even when I roll it back to a version that still requires mitmproxy to start up.

minhducsun2002 avatar Mar 14 '19 12:03 minhducsun2002

@hakonamatata which your system ?

mh4x0f avatar Mar 14 '19 15:03 mh4x0f

@hakonamatata which your system ?

Headless Raspberry Pi with "Kali Linux RaspberryPi 2 and 3 - 2019.1"

hakonamatata avatar Mar 14 '19 19:03 hakonamatata

I think that the better option is rewrite the Pumpkin Proxy and remove the mitmproxy from dependencies. I'll start work this coming soon

mh4x0f avatar Mar 14 '19 21:03 mh4x0f

I think that the better option is rewrite the Pumpkin Proxy and remove the mitmproxy from dependencies. I'll start work this coming soon

Sounds like a good plan.

btw. Why do we use such an old version of mitmproxy anyway? The current version is 4.0.4, and WiFi-Pumpkin uses version 0.18.2? It's a bit strange

hakonamatata avatar Mar 15 '19 07:03 hakonamatata

@hakonamatata 0.18.2, as far as I know, is the last version of mitmproxy that supports Python 2.

And our framework uses Python 2.

I suppose you know the existence of this?

minhducsun2002 avatar Mar 15 '19 08:03 minhducsun2002

I am using Raspberry Pi 3 with Kali and when I attempted all of what was suggested above I get this: File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 309, in wrapper _lib.X509_up_ref(x509) AttributeError: 'module' object has no attribute 'X509_up_ref' Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),)': /simple/mitmproxy/

and

Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/OpenSSL/SSL.py", line 309, in wrapper _lib.X509_up_ref(x509) AttributeError: 'module' object has no attribute 'X509_up_ref' Could not find a version that satisfies the requirement mitmproxy==0.18.2 (from versions: ) No matching distribution found for mitmproxy==0.18.2

Ideally i need mitmproxy to work.

JoeMarshall123 avatar Mar 18 '19 12:03 JoeMarshall123

Thanks All, I got the same problem and I fixed it with the following commands:

pip install --upgrade pyasn1-modules
apt-get install libssl1.0
pip install mitmproxy==0.18.2
apt-get install python-backports.ssl-match-hostname

I am using a native kali release 2019.1 and WP v0.18.2

ericng414 avatar Mar 23 '19 08:03 ericng414

For me the fix was:

pip uninstall pyOpenSSL 
pip install pyOpenSSL mitmproxy==0.18.2

Raspberry Pi 3 B+ with Kali 2019.1 and WP git master

SenexCrenshaw avatar Mar 30 '19 19:03 SenexCrenshaw

@ericng414 Thank you SOOOO much! That was the only solution that worked for me after hours of searching and multiple fails. I am on ParrotOS 4.19 and WP v0.8.7

0b1w4n avatar Apr 06 '19 02:04 0b1w4n

https://github.com/P0cL4bs/WiFi-Pumpkin/issues/466#issuecomment-475850943 Thanks All, I got the same problem and I fixed it with the following commands:

pip install --upgrade pyasn1-modules apt-get install libssl1.0 pip install mitmproxy==0.18.2 apt-get install python-backports.ssl-match-hostname

I am using a native kali release 2019.1 and WP v0.18.2

This is work for me. i'm useing kali 2019.1 pumpkin v0.8.8 Tnx to ericng414

BiD1 avatar May 03 '19 15:05 BiD1

Thanks All, I got the same problem and I fixed it with the following commands:

pip install --upgrade pyasn1-modules
apt-get install libssl1.0
pip install mitmproxy==0.18.2
apt-get install python-backports.ssl-match-hostname

I am using a native kali release 2019.1 and WP v0.18.2

Thanks man. This solved my problem with the mitmproxy on Parrot OS 4.6.

tiagojpavan avatar May 08 '19 23:05 tiagojpavan

i tried all of them above but not solved yet ,i am using parrot 4.6 install on my pc , dual boot-- kali and patrrot, in kali perfectly it is working. Screenshot at 2019-05-09 13-34-41 i got this error also " Could not find a version that satisfies the requirement mitmproxy==0.18.2 (from versions: ) No matching distribution found for mitmproxy==0.18.2 "

noobkid2000 avatar May 09 '19 17:05 noobkid2000