diff --git a/technologies/apache-detect.yaml b/technologies/apache-detect.yaml index 90e0048a6b..bc95103681 100644 --- a/technologies/apache-detect.yaml +++ b/technologies/apache-detect.yaml @@ -1,6 +1,6 @@ id: apache-version-detect info: - name: Detect Apache Version + name: Apache Version author: philippedelteil description: Some Apache servers have the version on the response header. The OpenSSL version can be also obtained severity: info @@ -10,15 +10,18 @@ requests: - "{{BaseURL}}" matchers-condition: and matchers: - - type: regex - part: header - regex: - - "Apache+" - - type: status - status: - - 200 + + - type: regex + part: header + regex: + - "Apache+" + + - type: status + status: + - 200 + extractors: - type: kval part: header kval: - - Server + - Server \ No newline at end of file diff --git a/technologies/tomcat-detect.yaml b/technologies/tomcat-detect.yaml index 3e0ac769f7..d5a164932d 100644 --- a/technologies/tomcat-detect.yaml +++ b/technologies/tomcat-detect.yaml @@ -11,16 +11,19 @@ requests: - "{{BaseURL}}/something_not_existing_" matchers-condition: and matchers: + - type: word words: - "Apache Tomcat" + - type: status status: - 404 + extractors: - type: regex part: body name: version group: 2 - regex: - - '(