Snort mailing list archives
RE: reading a new rule.
From: "samwun" <samwun () hgcbroadband com>
Date: Wed, 13 Aug 2003 09:09:29 +0800
-----Original Message----- From: snort-users-admin () lists sourceforge net [mailto:snort-users-admin () lists sourceforge net] On Behalf Of Erek Adams Sent: Monday, August 11, 2003 8:11 PM To: samwun Cc: Pig-A-Holics Anonymous Subject: RE: [Snort-users] reading a new rule. On Mon, 11 Aug 2003, samwun wrote:
I still have a problem here. I want snort detect the following signature: POST /index.html?crap=10601855 It is in the tcp data section. How can I write a rule for it and how
to
set it up and run by snort?
Read the docs [0]. Read the current rules for an example.
From web-misc.rules:
alert tcp $EXTERNAL_NET any -> $HOME_NET $HTTP_PORTS (msg:"WEB-MISC globals.pl access"; flow:to_server,established; uricontent:"/globals.pl"; reference:cve,CVE-2001-0330; reference:bugtraq,2671; classtype:web-application-activity; sid:2073; rev:1;) So modify that to work for your need. alert tcp $EXTERNAL_NET any -> $HOME_NET $HTTP_PORTS (msg:"WEB-MISC crap=10601855 access"; flow:to_server,established; uricontent:"/index.html?crap=10601855"; sid:1000001; rev:1;) Not too hard is it? It still didn't work. But I can see that tcpdump can record this traffic. I also tried all the following rules are not working: alert tcp any any -> any any (msg:"WEB-MISC 0 crap=10601855 access "; flow:to_server,established; uricontent:"/index.html?crap="; sid:1000001; rev:1;) alert tcp $EXTERNAL_NET any -> $HOME_NET $HTTP_PORTS (msg:"WEB-MISC 1 crap=10601855 access "; flow:to_server,established; uricontent:"/index.html?crap="; sid:1000001; rev:1;) alert tcp $EXTERNAL_NET $HTTP_PORTS -> $HOME_NET any (msg:"WEB-MISC 2 crap=10601855 access "; flow:to_server,established; uricontent:"/index.html?crap="; sid:1000001; rev:1;) I also assigned the following variable and values in snort.conf file: var HOME_NET 192.168.1.0/24 var EXTERNAL_NET 213.190.178.0/24 var HTTP_PORTS 8888 The snort command I used is: Snort -c /usr/local/snort.2.0.0/etc/snort.conf Thanks Sam ----- Erek Adams "When things get weird, the weird turn pro." H.S. Thompson [0] http://www.snort.org/docs/writing_rules/ ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01 /01 _______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users
Current thread:
- reading a new rule. samwun (Aug 10)
- Re: reading a new rule. Erek Adams (Aug 10)
- RE: reading a new rule. samwun (Aug 10)
- RE: reading a new rule. Erek Adams (Aug 11)
- RE: reading a new rule. samwun (Aug 12)
- can't execute a rule. samwun (Aug 13)
- capture any packet with an none-continue ID number samwun (Aug 13)
- Re: capture any packet with an none-continue ID number Erek Adams (Aug 13)
- Re: capture any packet with an none-continue ID number Matt Kettler (Aug 13)
- RE: reading a new rule. samwun (Aug 10)
- Re: reading a new rule. Erek Adams (Aug 10)