mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Updates the CRS script to target the recent v3.0.0 release
This commit is contained in:
parent
3ab5c8057d
commit
8ceaf99d5d
@ -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."
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user