syntax update

patch-1
bauthard 2020-09-24 23:46:21 +05:30
parent 6b1ec31424
commit 164075fb28
2 changed files with 17 additions and 11 deletions

View File

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

View File

@ -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:
- '(<h3>)(.*?)(</h3>)'
regex:
- '(<h3>)(.*?)(</h3>)'