Snort mailing list archives

Re: Understanding within


From: "lists () packetmail net" <lists () packetmail net>
Date: Wed, 15 Aug 2012 12:41:32 -0500

On 08/15/12 12:33, Joel Esler wrote:
You cannot apply content keywords to pcre.

(So, no, you can't do what you are asking)

Right but he could use the /R flag (like distance:0) to make the PCRE relative
to the last content match.  You could also just PCRE-up your within.

Example:

content:"bleh"; content:"blah" within:14;

pcre:"/bleh[^\r\n]{0,10}blah/";

PCRE version 7.8 2008-09-05

  re> /bleh[^\r\n]{0,10}blah/
data> blehblah
 0: blehblah
data> bleh1234567890blah
 0: bleh1234567890blah
data> bleh12345678901blah
No match
data>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Snort-sigs mailing list
Snort-sigs () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-sigs
http://www.snort.org


Please visit http://blog.snort.org for the latest news about Snort!


Current thread: