mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
- For OWASP v2 rules, switch to a v2 tag for the paths referenced in the rest of the script to apply.
14 lines
273 B
Bash
Executable File
14 lines
273 B
Bash
Executable File
#!/bin/bash
|
|
|
|
|
|
git clone https://github.com/coreruleset/coreruleset.git owasp-v3
|
|
cd owasp-v3
|
|
git checkout v3.0.2 -b tag3.0.2
|
|
cd -
|
|
|
|
echo 'Include "owasp-v3/crs-setup.conf.example"' >> basic_rules.conf
|
|
echo 'Include "owasp-v3/rules/*.conf"' >> basic_rules.conf
|
|
|
|
echo "Done."
|
|
|