Add a criteria for detection of Odoo instances (#9266)

* Add criteria

* Fix linter error
patch-1
Dominique RIGHETTO 2024-02-29 18:35:59 +01:00 committed by GitHub
parent 4ba2c8b57f
commit 0a01e784a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 3 deletions

View File

@ -2,7 +2,7 @@ id: odoo-panel
info:
name: Odoo - Panel Detect
author: DhiyaneshDK
author: DhiyaneshDK,righettod
severity: info
metadata:
vendor: odoo
@ -16,6 +16,11 @@ http:
- method: GET
path:
- "{{BaseURL}}/web/login"
- "{{BaseURL}}"
stop-at-first-match: true
host-redirects: true
max-redirects: 2
matchers-condition: and
matchers:
@ -23,8 +28,14 @@ http:
part: body
words:
- '<title>Odoo</title>'
- 'odoo.session_info'
- 'web.layout.odooscript'
condition: or
- type: word
part: body
words:
- 'Log in'
condition: and
- type: word
part: header
@ -34,4 +45,3 @@ http:
- type: status
status:
- 200
# digest: 4a0a00473045022100a4ee6283d4c0264ea8d9ac9e56e2c948d50afbb650ac84735d4978ada4bfcdf802207a1bf2401f730d11a14cc03bea4d3e2ac98aae9ad05856f7a41359be3b31eda1:922c64590222798bb761d5b6d8e72950