Skip to content

Commit 1a7397a

Browse files
authored
Merge pull request #64 from dwisiswant0/docs/nuclei/add-skipping-secret-file-spec
docs(nuclei): add skipping secret file spec
2 parents 9e832ff + afd46a1 commit 1a7397a

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

tools/nuclei/authenticated-scans.mdx

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,29 @@ Since authentication can be done in multiple ways, for example, using 3rd party
6363
- **Hashicorp Vault**
6464
- **AWS Secrets Manager**
6565

66+
### Skipping Secret File
67+
68+
<Note>This feature is available in Nuclei **v3.3.1**.</Note>
69+
70+
If you provide a secret file to the Nuclei engine, it will automatically configure authentication or authorization for each request in the executed templates. In case you want to skip the secret configuration from the secret file and instead use hardcoded secrets or variables in specific templates, you can use the `skip-secret-file` _(bool)_ option. By setting this property to **true**, Nuclei will not apply the secrets to each request in that templates.
71+
72+
**Example**
73+
74+
```yaml
75+
variables:
76+
username: foo
77+
password: bar
78+
79+
http:
80+
- raw:
81+
- |
82+
GET /some-restricted-page HTTP/1.1
83+
Host: {{Hostname}}
84+
Accept: application/json
85+
Authorization: Basic {{base64(concat(username, ":", password))}}
86+
87+
skip-secret-file: true
88+
```
6689
6790
## Secret File Formats
6891
@@ -273,7 +296,7 @@ info:
273296
WordPress Login template to use in workflows for authenticated wordpress testing.
274297
tags: wordpress,login
275298
276-
requests:
299+
http:
277300
- raw:
278301
- |
279302
POST /wp-login.php HTTP/1.1

0 commit comments

Comments
 (0)