Dienstag, 19. April 2016

mitmf error with python library python-twisted

2016-03-31 13:23:21 [ProxyPlugins] Exception occurred in hooked function Traceback (most recent call last): File "/root/Desktop/MITMf-master.4/core/proxyplugins.py", line 112, in hook a = f(args) File "/root/Desktop/MITMf-master.4/plugins/inject.py", line 65, in response mime = response.headers['Content-Type'] AttributeError: ClientRequest instance has no attribute 'headers'
So, this is the error i got, when i was trying to inject a javascript file with the mitmf framework. What worked for me is uninstalling the twisted python library. And afterwards installing the newsest version manually. I was using Kali 2016.2 where the library is installed via apt.
apt-get remove python-twisted
Now you need to download twisted again:
wget http://twistedmatrix.com/Releases/Twisted/15.5/Twisted-15.5.0.tar.bz2
and instal it:
pip install ./Twisted-15.5.0.tar.bz2
This should do the trick :)

6 Kommentare:

  1. Cheers mate for the fix this worked perfectly, and to make you fell happy I shared this post on google+ , facebook and twitter.

    Please visit:
    www.hackingplayground.com

    AntwortenLöschen
  2. I like your blog, I read this blog please update more content on python, further check it once at python online training

    AntwortenLöschen