我们想实现一个MITM代理。
它应该从客户端接收https请求,解密它们并返回预先记录的响应。
这意味着代理没有直接连接到远程服务器。我知道FiddlerCore支持MITM,但是我如何在我的场景中使用它呢?
谢谢
发布于 2014-07-29 04:50:17
https://groups.google.com/forum/#!topic/httpfiddler/E0JZrRRGhVg
这是一个非常简单的任务。如果您查看FiddlerCore中包含的演示项目,您可以了解其中的大部分内容。
Fiddler.FiddlerApplication.BeforeRequest += delegate(Fiddler.Session oS)
{
if (oSession.HTTPMethodIs("CONNECT")) { oSession.oFlags["X-ReplyWithTunnel"] = "Fake for HTTPS Tunnel"; return; }
if (oS.uriContains("replaceme.txt"))
{
oS.utilCreateResponseAndBypassServer();
oS.responseBodyBytes = SessionIWantToReturn.responseBodyBytes;
oS.oResponse.headers = (HTTPResponseHeaders) SessionIWantToReturn.oResponse.headers.Clone();
}
};https://stackoverflow.com/questions/24977756
复制相似问题