适用于 Mac 的本地主机数据包分析器

发布于 2024-08-29 22:02:41 字数 94 浏览 10 评论 0原文

数据包嗅探器通常不捕获本地主机流量。我需要检查本地主机环境中的一些发布数据(由 Ruby on Rails 开发生成)。您知道有哪些程序会公开 localhost 数据包吗?

Packet sniffers generally do not capture localhost traffic. I need to inspect some post data in a localhost environment (being generated from a Ruby on Rails development). Do you know of any programs that expose localhost packets?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

苏璃陌 2024-09-05 22:02:42

我在 Windows 机器上使用 fiddler 进行 http 嗅探。由于它只查看 http 流量,因此您无法获得像 WireShark 这样的工具所获得的噪音量。

让它处理本地发送和接收的数据的技巧是为您的网址使用不同的端点。使用 http://127.0.0.1./YourServiceName 而不是 http://localhost/YourServiceName 一直为我工作。在 IP 地址中包含尾随“点”非常重要。不过别问我为什么。

I use fiddler on my Windows box for http sniffing. Since its only looking at http traffic you don't get nearly the amount of noise you get with something like WireShark.

The trick to getting it to work with data sent and received locally is to use a different endpoint for your urls. Using http://127.0.0.1./YourServiceName instead of http://localhost/YourServiceName has always worked for me. Its important to include the trailing 'dot' in the IP address. Don't ask me why though.

情何以堪。 2024-09-05 22:02:42

如果您使用 Firefox,则可以使用 HTTP 日志记录功能:

https://developer.mozilla.org/en /HTTP_Logging

If you use Firefox, you could use the HTTP Logging feature:

https://developer.mozilla.org/en/HTTP_Logging

岁月流歌 2024-09-05 22:02:42

如果您只是将地址从 localhost 更改为指定的 IP 地址(例如 192.168.12.34 或您可能拥有的任何地址),您的数据包嗅探器应该能够看到数据包。

If you just change your address from localhost to an assigned IP address (like 192.168.12.34 or whatever you may have), your packet sniffer should be able to see the packets.

你的心境我的脸 2024-09-05 22:02:42

这些数据包可能不存在。当数据未离开主机时,没有理由对数据进行打包。数据应该只是从一个套接字传输到另一个套接字。

您可以使用 Instruments 或 Dtrace 之类的工具来监视发送系统调用。

These packets probably do not exist. There is no reason to packetize data when it is not leaving the host. The data should just go from socket to socket.

You might use something like Instruments or Dtrace to monitor the send system call.

多孤肩上扛 2024-09-05 22:02:42

我是 HTTPScoop 的满意用户: http://www.tuffcode.com/

它类似于您将在 Firefox 等中看到 HTTP 流量分析器插件,但可以在整个系统范围内工作,这很方便,并且可以切换以观察任何可用的网络接口。

它不是免费的,也不观察 HTTPS 流量,但除此之外,它是您工具箱中值得添加的一个。

I'm a satisfied user of HTTPScoop: http://www.tuffcode.com/

It's similar to the HTTP traffic analyzer addons you'll see for firefox etc. but works systemwide which is convenient and can be switched to observe any of your available network interfaces.

It is not free, nor does it observe HTTPS traffic, but other than that it's a worthwhile addition to your toolbox.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文