From 8ceaf99d5d7e15dc8a8a5242a3f6d96ed0340645 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Fri, 11 Nov 2016 13:53:24 -0300 Subject: [PATCH] Updates the CRS script to target the recent v3.0.0 release --- test/benchmark/download-owasp-v3-rules.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/benchmark/download-owasp-v3-rules.sh b/test/benchmark/download-owasp-v3-rules.sh index e4666287..8a00713d 100755 --- a/test/benchmark/download-owasp-v3-rules.sh +++ b/test/benchmark/download-owasp-v3-rules.sh @@ -3,16 +3,11 @@ git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git owasp-v3 cd owasp-v3 -git checkout v3.0.0-rc1 +git checkout v3.0.0 -b tag3.0.0 cd - -echo 'Include "owasp-v3/modsecurity_crs_10_setup.conf.example"' >> basic_rules.conf +echo 'Include "owasp-v3/crs-setup.conf.example"' >> basic_rules.conf echo 'Include "owasp-v3/rules/*.conf"' >> basic_rules.conf - -# removes WEBSERVER_ERROR_LOG -cat owasp-v3/rules/REQUEST-20-PROTOCOL-ENFORCEMENT.conf | sed 's/SecRule WEBSERVER_ERROR_LOG/#SecRule WEBSERVER_ERROR_LOG/g' > owasp-v3/rules/REQUEST-20-PROTOCOL-ENFORCEMENT.conf.tmp -mv owasp-v3/rules/REQUEST-20-PROTOCOL-ENFORCEMENT.conf.tmp owasp-v3/rules/REQUEST-20-PROTOCOL-ENFORCEMENT.conf - echo "Done."