Skip to content

CodeStats API Test

ID: api-codestats

Severity: info

Author: daffainfo

Tags: token-spray,codestats

Automatic time tracking for programmers

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: 4b0a00483046022100b6afd36a1b9bf7a8d49d375e8b57d961b13fc01b95c92c57721b1991418ba021022100eb17d0f22bd30b015ef50ff38613f7238c36ecc3c25441023df5b26fd9462033:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/token-spray/api-codestats.yaml"

View on Github