Updates the CRS script to target the recent v3.0.0 release

This commit is contained in:
Felipe Zimmerle 2016-11-11 13:53:24 -03:00
parent 3ab5c8057d
commit 8ceaf99d5d
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -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."