feat: update harbor-detect template
- Added version detection - Change the path - Updated the body matcherspatch-1
parent
de7abb3f09
commit
cf42536c40
|
@ -2,22 +2,37 @@ id: harbor-detect
|
||||||
|
|
||||||
info:
|
info:
|
||||||
name: Harbor Detect
|
name: Harbor Detect
|
||||||
author: pikpikcu
|
author: pikpikcu,daffainfo
|
||||||
severity: info
|
severity: info
|
||||||
|
description: Harbor is an open source trusted cloud native registry project that stores, signs, and scans content.
|
||||||
|
reference:
|
||||||
|
- https://github.com/goharbor/harbor
|
||||||
|
metadata:
|
||||||
|
verified: true
|
||||||
|
shodan-query: http.favicon.hash:657337228
|
||||||
tags: tech,harbor
|
tags: tech,harbor
|
||||||
|
|
||||||
requests:
|
requests:
|
||||||
- method: GET
|
- method: GET
|
||||||
path:
|
path:
|
||||||
- '{{BaseURL}}'
|
- '{{BaseURL}}/api/v2.0/systeminfo'
|
||||||
|
|
||||||
matchers-condition: and
|
matchers-condition: and
|
||||||
matchers:
|
matchers:
|
||||||
- type: word
|
- type: word
|
||||||
words:
|
|
||||||
- "<title>Harbor</title>"
|
|
||||||
part: body
|
part: body
|
||||||
|
words:
|
||||||
|
- '"auth_mode"'
|
||||||
|
- '"harbor_version"'
|
||||||
|
- '"harbor_version"'
|
||||||
|
condition: and
|
||||||
|
|
||||||
- type: status
|
- type: status
|
||||||
status:
|
status:
|
||||||
- 200
|
- 200
|
||||||
|
|
||||||
|
extractors:
|
||||||
|
- type: regex
|
||||||
|
group: 1
|
||||||
|
regex:
|
||||||
|
- '(?m)"harbor_version":"([0-9.]+)",'
|
||||||
|
|
Loading…
Reference in New Issue