-
Notifications
You must be signed in to change notification settings - Fork 0
/
secrets.yaml
72 lines (66 loc) · 1.92 KB
/
secrets.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# static secrets
static:
- type: cookie
domains:
- pp-services.signin.education.gov.uk
cookies:
- key: session
value: SESSION_VALUE
- key: _csrf
value: CSRF_VALUE
# # 1. Basic Auth based auth
# - type: basicauth
# domains:
# - scanme.sh
# username: test
# password: test
# # 2. API Key (via query parameters) based auth
# - type: query
# domains:
# - example.com
# params:
# - key: token
# value: 1a2b3c4d5e6f7g8h9i0j
# # 3. Bearer Token based auth
# - type: bearertoken
# domains-regex:
# - .*scanme.sh
# - .*pdtm.sh
# token: test
# # 4. Custom Header based auth
# - type: header
# domains:
# - api.projectdiscovery.io
# - cve.projectdiscovery.io
# - chaos.projectdiscovery.io
# headers:
# - key: x-pdcp-key
# value: <api-key-here>
# 5. Cookie based auth
# - type: cookie
# domains:
# - scanme.sh
# cookies:
# - key: PHPSESSID
# value: 1a2b3c4d5e6f7g8h9i0j
# raw: "PHPSESSID=1a2b3c4d5e6f7g8h9i0j" (an alternative way to specify cookie value)
# dynamic secrets
# dynamic:
# # A example dynamic login of Wordpress using REST API
# - template: /path/to/wordpress-login.yaml
# variables:
# - name: username
# value: pdteam
# - name: password
# value: nuclei-fuzz
# input: auth-server.projectdiscovery.io # optional input/target, not required if target is hardcoded in template
# # once login is successful, this can be used in below templatized static secret
# type: cookie
# domains:
# - .*wp.*projectdiscovery.io
# cookies:
# - raw: "{{wp-global-cookie}}"
# - raw: "{{wp-admin-cookie}}"
# - raw: "{{wp-plugin-cookie}}"
# Note: This here (^) is a static secret in a templatized form
# so it can be any of the static secret type and not limited to just `cookie`.