Skip to main content
DirkDuesentrieb
New Member
September 14, 2017
Question

convert "diag sniffer" to pcap: new tool

  • September 14, 2017
  • 10 replies
  • 41277 views

Hi,

 

I created a small program that helps firewall admins to create Wireshark comaptible pcap files on diskless Fortigate models. You can find the "fgsniffer" here on Github.

It works for me on Windows and Linux, now I need some testers!

Feedback is welcome.

Cheers,

 

Dirk

    10 replies

    oheigl
    New Member
    September 15, 2017

    Hi Dirk,

    I just tried it with a trace I took yesterday, and it doesn't seem to work. There is only one packet (should be 259) and Wireshark tells me that the FCS is incorrect. No other packets are listed.

     

    I appreciate the work you put into this, but why don't you use the compiled version linked in this KB: http://kb.fortinet.com/kb/documentLink.do?externalID=FD30877

    Did it not work for you?

    Kind regards

    DirkDuesentrieb
    New Member
    September 15, 2017

    I tried only the original perl and this created only empty output or errors depending on the perl version. The compiled version works (on Windows) and produces a valid pcap file. Still the times are not considering the time zone, they are off by two for me.

     

    Can you provide one ore two packets of your test capture, that didn't match? I think my regex doesn't match, because of some little difference. I'd like to fix that.

     

    Cheers,

     

    Dirk

    oheigl
    New Member
    September 15, 2017

    Yeah I usually fix the time zone problem with Wireshark and Time Shift. I sent you a PM, hope the formatting is somewhat correct, otherwise just tell me 

    Greetings!

    walda1c
    New Member
    July 11, 2024

    Nice tool Dirk! I do however receive runtime errors when file is too large

    200+MB

    panic:runtime error: slice bounds out of range [:39] with length 32

     

     

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!