start fiddler capturing specific process

1,279 views
Skip to first unread message

K K

unread,
Oct 15, 2013, 1:39:41 PM10/15/13
to httpf...@googlegroups.com
hi, is there a way to start fiddler automatically capturing specific application (process) without going through the manual way of adding the process by waiting the app  window to show then dragging the icon to select it
I want when i start fiddler to capture traffic only from that app and ignore all other applications (by creating a shortcut or command line or even a script)

thanks in advance for your help

EricLaw

unread,
Oct 16, 2013, 10:20:41 AM10/16/13
to httpf...@googlegroups.com
How do you propose to identify the application in question? By Process ID? By Executable Name? By something else?

FiddlerScript can filter sessions based on the originating process (and you can control FiddlerScript from the command line), but you have to know how to identify the target process.

K K

unread,
Oct 16, 2013, 10:55:59 PM10/16/13
to httpf...@googlegroups.com
I think the best in my case to identify the application is by Executable Name, is it possible to give me some guidelines or more info on how to do that ?
thanks for your time

EricLaw

unread,
Oct 17, 2013, 1:10:11 AM10/17/13
to
Rules > Customize Rules. Scroll to OnBeforeRequest. Inside, add

if (!oSession["X-PROCESSINFO"] || !oSession["X-PROCESSINFO"].StartsWith("MyProcessName")) 
{
oSession["ui-hide"] = "FiddlerScript> Hiding boring process";
}

K K

unread,
Oct 17, 2013, 12:54:42 AM10/17/13
to httpf...@googlegroups.com
thanks alot for ur help
i did like you mentioned changing MyProcessName to test.exe but fiddler still capturing all other applications like chrome traffic for example
I see in fiddler that CustomRules.js was loaded but I can't notice any difference 
Is there something else i have to do in order to activate the filter ? or maybe am doing it wrong!
if (!oSession["X-PROCESSINFO"] || oSession["X-PROCESSINFO"].StartsWith("test.exe")) 
Reply all
Reply to author
Forward
0 new messages