diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-10 20:35:51 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-07-10 20:35:51 +0300 |
commit | c97dc3044a0883533a8b36f8eb0e39426aa2ddb4 (patch) | |
tree | e233aa589f5e1b38f30d83f4c73a6d4d8071e4df /include/tests_webservers | |
parent | d41b1d9c5fc265c327c65fc85d01a2430216f5c1 (diff) |
Use exit code instead of ITEM_FOUND value
Diffstat (limited to 'include/tests_webservers')
-rw-r--r-- | include/tests_webservers | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/tests_webservers b/include/tests_webservers index 5d0907b9..dfe8aabc 100644 --- a/include/tests_webservers +++ b/include/tests_webservers @@ -251,8 +251,7 @@ Register --test-no HTTP-6640 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Determining existence of specific Apache modules" if [ ${SKIPTEST} -eq 0 ]; then # Check modules, module - CheckItem "apache_module" "/mod_evasive([0-9][0-9])?.so" - if [ ${ITEM_FOUND} -eq 1 ]; then + if CheckItem "apache_module" "/mod_evasive([0-9][0-9])?.so"; then Display --indent 10 --text "mod_evasive: anti-DoS/brute force" --result "${STATUS_FOUND}" --color GREEN AddHP 3 3 else @@ -271,8 +270,7 @@ Register --test-no HTTP-6641 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Determining existence of specific Apache modules" if [ ${SKIPTEST} -eq 0 ]; then # Check modules, module - CheckItem "apache_module" "/mod_(reqtimeout|qos).so" - if [ ${ITEM_FOUND} -eq 1 ]; then + if CheckItem "apache_module" "/mod_(reqtimeout|qos).so"; then Display --indent 10 --text "mod_reqtimeout/mod_qos" --result "${STATUS_FOUND}" --color GREEN AddHP 3 3 else @@ -290,8 +288,7 @@ Register --test-no HTTP-6643 --preqs-met ${PREQS_MET} --weight L --network NO --category security --description "Determining existence of specific Apache modules" if [ ${SKIPTEST} -eq 0 ]; then # Check modules, module - CheckItem "apache_module" "/mod_security2.so" - if [ ${ITEM_FOUND} -eq 1 ]; then + if CheckItem "apache_module" "/mod_security2.so"; then Display --indent 10 --text "ModSecurity: web application firewall" --result "${STATUS_FOUND}" --color GREEN AddHP 3 3 else |