syntax update
parent
6b1ec31424
commit
164075fb28
|
@ -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
|
|
@ -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>)'
|
Loading…
Reference in New Issue