updated matchers

patch-11
Ritik Chaddha 2024-09-09 21:20:07 +04:00 committed by GitHub
parent 8d58be1b87
commit 5bebea33d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 5 deletions

View File

@ -9,17 +9,25 @@ info:
- https://www.ibm.com/products/api-connect/developer-portal - https://www.ibm.com/products/api-connect/developer-portal
metadata: metadata:
max-request: 1 max-request: 1
tags: panel,ibm,detect,login tags: panel,ibm,api,detect,login
http: http:
- method: GET - method: GET
path: path:
- '{{BaseURL}}/auth/manager/sign-in/' - '{{BaseURL}}/auth/manager/sign-in/'
- '{{BaseURL}}'
stop-at-first-match: true
host-redirects: true
max-redirects: 2
matchers-condition: and
matchers: matchers:
- type: dsl - type: dsl
dsl: dsl:
- 'status_code == 200' - 'status_code == 200 || status_code == 404'
- 'contains(to_lower(body), "ibm api connect")'
- 'contains(to_lower(body), "window.apiconnectcfg")' - type: dsl
condition: and dsl:
- 'contains_any(to_lower(body), "content=\"ibm api connect", "ibm api connect</title>")'
- 'contains_all(to_lower(body), "window.apiConnectCfg", "ibm-cloud", "<title>api connect")'
condition: or