简体   繁体   English

如何捕获所有HTTP流量(本地代理)

[英]How to catch all HTTP traffic (local proxy)

I am looking to get access to all HTTP traffic on my machine (my windows machine - not a server). 我希望能够访问我的机器上的所有HTTP流量(我的Windows机器 - 而不是服务器)。 From what I understand having a local proxy through which all traffic routes is the way to go. 据我所知,拥有一个本地代理,通过该代理可以实现所有交通路线。 I have been Googling but failed to find any resources (in respect to Ruby) to help me out. 我一直在谷歌搜索,但没有找到任何资源(关于Ruby)来帮助我。 Any tips or links are much appreciated. 任何提示或链接都非常感谢。

There's an HTTP Proxy in WEBrick (part of Ruby stdlib) and here's an implementation example. WEBrick中有一个HTTP代理(Ruby stdlib的一部分), 这是一个实现示例。

If you like living on the edge there's also em-proxy by Ilya Grigorik. 如果你喜欢生活在边缘,那么Ilya Grigorik也有代理人

This post by Ilya implies that it does seem to need some tweaking to solve your problem. Ilya的这篇文章暗示它似乎需要一些调整来解决你的问题。

Is having a proxy built in Ruby the important point here? 在Ruby中建立代理是重要的一点吗? Or just to "get access to all HTTP traffic on your machine"? 或者只是“访问您计算机上的所有HTTP流量”? If the latter, there's a free program called HTTP Sniffer and Analyzer that can supposedly do this. 如果是后者,那么可以使用一个名为HTTP Sniffer和Analyzer的免费程序。 I have not used it but I have seen it get some positive reviews. 我没有用它,但我看到它得到了一些积极的评论。 There are several other such programs, though most seem to be paid. 还有其他几个这样的程序,虽然大多数似乎是有偿的。 On OS X, Linux, etc, you can use the in-built tcpdump in clever ways to get a similar effect. 在OS X,Linux等上,您可以巧妙地使用内置的tcpdump来获得类似的效果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM