如何使用Fiddler监控Windows服务?

发布于 2025-01-01 07:25:33 字数 100 浏览 0 评论 0 原文

看来 Fiddler 不会监视任何与 Fiddler 本身不在同一用户下运行的内容。 我想监视在本地系统下运行的Windows服务。

这可能吗?

It seems that Fiddler will not monitor anything that's not run under the same user as Fiddler itself.
I would like to monitor a Windows Service which is run under Local System.

Is this possible?

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

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

发布评论

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

评论(2

七七 2025-01-08 07:25:33

我通过参考 有没有办法配置 Fiddler 来拦截来自 Windows 服务的 HTTP 调用?

Codeka 提供了一条线索,让我朝着正确的方向前进。仍然缺少的部分是如何配置代理。 .exe.config [需要指定 ][1] 添加如下所示的部分:

<配置>;

   
   <系统网>
       
           <代理proxyaddress =“http://127.0.0.1:8888”bypassonlocal =“False”/>
       
   


完成此操作后,Windows 服务的 http 流量开始流动
通过 Fiddler。

I made it work by referring Is there a way to configure Fiddler to intercept HTTP calls from a Windows service?

Codeka provided a clue to get me going in the right direction. The piece that was still missing was how to get the proxy configured. The <appname>.exe.config [needs <defaultProxy> specified][1] to have a section like the following added:

<configuration>

   <!-- The `<system.net>` element is an immediate child of >`<configuration>` but can appear anywhere in app.config -->
   <system.net>
       <defaultProxy enabled="true">
           <proxy proxyaddress="http://127.0.0.1:8888" bypassonlocal="False"/>
       </defaultProxy>
   </system.net>

</configuration>

Once this was done the Windows service's http traffic started flowing
through Fiddler.

夏有森光若流苏 2025-01-08 07:25:33

另一种方法是将 Fiddler 作为系统运行。
这适用于用 .NET 和 C++ 编写的服务

为此,我发现以下应用程序非常有用:
https://www.apreltech.com/Free/How_to_run_as_system_user

只需启动此应用程序并接受提升提示然后只需浏览到安装 Fiddler 的位置并运行它。

Fiddler 将启动,您应该能够看到来自服务的流量。

Another way is to run Fiddler as system.
This will work for services which are written in .NET and C++

To do this, I found the following application very helpful:
https://www.apreltech.com/Free/How_to_run_as_system_user

Just launch this app and accept the elevated prompt Then just browse to where you have installed Fiddler and run it.

Fiddler will launch and you should be able to see traffic from services.

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