SPDY Wireshark Plugin

1,547 views
Skip to first unread message

Hasan Khalil

unread,
Apr 11, 2012, 7:48:44 PM4/11/12
to spdy...@googlegroups.com
I've take the spdyshark code from the chromium tree, updated it for use with SPDY 2 and recent versions of Wireshark, and made the results available at http://code.google.com/p/spdyshark -- for those interested, please file tickets there for any problems you encounter.

For those less familiar with how to use Wireshark, I'll post some basic usage instructions soon.

Hasan Khalil

unread,
May 3, 2012, 5:28:42 PM5/3/12
to spdy...@googlegroups.com
Now updated with SPDY 3 support!

Stephen Donnelly

unread,
May 4, 2012, 2:04:56 AM5/4/12
to spdy-dev
On Apr 12, 11:48 am, Hasan Khalil <hkha...@google.com> wrote:
> I've take the spdyshark code from the chromium tree, updated it for use
> with SPDY 2 and recent versions of Wireshark, and made the results
> available athttp://code.google.com/p/spdyshark-- for those interested,
> please file tickets there for any problems you encounter.

Have you considered submitting your plugin to the Wireshark projec
directlyt? Or is it not considered stable yet?

The maintainers generally welcome new dissectors (preferred over
plugins), and if you get it in this month you should make the
Wireshark 1.8 stable release. There does not appear to be a SPDY
dissector in the Wireshark trunk currently.

Regards,
Stephen.

Hasan Khalil

unread,
May 4, 2012, 9:40:16 AM5/4/12
to spdy...@googlegroups.com
I would love to submit it for inclusion in Wireshark proper and am working to make this happen.

    -Hasan

Hark Lee

unread,
May 5, 2012, 10:22:12 AM5/5/12
to spdy...@googlegroups.com

so greate
2012. 5. 4. 오전 5:28에 "Hasan Khalil" <hkh...@google.com>님이 작성:

Marcelo Fernandez

unread,
May 16, 2012, 12:07:08 AM5/16/12
to spdy...@googlegroups.com
2012/5/3 Hasan Khalil <hkh...@google.com>:
Great!

I've found the plugin appears in Edit->Preferences->Protocols-SPDY
only if Wireshark is running as a normal user, and it isn't if
Wireshark is running as root; is this ok?

I'm using Ubuntu 12.04 x86_64, Wireshark 1.7.1 compiled from sources.

Regards
--
Marcelo F. Fernández
Buenos Aires, Argentina
Lic. en Sistemas de Información

E-Mail: ferna...@gmail.com
Web Site: http://www.marcelofernandez.info
Twitter: @fidelfernandez

Hark Lee

unread,
May 16, 2012, 7:45:18 AM5/16/12
to spdy...@googlegroups.com
does wireshark for windows support SPDY protocol?

2012/5/16 Marcelo Fernandez <ferna...@gmail.com>

William Chan (陈智昌)

unread,
May 16, 2012, 8:53:34 AM5/16/12
to spdy...@googlegroups.com
I think it hasn't been tested with Windows, so it probably doesn't work, but would not be difficult to port.

Hasan Khalil

unread,
May 16, 2012, 10:06:09 AM5/16/12
to spdy...@googlegroups.com
This depends on where and how the plugin was installed; I cannot reproduce this issue.

Marcelo Fernandez

unread,
May 16, 2012, 10:26:57 AM5/16/12
to spdy...@googlegroups.com
2012/5/16 Hasan Khalil <hkh...@google.com>:
> This depends on where and how the plugin was installed; I cannot reproduce
> this issue.
>
>
> On Wed May 16 00:07:08 GMT-400 2012, Marcelo Fernandez
> <ferna...@gmail.com> wrote:
>>
>> 2012/5/3 Hasan Khalil <hkh...@google.com>:
>> > Now updated with SPDY 3 support!
>> >
>> >
>> > On Wed Apr 11 19:48:44 GMT-400 2012, Hasan Khalil <hkh...@google.com>
>> > wrote:
>> >>
>> >> I've take the spdyshark code from the chromium tree, updated it for use
>> >> with SPDY 2 and recent versions of Wireshark, and made the results
>> >> available
>> >> at http://code.google.com/p/spdyshark -- for those interested, please
>> >> file
>> >> tickets there for any problems you encounter.
>> >>
>> >> For those less familiar with how to use Wireshark, I'll post some basic
>> >> usage instructions soon.
>>
>> Great!
>>
>> I've found the plugin appears in Edit->Preferences->Protocols-SPDY
>> only if Wireshark is running as a normal user, and it isn't if
>> Wireshark is running as root; is this ok?
>>
>> I'm using Ubuntu 12.04 x86_64, Wireshark 1.7.1 compiled from sources.
>>

Ok, anyway I used setcap to give the dumpcap binary CAP_NET_RAW and
CAP_NET_ADMIN permissions [1]. This way I can use Wireshark as a user
and capture packets in promiscuous mode.

[1] sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/dumpcap

Thank you

Hasan Khalil

unread,
May 16, 2012, 10:29:58 AM5/16/12
to spdy...@googlegroups.com
As an aside, this is a much better way of doing things anyway...

s1mp

unread,
May 22, 2012, 9:46:58 AM5/22/12
to spdy...@googlegroups.com
I've tried SPDYShark two times but never got a result...
I compiled Wireshark with the SPDY plugin and started it successfully but never got a SPDY Packet with it and i am sure my server and the client talk spdy...
do u have any results?

Marcelo Fernandez

unread,
May 22, 2012, 12:05:17 PM5/22/12
to spdy...@googlegroups.com
2012/5/22 s1mp <e.goe...@googlemail.com>:
> I've tried SPDYShark two times but never got a result...
> I compiled Wireshark with the SPDY plugin and started it successfully but
> never got a SPDY Packet with it and i am sure my server and the client talk
> spdy...
> do u have any results?

If you are using SPDY over SSL (usually required by Chrome/Firefox),
you must decrypt the SSL session first. See:

http://japhr.blogspot.com.ar/2011/05/ssl-that-can-be-sniffed-by-wireshark.html

However, I've found a bug (don't know if the main developer saw it yet):

http://code.google.com/p/spdyshark/issues/detail?id=1

Regards

Hasan Khalil

unread,
May 22, 2012, 1:34:02 PM5/22/12
to spdy...@googlegroups.com
Thanks for pointing me at said bug. Apparently Google Code doesn't automatically notify the project creator with new issues on said project -- it's opt-in only. Well, I've opted in now.

Please file an issue via http://code.google.com/p/spdyshark/issues if you find any other issues. Thanks!

Marcelo Fernandez

unread,
May 22, 2012, 2:22:48 PM5/22/12
to spdy...@googlegroups.com
2012/5/22 Hasan Khalil <hkh...@google.com>:
> Thanks for pointing me at said bug. Apparently Google Code doesn't
> automatically notify the project creator with new issues on said project --
> it's opt-in only. Well, I've opted in now.

Great, I thought you were on vacations or something like that :-P

> Please file an issue via http://code.google.com/p/spdyshark/issues if you
> find any other issues. Thanks!

Ok, I've uploaded the key and the pcap example for you can reproduce
this problem.

Thank you

Hasan Khalil

unread,
May 22, 2012, 3:37:31 PM5/22/12
to spdy...@googlegroups.com
Perfect, thanks!
Reply all
Reply to author
Forward
0 new messages