Add 4 templates token-spray

patch-1
daffainfo 2021-11-06 11:27:25 +07:00
parent 3e12441f6d
commit f4ca5c6512
5 changed files with 111 additions and 5 deletions

View File

@ -0,0 +1,23 @@
id: api-covalent
info:
name: Covalent API Test
author: daffainfo
severity: info
reference:
- https://www.covalenthq.com/docs/api/
- https://github.com/daffainfo/all-about-apikey/blob/main/Blockchain/Covalent.md
tags: token-spray,covalent
self-contained: true
requests:
- method: GET
path:
- "https://api.covalenthq.com/v1/3/address/balances_v2/?&key={{token}}"
matchers:
- type: word
part: body
negative: true
words:
- 'Invalid API key'

View File

@ -0,0 +1,23 @@
id: api-etherscan
info:
name: Etherscan API Test
author: daffainfo
severity: info
reference:
- https://docs.etherscan.io/
- https://github.com/daffainfo/all-about-apikey/blob/main/Blockchain/Etherscan.md
tags: token-spray,etherscan
self-contained: true
requests:
- method: GET
path:
- "https://api.etherscan.io/api?module=account&action=balance&address=0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae&tag=latest&apikey={{token}}"
matchers:
- type: word
part: body
negative: true
words:
- 'Invalid API Key'

View File

@ -0,0 +1,28 @@
id: api-nownodes
info:
name: Nownodes API Test
author: daffainfo
severity: info
reference:
- https://nownodes.io/
- https://github.com/daffainfo/all-about-apikey/blob/main/Blockchain/Nownodes.md
tags: token-spray,nownodes
self-contained: true
requests:
- raw:
- |
GET /api HTTP/1.1
Host: bsc-blockbook.nownodes.io
api-key: {{token}}
Content-Type: application/json
matchers:
- type: word
part: body
words:
- '"coin":'
- '"host":'
- '"version":'
condition: and

View File

@ -4,7 +4,9 @@ info:
name: TheCatApi API Test name: TheCatApi API Test
author: daffainfo author: daffainfo
severity: info severity: info
reference: https://docs.thecatapi.com/ reference:
- https://docs.thecatapi.com/
- https://github.com/daffainfo/all-about-apikey/blob/main/Animals/TheCatApi.md
tags: token-spray,thecatapi tags: token-spray,thecatapi
self-contained: true self-contained: true
@ -16,7 +18,10 @@ requests:
x-api-key: "{{token}}" x-api-key: "{{token}}"
matchers: matchers:
- type: status - type: word
negative: true part: body
status: words:
- 401 - 'id":'
- 'image_id":'
- 'sub_id":'
condition: and

View File

@ -0,0 +1,27 @@
id: api-thedogapi
info:
name: TheDogApi API Test
author: daffainfo
severity: info
reference:
- https://docs.thedogapi.com/
- https://github.com/daffainfo/all-about-apikey/blob/main/Animals/TheDogApi.md
tags: token-spray,thedogapi
self-contained: true
requests:
- method: GET
path:
- "https://api.thedogapi.com/v1/votes"
headers:
x-api-key: "{{token}}"
matchers:
- type: word
part: body
words:
- 'id":'
- 'image_id":'
- 'sub_id":'
condition: and