2022-03-26 09:32:06 +00:00
|
|
|
id: api-cloudflare
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Cloudflare API Test
|
|
|
|
author: ffffffff0x
|
|
|
|
severity: info
|
|
|
|
reference:
|
|
|
|
- https://dash.cloudflare.com/profile/api-tokens
|
|
|
|
tags: token-spray,cloudflare
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2022-03-26 09:32:06 +00:00
|
|
|
|
|
|
|
self-contained: true
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-03-26 09:32:06 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET https://api.cloudflare.com/client/v4/user/tokens/verify HTTP/1.1
|
|
|
|
Host: api.cloudflare.com
|
|
|
|
Authorization: Bearer {{token}}
|
|
|
|
Content-Type:application/json
|
|
|
|
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- 'This API Token is valid and active'
|