Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
projectdiscovery
GitHub Repository: projectdiscovery/nuclei
Path: blob/dev/pkg/authprovider/authx/testData/example-auth.yaml
2070 views
1
id: pd-nuclei-auth-test
2
3
info:
4
name: ProjectDiscovery Test Dev Servers
5
author: pdteam
6
description: |
7
This is a auth file for ProjectDiscovery dev servers.
8
It contains auth data of all projectdiscovery dev servers.
9
10
# Note: this is a dummy example file. none of the secrets here are real.
11
12
# static secrets
13
static:
14
# for header based auth session
15
- type: header
16
domains:
17
- api.projectdiscovery.io
18
- cve.projectdiscovery.io
19
- chaos.projectdiscovery.io
20
headers:
21
- key: x-pdcp-key
22
value: <api-key-here>
23
24
# for query based auth session
25
- type: Query
26
domains:
27
- scanme.sh
28
params:
29
- key: token
30
value: 1a2b3c4d5e6f7g8h9i0j
31
32
# for cookie based auth session
33
- type: Cookie
34
domains:
35
- scanme.sh
36
cookies:
37
- key: PHPSESSID
38
value: 1a2b3c4d5e6f7g8h9i0j
39
40
# for basic auth session
41
- type: BasicAuth
42
domains:
43
- scanme.sh
44
username: test
45
password: test
46
47
# for authorization bearer token
48
- type: BearerToken
49
domains-regex:
50
- .*scanme.sh
51
- .*pdtm.sh
52
token: test
53
54
55
# dynamic secrets (powered by nuclei-templates)
56
dynamic:
57
- template: /path/to/wordpress-login.yaml
58
variables:
59
- name: username
60
value: pdteam
61
- name: password
62
value: nuclei-v3.2.0
63
type: Cookie
64
domains:
65
- localhost:8080
66
cookies:
67
- raw: "{{wp-global-cookie}}"
68
- raw: "{{wp-admin-cookie}}"
69
- raw: "{{wp-plugin-cookie}}"
70
71
72