News for hackers. Stuff that matters.
Re:Wssdl – WireShark-Specific Dissector Language by rwmj on Monday October 31, 2016 @09:11AM (#12836360)
Interesting, but surprising they didn't look at how Erlang bit syntax works. http://erlang.org/doc/programming_examples/bit_syntax.html

It's considerably more flexible, much more elegant, and (in Erlang) battle-tested.

I wrote an Erlang-inspired version of bitstrings for OCaml: https://people.redhat.com/~rjones/bitstring/html/Bitstring.h...

Re:Wssdl – WireShark-Specific Dissector Language by Snaipe on Monday October 31, 2016 @09:31AM (#12836505)
This is because wssdl is still within the boundaries of the lua grammar: the file you provide is still lua, so you have to abide by its rule.

I experimented with a key/value approach on the syntax itself (something like `{ src_port = u16 }` or `{ src_port = 16 }`), which was nicer, but the problem was that, in lua, table literals are unordered. The current approach uses the method syntax (`a:b()`) as a nice workaround, but this mandates the use of parenthesis after the type and other specifiers. This is fine though since a lot of the provided types are parameterized (e.g. `bytes(n)` which takes a number of octets)

Re:Wssdl – WireShark-Specific Dissector Language by davidw on Monday October 31, 2016 @03:00PM (#12839852)
Agreed on the syntax, but Erlang probably isn't as easy to integrate. It's a system that very much likes to be the center of its world.
Re:Wssdl – WireShark-Specific Dissector Language by sigill on Monday October 31, 2016 @09:05AM (#12836316)
Great idea! I have always felt that the Wireshark Lua bindings are not ready-to-use enough. They feel like the ugly stepchild of Wireshark.

In the last dissector I wrote, which was about 1000 lines of Lua, I built a very limited structure definition parser, not completely unlike wssdl. I did it to cut down on the repetitive code needed parse the structures: Typically I parse every field twice: Once to add it to the dissection tree and once to get its value as a Lua-held variable.

I'll definitely be using wssdl in my next dissector!

Re:Wssdl – WireShark-Specific Dissector Language by dexwiz on Monday October 31, 2016 @10:52AM (#12837236)
Naming consideration, WSDL is already a very common name for XML API description files.
Re:Wssdl – WireShark-Specific Dissector Language by problems on Monday October 31, 2016 @06:31PM (#12841556)
Interesting alternative if you're looking for something for your own tools: http://kaitai.io/
Re:Wssdl – WireShark-Specific Dissector Language by ris on Monday October 31, 2016 @04:43PM (#12840761)
Hooray does this mean the end of embarrassing Wireshark vulnerabilities?
Re:Wssdl – WireShark-Specific Dissector Language by ythl on Monday October 31, 2016 @10:01AM (#12836733)
What does GPL3 license mean in the context of Wssdl? That if I write a dissector with it then it has to be open sourced?
Re:Wssdl – WireShark-Specific Dissector Language by Snaipe on Monday October 31, 2016 @10:10AM (#12836807)
This means that if you distribute your dissector, you have to make your sources available.

This is nothing new though: all wireshark plugins must be GPL, since the API itself they rely on is GPL.

Re:Wssdl – WireShark-Specific Dissector Language by bch on Monday October 31, 2016 @11:45AM (#12837819)
v3 means that if it's used (even over a network) by somebody, they can request the code, versus GPLv2 (Wireshark license), which says if you distribute binaries of Wireshark or software based on it, you must provide the source. The difference is that you could theoretically provide a web interface to a GPLv2 project and not need to supply the source, but if you provide such an interface to GPLv3 software, you could receive a request for the code.

EDIT: I'm not entirely correct There are provisions for the network situation ("ASP (application service provider) loophole") I described, but I looks like it's not necessarily the default mode. See [0][1].

[0] https://en.wikipedia.org/wiki/GNU_General_Public_License

[1] https://en.wikipedia.org/wiki/Affero_General_Public_License

Re:Wssdl – WireShark-Specific Dissector Language by Manozco on Monday October 31, 2016 @11:47AM (#12837858)
Nop The 'over the network' stuff is AGPL
Re:Wssdl – WireShark-Specific Dissector Language by LukeShu on Monday October 31, 2016 @03:18PM (#12840006)
The GNU GPL v3 does not contain such a provision. However, a different license, the GNU AGPL v3, does. Your post is entirely incorrect regarding the GPLv3.

As Wikipedia notes, some drafts of the GPLv3 contained such a provision, but this did not make it into the final version.

Re:Wssdl – WireShark-Specific Dissector Language by saynsedit on Monday October 31, 2016 @10:10AM (#12836805)
Only if you release it.