Associate Fiddler with .PCAP files for quick viewing?

495 vistas
Ir al primer mensaje no leído

Ben Edelman

no leída,
30 jun 2014, 4:42:28 p.m.30/6/2014
para httpf...@googlegroups.com
I like to use Fiddler to view .PCAP files created elsewhere.  But it's a few extra clicks to proceed through File-Important.  Drag-and-drop doesn't work. 

Ideally, it would be possible to associate Fiddler with .PCAP's.  But Fiddler's Command-Line Help indicates no command line option to import a .PCAP.  I only a see a way to provide a .SAZ file on the command line, which isn't quite what I need.

Suggestions?

EricLaw

no leída,
1 jul 2014, 4:24:37 p.m.1/7/2014
para
Thanks for asking about this; this has been one of my longstanding backlog issues, and I've added support for this in Fiddler 2.4.8.5.

This build supports opening PCAP, CAP, PCAPNG, HAR, and TSTEST files directly via the command line. You can also hold down CTRL while dropping one of these file types directly on the Fiddler Session List to cause it to be treated as an import operation.

Fiddler Transcoder developers can use a new overload of the ProfferFormatAttribute that lists supported file extensions, like so:

    [ProfferFormat("Packet Capture""The PCAP and CAP formats are ..."".cap;.pcap;.pcapng")]

The filename specified by the user will be in the options dictionary passed to the ImportSessions function:

 if (null != dictOptions)
 {
    if (dictOptions.ContainsKey("Filename"))  {
        sFilename = dictOptions["Filename"as string;
    }
 
    if (dictOptions.ContainsKey("Quiet"))
    {
       bSilent = ("True".OICEquals((dictOptions["Quiet"as string)));
    }
 }

Ben Edelman

no leída,
22 ago 2014, 3:31:01 p.m.22/8/2014
para httpf...@googlegroups.com
Just closing the loop here -- I've been using this improvement for a month and it works just as expected!  Saves me a few seconds a dozen times per day.  Thanks so much.
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos