Snort mailing list archives
Re: Snort and pcre error
From: Brian <bmc () snort org>
Date: Thu, 25 Mar 2004 16:10:57 -0500
On Thu, Mar 25, 2004 at 09:51:32AM -0800, James Nonya wrote:
Mar 25 10:53:36 gateway snort: FATAL ERROR: /etc/snort/rules/gateway.rules (62): unknown/extra pcre option encountered
Most of the regular expressions that NII provided have "issues" or are flat out broken. For example, the RE "/((\%3C)|<)[^\n]+((\%3E)|>)/I" is broken because the "I" is a pcretest specific option that dumps a bit of debugging info after parsing the RE.
pcre:"/((\%3C)|<)((\%2F)|\/)*[a-z0-9\%]+((\%3E)|>)/i";
This RE does parse properly, but I would not recommend using it. These are VERY painful, performance wise. Brian ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users
Current thread:
- Snort and pcre error James Nonya (Mar 25)
- Re: Snort and pcre error Brian (Mar 25)