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.




Network Security Snort-Signatures
[Top] [All Lists]

[Snort-sigs] Basic question [] syntax question about excluding a subnet

Subject: [Snort-sigs] Basic question [] syntax question about excluding a subnet of a larger subnet...
Date: Thu, 16 Mar 2006 15:38:16 -0500
Question...

What is the correct way to exclude a subnet from a larger network in a
signature?

var NET1 10.0.0.0/8
var NET2 10.7.0.0/16
var NET3 10.14.0.0/16

alert tcp [$NET1,!$NET2] ANY -> $NET3 ANY ...blah, blah, blah...

Is that the right way to watch for something from NET1 but not in NET2 going
to NET3??? I've seen sigs that do ![$NET2,$NET3] before but I have never
seen one where the ! was in the []. I could not find any examples of using a
! in [] so I'm not sure if this syntax is correct.

If it is not correct in a sig then is it correct in a var???

 var NET1 10.0.0.0/8
var NET2 10.7.0.0/16
var NET3 10.14.0.0/16
var NOTNET2 [$NET1,!$NET2]

then...

 alert tcp $NOTNET2 ANY -> $NET3 ANY ...blah, blah, blah...



Thx,
Wally
<Prev in Thread] Current Thread [Next in Thread>