nuclei-templates/token-spray/api-codestats.yaml

35 lines
802 B
YAML

id: api-codestats
info:
name: CodeStats API Test
author: daffainfo
severity: info
description: Automatic time tracking for programmers
reference:
- https://codestats.net/api-docs
- https://github.com/daffainfo/all-about-apikey/tree/main/codestats
tags: token-spray,codestats
self-contained: true
requests:
- raw:
- |
POST https://codestats.net/api/my/pulses HTTP/1.1
Host: codestats.net
X-API-Token: {{token}}
{
"coded_at": "2016-04-24T01:43:56+12:00",
"xps": [
{"language": "C++", "xp": 15},
{"language": "Elixir", "xp": 30},
{"language": "EEx", "xp": 3}
]
}
matchers:
- type: word
part: body
words:
- '"Great success!"'