id: cobbler-version
info:
name: Cobbler Version Detection
author: c-sh0
severity: info
description: Obtain cobbler version information
tags: tech,cobbler,api
metadata:
max-request: 1
http:
- method: POST
path:
- "{{BaseURL}}/cobbler_api"
body: |
extended_version
headers:
Content-Type: text/xml
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- 'version'
extractors:
- type: regex
part: body
group: 1
regex:
- "([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3})"