[Oisf-devel] I need to get URL from packet in *Match method

Victor Julien victor at inliniac.net
Thu Jun 23 12:15:56 UTC 2016


On 23-06-16 08:51, Ващенков Алексей wrote:
> I try to write custom detection module.
> 
> I need to get URL in http packet inside Match method.
> 
> How can do it? How can I access it inside Packet?

To get to the URI you'd have to do something like this:
https://github.com/inliniac/suricata/blob/master/src/detect-lua.c#L461

-- 
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------




More information about the Oisf-devel mailing list