[Bro] Hex and bit expressions in Bro scripts ?

anthony kasza anthony.kasza at gmail.com
Tue Dec 30 14:07:31 PST 2014


Nope. Neither are supported in the bro language. You could write a wrapper
function and compile it into the core or a core plugin.

-AK
On Dec 30, 2014 1:14 PM, "John Donnelly" <jdonnelly at dyn.com> wrote:

> Hi,
>
>  Can bro scripts not handle binary and bit expressions ?
>
>  local  temp  = 32;
>
>   If ( temp  & 0x20)  {
>
>   }
>
>   I didn't see a list of expressions in the online guide.
>
>   Also , I tried to add binary variables  in the Ascii (tab separated
> files) it reads and it complained too:
>
>
>  #field   count
> 1      0x20
>
>
> Pointers welcomed.
>
>
>
>
>
> _______________________________________________
> Bro mailing list
> bro at bro-ids.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/bro
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/bro/attachments/20141230/e5474482/attachment.html 


More information about the Bro mailing list