libmproxy和mitmproxy文档 [英] libmproxy and mitmproxy documentation

查看:2463
本文介绍了libmproxy和mitmproxy文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的mitmproxy世界。我需要写一个python脚本,将记录从Genymotion模拟器一定的应用程序所做的所有请求。现在我才知道,mitmproxy可以是我的要求有帮助。因此,我已成功地建立了mitmproxy,现在我能够通过中间人客户端监视从Gennymotion任何应用程序的所有流量HTTP / S。

不过,我要的是:


  

该应用程序会由用户手动探索,应该有这样的Python脚本运行,将只需登录正在作出的所有请求,而用户正在探索的应用程序。


我曾尝试通过mitmproxy的API的例子Github上会,但一直没能理解他们。可能有人请点我更详细的解释/使用指南这些API?

通过一些更多的挖掘,我想通了,我需要类似 HTTPS的东西: //github.com/mitmproxy/mitmproxy/blob/master/examples/flowbasic 但我不明白是什么在上面的资源在脚本中发生的事情。


  

是什么f.reply()?结果
  什么是flow.State()?结果
  什么是m.run()?结果
  什么是flow.FlowMaster?结果


和更重要的是在那里,我可以了解这些不同的方法,并在上面使用别人的地方吗?

同样,发现这个还有:获得" RAW"从MITM代理请求\\响应


  

可有人请解释如何或在哪里我称之为从请求()?结果
  什么是环境和流量参数呢?



解决方案

  mitmproxy -w log_file.txt

应该为你想要的工作。对于文档, mitmproxy --help 给你的可用选项的一些见解。

I am new to the mitmproxy world. I need to write a python script that would log all the requests made from a certain app on Genymotion emulator. Now, I learned that mitmproxy can be helpful for my requirement. So I have successfully set up mitmproxy and now I am able to monitor all the traffic HTTP/S from any app on Gennymotion through the mitm client.

However, what I want is :

The app would be explored manually by the user and there should be this Python script running that would simply log all the requests being made while the user is exploring the app.

I have tried going through the Github examples of mitmproxy APIs, but have not been able to understand them. Could someone please point me to a more detailed explanation/usage guide for these APIs ?

Through some more digging, I figured out that I need something similar to https://github.com/mitmproxy/mitmproxy/blob/master/examples/flowbasic but I do not understand what is happening inside the script in the above resource. Like

what is f.reply() ?
what is flow.State() ?
what is m.run() ?
what is flow.FlowMaster ?

And more importantly, is there a place i can learn about these various methods and others used in the above ?

Similarly, found this as well : get a "raw" request\response from MITM Proxy

Can someone please explain how to or where do I call the request() from ?
What is the context and flow parameters there ?

解决方案

mitmproxy -w log_file.txt

should work for what you want. As for the docs, mitmproxy --help gives you some insight on the available options.

这篇关于libmproxy和mitmproxy文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆