testing performances of binpac's parser

Hello everybody,

I would like to test a binpac’s generated parser that I wrote. Is there a handy way to get the C++ code running on some payload of my choice? I guess there is but it would be helpful if somebody gives a hint on where to start!

thanks in advance
Cheers, Tomas

Hi,

I would like to test a binpac's generated parser that I wrote. Is there
a handy way to get the C++ code running on some payload of my choice? I
guess there is but it would be helpful if somebody gives a hint on where
to start!

I actually recently did this for a research project where I used binpac to
parse a X.509 data structure in a standalone project. The source code is
up here: https://github.com/0xxon/sct-utils

The interesting utility is extractSCT. Note that to be able to use binpac
completely without Bro you need to patch binpac.h a little bit; if I
remember it correctly it does include Bro header files by default (that
are not really necessary in a standalone utility).

I hope this helps,
Johanna

Thanks, I'll check that out!

Tomas