mirror of
https://github.com/projectdiscovery/nuclei-templates.git
synced 2026-02-01 00:03:39 +08:00
29 lines
703 B
YAML
29 lines
703 B
YAML
id: api-github
|
|
|
|
info:
|
|
name: GitHub API Test
|
|
author: zzeitlin
|
|
severity: info
|
|
reference:
|
|
- https://docs.github.com/en/rest/reference/users
|
|
metadata:
|
|
max-request: 1
|
|
tags: token-spray,github
|
|
|
|
self-contained: true
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "https://api.github.com/user"
|
|
|
|
headers:
|
|
Authorization: Basic {{base64('user:' + token)}}
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- '"login":'
|
|
- '"avatar_url":'
|
|
condition: and
|
|
# digest: 4a0a00473045022100fecb8aac52dc371cae6d56a8451740f0f8f4171e3020c3f869836864e60f51f20220143c0471ce7c29b770f694fc69149f041009bdd980a8cdbef609d6989e8cf04f:922c64590222798bb761d5b6d8e72950 |