Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: [Snort-sigs] Matching question |
|---|---|
| Date: | Tue, 19 Jul 2005 09:36:10 -0400 |
On Tue, Jul 19, 2005 at 08:17:00AM -0500, Ron wrote:
Does "distance" mean absolute relative distance?
No.
distance = relative offset
within = relative depth
Here are a couple examples of packets (I'm going to mix hex and ascii where it's easier: "|FF 51 09 00 01 00 00 00 00|" "|FF 51 11 00 01 00 00 00|error text|00|"
To match the first 2 bytes, skip one byte, then match 4 bytes, you can
do that in to different ways.
Normally:
content:"|FF 51|"; depth:2; content:"|01 00 00 00|"; offset:4;
depth:4;
Via relative:
content:"|FF 51|"; depth:2; content:"|01 00 00 00|"; distance:1;
within:4;
Its really up to you which you choose. I prefer relative, but mostly
due to having to deal layers upon layers of protocols. If the rules
are relative, than I only have to maintain one set of distances.
Brian
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Snort-sigs mailing list
Snort-sigs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/snort-sigs
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Snort-sigs] Matching question, Ron |
|---|---|
| Next by Date: | Re: [Snort-sigs] Matching question, Ron |
| Previous by Thread: | Re: [Snort-sigs] Matching question, Ron |
| Next by Thread: | Re: [Snort-sigs] Matching question, Ron |
| Indexes: | [Date] [Thread] [Top] [All Lists] |