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]

Re: [Snort-sigs] rule for Non-SSL traffic on SSL port?

Subject: Re: [Snort-sigs] rule for Non-SSL traffic on SSL port?
Date: Fri, 23 Jun 2006 20:51:16 -0400
Russell Fulton wrote:
So, list:  How does one write a set of rules that will look for
something in the first packet of a TCP session to a particular port?
I have done rules to mark the "first packet" in a session, but not 
conditionally, since you need to fire a couple of rules in sequence on 
that first packet for it to work correctly.  There's a lot of "smoke and 
mirrors" surrounding the order in which rules are processed -- and it's 
not necessarily sequentially as they appear in the rules files.  It 
isn't documented anywhere either (that I know of) other than as source 
code :)

The basic idea is...

alert tcp $HOME_NET any -> $EXTERNAL_NET $your_port (flags:S+; flowbits: 
set,flowstart; flowbits: noalert;)

alert tcp $HOME_NET any -> $EXTERNAL_NET $your_port (flow: established; 
flowbits: isset,flowstart; content:"whatever";)

alert tcp $HOME_NET any -> $EXTERNAL_NET $your_port (flowbits: 
isset,flowstart; flowbits: unset,flowstart;)

which should work if the rules are processed in that order.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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>