Snort mailing list archives
Re: How to wite snort rule with "OR" condition without PCRE
From: Balasubramaniam Natarajan <bala150985 () gmail com>
Date: Mon, 9 Jul 2012 10:33:06 +0530
On Mon, Jul 9, 2012 at 9:45 AM, Tran M. Thang <tmthang () vncert vn> wrote:
Dear Mr. Balasubramaniam Natarajan Thanks you for your answer! I want to use http_method with POST method. I try using two conditions together, but the rule doen't work. So please me! the rule likes: alert TCP any any $HTTP_SERVER (msg "SQL Injection detected";flow:established,to_server; content:"POST", nocase, http_method, ;pcre:"/(\%27)|(\')|(\-\-)|(%23)|(#)/i"; classtype:Web-application-attack; sid:9099; rev:1;) So please help me to correct it!
I have corrected the same, try this one. If you have and if you could, could you please share me the PCAP off the list. alert TCP any any $HTTP_SERVER $HTTP_PORTS (msg "SQL Injection detected"; flow:established,to_server; content:"POST", nocase, http_method; pcre:"/(\x25\x27)|(\x27)|(\x2d\x2d)|(\x2523)/U"; classtype:Web-application-attack; sid:9099; rev:1;) This would match any thing in the URL of the following format with HTTP POST method %' or ' or -- or %# -- Regards, Balasubramaniam Natarajan www.etutorshop.com/moodle/
------------------------------------------------------------------------------ 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:
- Re: How to wite snort rule with "OR" condition without PCRE Balasubramaniam Natarajan (Jul 08)