0

I'm running a python 2.7 script (on Kali machine) which using the following import:

from libmproxy.protocol.http import decoded

When running, I'm getting the following error:

ImportError: Cannot import name decoded

How to fix this problem please?

Eugene Yarmash
  • 142,882
  • 41
  • 325
  • 378
Nick
  • 499
  • 4
  • 11
  • 25

1 Answers1

1

Apparently, the libmproxy.protocol.http module doesn't define the name decoded which you're trying to import. Use the documentation for the version of the library you have installed.

Eugene Yarmash
  • 142,882
  • 41
  • 325
  • 378
  • I didn't invented this module. I found a few scripts which use it. It's been used here: http://stackoverflow.com/questions/28626213/mitm-proxy-getting-entire-request-and-response-string and here: http://stackoverflow.com/questions/29881998/mitmproxy-tampering-get-and-post-request-response-in-one-script I was searching for a solution more than an hour before I posted this thread... – Nick Jun 03 '16 at 12:44
  • @Nick: the api may change between versions, so the examples may not work. – Eugene Yarmash Jun 03 '16 at 13:18