[Snort-sigs] Understanding within

Joel Esler jesler at ...435...
Wed Aug 15 13:33:57 EDT 2012


Within says the content it's applied to must be "within" the bytes specified, starting from the end of the last content match, or the distance pointer.  The 'data offset end' (or DOE).

You cannot apply content keywords to pcre.

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



On Aug 15, 2012, at 1:27 PM, James Lay <jlay at ...3266...> wrote:

> On 2012-08-15 11:19, lists at ...3397... wrote:
>> On 08/15/12 12:13, James Lay wrote:
>>> I know I'm missing something (no surprise there), but not sure
>>> what...any help would uh...help :)  Thanks!
>> 
>> Check out
>> 
>> http://blog.joelesler.net/2010/03/offset-depth-distance-and-within.html
>> 
>> Your within value must also account for the byte size of the content
>> match itself.
>> 
>> content:"bleh"; content:"bleh again"; within:30;
>> 
>> The above means there can be 20 bytes between "bleh" and "bleh 
>> again".
>> 
> 
> 
> 
> Thank you.  A question I have is do we treat pcre as a...."content"?
> 
> content:"ick"; pcre:/"bleh"/"; within:30;
> 
> saying that there can be 30 bytes between "ick" and "bleh"?  Or how 
> does pcre fit in the scheme of content?  Danke :)
> 
> James
> 
> ------------------------------------------------------------------------------
> 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 at 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!





More information about the Snort-sigs mailing list