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 :)