Snort mailing list archives
Re: How to write a snort rule match NO content GET or POST in http request
From: "Tran M. Thang" <tmthang () vncert vn>
Date: Mon, 30 Jul 2012 12:53:04 +0700 (ICT)
Thanks Sir, I make a rule and i got alert with it: alert tcp any any -> any 80 (msg:"No GET or POST http_method to Web-server"; flow:to_server,established ; pcre:!"/GET|POST/smi"; classtype:Web-application-attack; sid:1260736; rev:4;) ----- Original Message ----- From: "Shaiming Hsiung" <shaiming.hsiung () gmail com> To: "Alex Kirk" <akirk () sourcefire com> Cc: "Tran M. Thang" <tmthang () vncert vn>, snort-users () lists sourceforge net Sent: Friday, July 27, 2012 3:03:18 AM Subject: Re: [Snort-users] How to write a snort rule match NO content GET or POST in http request
That shouldn't work. You can't specify a content modifier to a PCRE; if you want the PCRE to operate just on the method, you need the /M flag.
Right, sorry: pcre: "/^([^GP]|G[^E]|GE[^T]|GET[^ ]|P[^O]|PO[^S]|POS[^T]|POST[^ ])/iM"; (I still hope this approach is valid). ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ 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 Please visit http://blog.snort.org to stay current on all the latest Snort news!
Current thread:
- How to write a snort rule match NO content GET or POST in http request Tran M. Thang (Jul 24)
- Re: How to write a snort rule match NO content GET orPOST in http request Lay, James (Jul 25)
- Re: How to write a snort rule match NO content GET orPOST in http request Andrew Torres (Jul 25)
- Re: How to write a snort rule match NO content GET orPOST in http request Lay, James (Jul 25)
- Re: How to write a snort rule match NO content GET orPOST in http request Andrew Torres (Jul 25)
- Re: How to write a snort rule match NO content GET orPOST in http request Joel Esler (Jul 25)
- Re: How to write a snort rule match NO content GET orPOST in http request Alex Kirk (Jul 25)
- Re: How to write a snort rule match NO content GET orPOST in http request Andrew Torres (Jul 25)
- Re: How to write a snort rule match NO content GET orPOST in http request Lay, James (Jul 25)
- Re: How to write a snort rule match NO content GET or POST in http request Alex Kirk (Jul 26)
- Re: How to write a snort rule match NO content GET or POST in http request Shaiming Hsiung (Jul 26)
- Re: How to write a snort rule match NO content GET or POST in http request Tran M. Thang (Jul 29)
- Re: How to write a snort rule match NO content GET or POST in http request waldo kitty (Jul 30)
- Re: How to write a snort rule match NO content GET or POST in http request kay (Jul 30)