[Bro-Dev] How to Print string in Bro

Hui Lin hlin33 at illinois.edu
Wed Aug 10 22:28:13 PDT 2011


I am writing a bro event handler with one argument as "string" type. The
string is actually treated as a byte stream but not ended with '\0' in Bro.
I am wondering is there any way to print the hexadecimal value of each byte
in this string (including how to index each byte within the string). I know
that %s can print string, but it prints out the ASCII code, which sometimes
is hard to decode.


Hui Lin
Research Assistant
DEPEND Research Group, ECE Department
University of Illinois at Urbana-Champaign
hlin33 at illinois.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.icsi.berkeley.edu/pipermail/bro-dev/attachments/20110810/fc38e26d/attachment.html 

More information about the bro-dev mailing list