2022-02-14 17:20:32 +00:00
|
|
|
id: cobbler-version
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Cobbler Version Detection
|
|
|
|
author: c-sh0
|
|
|
|
severity: info
|
|
|
|
description: Obtain cobbler version information
|
|
|
|
tags: tech,cobbler,api
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2022-02-14 17:20:32 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-02-14 17:20:32 +00:00
|
|
|
- method: POST
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/cobbler_api"
|
|
|
|
|
|
|
|
body: |
|
|
|
|
<?xml version='1.0'?>
|
|
|
|
<methodCall>
|
|
|
|
<methodName>extended_version</methodName>
|
|
|
|
<params></params>
|
|
|
|
</methodCall>
|
|
|
|
|
|
|
|
headers:
|
|
|
|
Content-Type: text/xml
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '<name>version</name>'
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- "<value><string>([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3})</string></value>"
|