Snort mailing list archives
distance, within, and negated matches
From: L0rd Ch0de1m0rt <l0rdch0de1m0rt () gmail com>
Date: Fri, 29 Jun 2012 10:41:51 -0500
Hello. Let's say I want to alert on 'foo' in the http uri but not if 'bar' or 'xyz' come after it and are within 16 bytes. I have: content:"foo"; http_uri; content:!"bar"; http_uri; within:16; conent:!"xyz"; http_uri; within:16; Will this work? Basically, if you have two negated content matches in a row with 'within', do they both match relative to the last non-negated content match or does the buffer pointer move with the first negated content match and apply to the second negated content match? If the latter, I guess you would have to do something like this, right?: content:"foo"; http_uri; content:!"bar"; http_uri; within:16; conent:!"xyz"; http_uri; within:13; Or would you have to rematch like this?: content:"foo"; http_uri; content:!"bar"; http_uri; within:16; content:"foo"; http_uri; conent:!"xyz"; http_uri; within:16; Cheers, Lord C.
------------------------------------------------------------------------------ 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:
- distance, within, and negated matches L0rd Ch0de1m0rt (Jul 01)
- Re: distance, within, and negated matches Patrick Mullen (Jul 01)