[Bro-Dev] #948: add bif for URI -> binary decoding

Bro Tracker bro at tracker.bro.org
Thu Jun 13 07:54:02 PDT 2013

#948: add bif for URI -> binary decoding
  Reporter:  scampbell        |      Owner:
      Type:  Feature Request  |     Status:  new
  Priority:  Low              |  Milestone:  Bro2.2
 Component:  Bro              |    Version:  git/master
Resolution:                   |   Keywords:

Comment (by jsiwek):

 Replying to [comment:1 scampbell]:

 > http://code.google.com/p/auditing-

 I'm having trouble seeing how that's different from `unescape_URI`?  The
 return value of `unescape_URI` doesn't have non-ascii data escaped, but it
 will get rendered with it escaped in /x format when printing/logging:

 local f: file = open("test");
 local f2: file = open("test2");
 local s: string = unescape_URI("%FC");
 print s;
 print f2, s;
 print f, s;

 Prints `\xfc` to stdout, and the files have:

 $ hexdump test
 0000000 fc
 $ hexdump test2
 0000000 5c 78 66 63 0a

 So I think the actual data in the return value is what you want, but
 certain usages may provide the escaping.  Can you give an example of what
 you need?

Ticket URL: <http://tracker.bro.org/bro/ticket/948#comment:2>
Bro Tracker <http://tracker.bro.org/bro>
Bro Issue Tracker

More information about the bro-dev mailing list