Skip to content
This repository has been archived by the owner on Apr 19, 2020. It is now read-only.

ImportError: No module named mitmproxy.models #309

Closed
guilhermebasalia opened this issue Dec 12, 2017 · 174 comments
Closed

ImportError: No module named mitmproxy.models #309

guilhermebasalia opened this issue Dec 12, 2017 · 174 comments

Comments

@guilhermebasalia
Copy link

After you run the sudo wifi-pumpkin displays the following error.

Traceback (most recent call last):
File "wifi-pumpkin.py", line 37, in
from core.utility.application import ApplicationLoop
File "/usr/share/WiFi-Pumpkin/core/utility/application.py", line 3, in
from core.main import version
File "/usr/share/WiFi-Pumpkin/core/main.py", line 28, in
from core.widgets.tabmodels import (
File "/usr/share/WiFi-Pumpkin/core/widgets/tabmodels.py", line 6, in
from core.utility.threads import ThreadPopen
File "/usr/share/WiFi-Pumpkin/core/utility/threads.py", line 19, in
from core.servers.proxy.http.controller.handler import MasterHandler
File "/usr/share/WiFi-Pumpkin/core/servers/proxy/http/controller/handler.py", line 1, in
from plugins.extension import *
File "/usr/share/WiFi-Pumpkin/plugins/extension/beef.py", line 1, in
from mitmproxy.models import decoded
ImportError: No module named mitmproxy.models

  • Operating System and version:

I'm using ParrotOS.

@abdozekaa
Copy link

Same problem with kali nethunter .. waiting

@wimdecorte
Copy link

Same issue with Kali on Raspberry Pi

@7rav6n
Copy link

7rav6n commented Dec 13, 2017

Same error here... dosen't work on Kali 2017.3 full install, or Raspberry Pi3 (Kali).

@usama7628674
Copy link

Use these commands and see it that helps for anyone of you
pip install -U cryptography
pip3 install mitmproxy

@guilhermebasalia
Copy link
Author

The error persists even after you have installed the packages.

└──╼ $sudo pip install -U cryptograph
Successfully installed asn1crypto-0.23.0 cryptography-2.1.4 idna-2.6 ipaddress-1.0.18
└──╼ $sudo pip3 install mitmproxy
Requirement already satisfied: mitmproxy in /usr/lib/python3/dist-packages

@usama7628674
Copy link

usama7628674 commented Dec 13, 2017

I'm also getting no module named mitmproxy.models.The problem is after updating to kali linux 2017.3 mitmproxy is also updated.Now when you run pip install mitmproxy it uses cryptography-1.5.3 version and that fails to build wheels for it.mitmproxy 0.18.2 is the last version that supports both python 2 and 3.So mitmproxy installs successfully for python 3 using this command pip3 install mitmproxy but it doesn't install for python 2 using pip install mitmproxy.I've spent a day to resolve this problem but couldn't do so.I'm thinking that how can I install different version of cryptography?The problem is cryptography and also wifi-pumpkin supports only python 2.

@wimdecorte
Copy link

Same as @guilhermebasalia - error persists and mitmproxy is already there.

@usama7628674
Copy link

usama7628674 commented Dec 13, 2017

It has something to do with openssl,using different versions of openssl throw different errors and warnings.Try updating and downgrading openssl

@usama7628674
Copy link

Tried mitmproxy==0.17 but still doesn't install.

@usama7628674
Copy link

Can anyone try installing mitmproxy on kali 2016.2?

@7rav6n
Copy link

7rav6n commented Dec 13, 2017

Tried clean install on Kali 2017.2 on Raspberry Pi3, but still no luck.

@usama7628674
Copy link

I'll check on kali 2017.3 (live) and report here.

@drjohannspector
Copy link

Tried on kali 2017.3 on a live boot, does not work. fresh install too.

@usama7628674
Copy link

Ok.I tried kali 2017.3 on a live boot and now wifi-pumpkin works.

@7rav6n
Copy link

7rav6n commented Dec 14, 2017

It really works on Kali 2017.3 live boot? It didnt work in my case.(live persistent).

@usama7628674
Copy link

usama7628674 commented Dec 14, 2017

@7rav6n Yes,it really is working for me.Try live without persistence.Just select first choice that says live when booting.Download kali 2017.3 from official site,64-bit one (2.8 GB).

@usama7628674
Copy link

usama7628674 commented Dec 14, 2017

@7rav6n @drjohannspector @wimdecorte @guilhermebasalia @abdozekaa Ok I resolved the issue.Just live boot kali 2017.3 (no persistence) and copy all the items from /usr/lib/python2.7/dist-packages and paste into your existing kali (I'm assuming you're using dual boot) same directory /usr/lib/python2.7/dist-packages.That's how I resolved this issue.

@wimdecorte
Copy link

I'll give it a shot but mine is not a dual boot, it's Kali running on a Raspberry Pi.

@wimdecorte
Copy link

Do we need to install pumpkin on the live boot first, or just grab what's there on a plain vanilla live boot?

@usama7628674
Copy link

No you don't need to install wifi-pumpkin

@7rav6n
Copy link

7rav6n commented Dec 14, 2017

@usama7628674 Ok, it does work this way on Kali 2017.3, thanks for solution. And is there a way to make it work on Raspberry Pi3 ?

@drjohannspector
Copy link

drjohannspector commented Dec 15, 2017

Now I am seeing this error when starting. This was the only error during the install: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-IcVFAB/bs4/

Anyone have any ideas for me? It would be greatly appreciated. I am stumpted

Traceback (most recent call last):
File "wifi-pumpkin.py", line 37, in
from core.utility.application import ApplicationLoop
File "/usr/share/WiFi-Pumpkin/core/utility/application.py", line 3, in
from core.main import version
File "/usr/share/WiFi-Pumpkin/core/main.py", line 24, in
from core.utils import (
File "/usr/share/WiFi-Pumpkin/core/utils.py", line 8, in
import netifaces
ImportError: No module named netifaces

@drjohannspector
Copy link

Made sure to copy the entire directory and its contents, with chmod a+x on /dist-packages/

copied with no errors, not sure what I did wrong but this time this is my output.

root@kali:~/WiFi-Pumpkin# sudo wifi-pumpkin
Traceback (most recent call last):
File "wifi-pumpkin.py", line 35, in
from core.loaders.checker.depedences import check_dep_pumpkin
File "/usr/share/WiFi-Pumpkin/core/loaders/checker/depedences.py", line 2, in
from core.utility.collection import SettingsINI
File "/usr/share/WiFi-Pumpkin/core/utility/collection.py", line 2, in
from PyQt4.QtCore import QSettings
ImportError: /usr/lib/python2.7/dist-packages/sip.x86_64-linux-gnu.so: file too short

@usama7628674
Copy link

usama7628674 commented Dec 15, 2017

@7rav6n I don't have raspberry pi so I'm not familiar with arm platform and not sure how many packages it comes preinstalled.Looking at the size of arm of just 0.6GB (official kali site) I think it comes with small number of packages installed.Do what I said above and see if that resolves your problem.

@usama7628674
Copy link

usama7628674 commented Dec 15, 2017

@drjohannspector just install this and report back
apt-get install python-sip
also install these packages to check if they exist in your machine or not
apt-get install python-qscintilla2 python-qt4 python-qt4-sql python-sip

if netifacesis not installed then do this
pip install netifaces

@7rav6n
Copy link

7rav6n commented Dec 15, 2017

Tried diffrent things but still no luck with arm (rp3).I did install diffrent packages, i checked every solution i could find in google. If anyone manages to make it work please post back... i run out of ideas.

@ghost
Copy link

ghost commented Dec 15, 2017

what happens is a solution. PLEASE..

@mh4x0f
Copy link
Member

mh4x0f commented Dec 15, 2017

due to large quantity of users can't install the module mitmproxy, I 'll disable the plugin mitmproxy and set another as default. this will solve the problem temporarily. wait ....

@harry3911
Copy link

if there is no way so i will copy my data in hard disk

@harry3911
Copy link

nope i am having only one OS thats kali linux

@usama7628674
Copy link

no you don't need to because we'll use live version

@usama7628674
Copy link

live means you can run kali without need to make partition or installing it

@harry3911
Copy link

ok that portable usb will be having that os
so i can operate it from any pc whicher i like??

@harry3911
Copy link

its just like portable OS

@usama7628674
Copy link

yes just plug your usb and you could easily run kali

@harry3911
Copy link

does that effects the speed of processing??

@usama7628674
Copy link

no nothing

@harry3911
Copy link

ok

@harry3911
Copy link

any other tool which is similar to pumpkin??

@usama7628674
Copy link

airgeddon,fluxion,wifiphisher

@harry3911
Copy link

thankx man

@harry3911
Copy link

are you a hacker??

@usama7628674
Copy link

Not really but I'm doing mechanical engineering but I like wireless stuff and cracked most of the wifi passwords around my area.

@harry3911
Copy link

i can do the same thing using airbase-ng

@harry3911
Copy link

at the place of pumpkin

@usama7628674
Copy link

No I mean evil-twin method

@harry3911
Copy link

pumpkin also do evil-twin??
or it only requires one wifi adaptor

@usama7628674
Copy link

usama7628674 commented Mar 1, 2018

you can create rogue AP and let the victim to connect to your fake AP and wait for them to give their psk.fluxion and airgeddon both are good for that.

@harry3911
Copy link

ok thankz bye i need to get lunch

@usama7628674
Copy link

Yes Wifi-pumpkin also

@usama7628674
Copy link

enjoy your lunch and we'll talk later.

@usama7628674
Copy link

usama7628674 commented Mar 1, 2018

There is something wrong with scapy so live will eliminate every issue and you can easily run wifi-pumpkin and I can't reproduce this issue so I don't know what's the logic behind this but hopefully you'll run it fine on live version

@harry3911
Copy link

bro is there any other tool which is 90% similar to wifi-pumpkin

@harry3911
Copy link

because it also gets me the passwords and other things

@mehulgondaliya
Copy link

same problem with kali linux

@indiegos
Copy link

I am installing in Parrot, If you have this problem, try to reinstall like this
Open Terminal
#cd Wifi-Pumpkin
#./installer.sh
#chmod +x ./installer.sh
#sudo ./installer.sh --install

screenshot at 2018-06-11 06-14-59

Run Pumpkin
#sudo wifi-pumpkin

Done

@JeremyWhittaker
Copy link

image
I'm getting this error on Raspberry Pi. Can someone point me in the right direction?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

17 participants