Creating and running mitmproxy in python windows: is it even possible?

I tried to install mitmproxy and run "mitmproxy" and "mitmdump" from the Scripts folder.

However, I get a lot of errors that many modules cannot find.

From the error messages I tried to install all the missing modules

  • mount
  • PyOpenSSL
  • Pyasn
  • urwid

I stopped after this, as I'm not sure if this will lead me to success.

a) works and generally creates mitmproxy on all windows?

b) how can I get all the dependent modules and install them?

I got to the point that the "urwid" package is needed. However, this fails: "Could not find vcvarsall.bat"

EDIT: It seems that running mitmproxy is actually not possible, since the urwid package provides a terminal GUI that doesn't work for windows. However, I only need mitmdump. When I try to run it, I get:

C:\Python27\Scripts>C:\Python27\python.exe mitmdump -w out.txt Traceback (most recent call last): File "mitmdump", line 41, in <module> proxyconfig = proxy.process_proxy_options(parser, options) File "C:\Python27\lib\site-packages\libmproxy\proxy.py", line 527, in process_ proxy_options certutils.dummy_ca(cacert) File "C:\Python27\lib\site-packages\libmproxy\certutils.py", line 44, in dummy_castdin=subprocess.PIPE File "C:\Python27\lib\subprocess.py", line 493, in call return Popen(*popenargs, **kwargs).wait() File "C:\Python27\lib\subprocess.py", line 679, in __init__errread, errwrite) File "C:\Python27\lib\subprocess.py", line 893, in _execute_childstartupinfo) WindowsError: [Error 2] System can not find file C:\Python27\Scripts> 

Perhaps he cannot find this dummy certificate file that is being created. However, he did not create "mitmproxy-ca-cert.p12"

Help needed

+4
source share
1 answer

The mitmproxy console interface (ncurses) does not start on Windows, although you can run it under Cygwin. If you don't need an interactive user interface for your specific task, mitmdump (supplied with mitmproxy) also does its job. If you want to try some alpha-quality software, you can also try mitmproxy mitmweb and open the webinterface at http: // localhost: 8081 / .

+4
source

Source: https://habr.com/ru/post/1399238/


All Articles