nuclei-templates/http/token-spray/api-petfinder.yaml

37 lines
1.0 KiB
YAML
Raw Normal View History

2021-11-11 01:11:01 +00:00
id: api-petfinder
info:
name: Petfinder API Test
author: daffainfo
severity: info
description: Petfinder is dedicated to helping pets find homes, another resource to get pets adopted
2021-11-11 01:11:01 +00:00
reference:
- https://www.petfinder.com/developers/v2/docs/
- https://github.com/daffainfo/all-about-apikey/tree/main/petfinder
metadata:
max-request: 1
2023-10-14 11:27:55 +00:00
tags: token-spray,petfinder
2021-11-11 01:11:01 +00:00
self-contained: true
2023-10-14 11:27:55 +00:00
http:
2021-11-11 01:11:01 +00:00
- raw:
2021-11-11 05:04:08 +00:00
- |
2023-10-14 11:27:55 +00:00
POST https://api.petfinder.com/v2/oauth2/token HTTP/1.1
Host: api.petfinder.com
Content-Type: application/x-www-form-urlencoded
Content-Length: 81
2021-11-11 01:11:01 +00:00
2023-10-14 11:27:55 +00:00
grant_type=client_credentials&client_id={{id}}&client_secret={{secret}}
2021-11-11 01:11:01 +00:00
matchers:
- type: word
part: body
words:
- '"token_type"'
- '"expires_in"'
- '"access_token"'
2021-11-11 05:02:13 +00:00
condition: and
# digest: 490a0046304402205df678454684e798c9f3bfe4c88e7b86a5fe36217b85109635c57b13df65cbc702202539e9116f2321678f5c72b1f510e253761d1e1c425ee6cd15fcdc3bac2f77e5:922c64590222798bb761d5b6d8e72950