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

40 lines
1.0 KiB
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
metadata:
max-request: 1
tags: token-spray,codestats
self-contained: true
http:
- 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!"'
# digest: 4b0a00483046022100e43297cf4a87a86b76c1e936f41eed084eea8a903cd431158894657559fa8e81022100cfd89d2407870e297e8050fef0177e7ca76e4805ebd55be4afe87f9169daf28c:922c64590222798bb761d5b6d8e72950