How to use Fiddler to monitor a Windows Service?

戏子无情 提交于 2019-12-10 02:23:34

问题


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?


回答1:


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 .exe.config needed to have a section like the following added:

<system.net>
        <defaultProxy enabled="true">
                <proxy proxyaddress="http://127.0.0.1:8888" bypassonlocal="False"/>
        </defaultProxy>
</system.net>

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




回答2:


Plz, see this article. http://fiddler2.com/blog/blog/2013/01/08/capturing-traffic-from-.net-services-with-fiddler This article help me.




回答3:


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.



来源:https://stackoverflow.com/questions/9085291/how-to-use-fiddler-to-monitor-a-windows-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!