mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 14:05:28 +00:00
* Refactored header-based auth scans not to normalize the header names. * Removed the header validation as it's not really useful here. * adding docs --------- Co-authored-by: Mzack9999 <mzack9999@protonmail.com>
75 lines
1.7 KiB
YAML
75 lines
1.7 KiB
YAML
id: pd-nuclei-auth-test
|
|
|
|
info:
|
|
name: ProjectDiscovery Test Dev Servers
|
|
author: pdteam
|
|
description: |
|
|
This is a auth file for ProjectDiscovery dev servers.
|
|
It contains auth data of all projectdiscovery dev servers.
|
|
|
|
# Note: this is a dummy example file. none of the secrets here are real.
|
|
|
|
# static secrets
|
|
static:
|
|
# for header based auth session
|
|
# NOTE: Headers preserve exact casing (e.g., x-pdcp-key stays as x-pdcp-key)
|
|
# This is useful for APIs that require case-sensitive header names
|
|
- type: header
|
|
domains:
|
|
- api.projectdiscovery.io
|
|
- cve.projectdiscovery.io
|
|
- chaos.projectdiscovery.io
|
|
headers:
|
|
- key: x-pdcp-key
|
|
value: <api-key-here>
|
|
- key: barAuthToken
|
|
value: <auth-token-here>
|
|
|
|
# for query based auth session
|
|
- type: Query
|
|
domains:
|
|
- scanme.sh
|
|
params:
|
|
- key: token
|
|
value: 1a2b3c4d5e6f7g8h9i0j
|
|
|
|
# for cookie based auth session
|
|
- type: Cookie
|
|
domains:
|
|
- scanme.sh
|
|
cookies:
|
|
- key: PHPSESSID
|
|
value: 1a2b3c4d5e6f7g8h9i0j
|
|
|
|
# for basic auth session
|
|
- type: BasicAuth
|
|
domains:
|
|
- scanme.sh
|
|
username: test
|
|
password: test
|
|
|
|
# for authorization bearer token
|
|
- type: BearerToken
|
|
domains-regex:
|
|
- .*scanme.sh
|
|
- .*pdtm.sh
|
|
token: test
|
|
|
|
|
|
# dynamic secrets (powered by nuclei-templates)
|
|
dynamic:
|
|
- template: /path/to/wordpress-login.yaml
|
|
variables:
|
|
- name: username
|
|
value: pdteam
|
|
- name: password
|
|
value: nuclei-v3.2.0
|
|
type: Cookie
|
|
domains:
|
|
- localhost:8080
|
|
cookies:
|
|
- raw: "{{wp-global-cookie}}"
|
|
- raw: "{{wp-admin-cookie}}"
|
|
- raw: "{{wp-plugin-cookie}}"
|
|
|