Snort - the de facto standard for intrusion detection/prevention
next up previous contents
Next: pcre Up: isdataat Previous: Format   Contents

Example

alert tcp any any -> any 111 (content:"PASS"; isdataat:50,relative; \ 
   content:!"|0a|"; distance:0;)
This rule looks for the string PASS exists in the packet, then verifies there is at least 50 bytes after the end of the string PASS, then verifies that there is not a newline character within 50 bytes of the end of the PASS string.



Steven Sturges 2007-10-04