2021-09-01 10:12:40 +00:00
## Template
Template is a YAML input file which defines all the requests and
other metadata for a template.
2021-11-26 10:53:54 +00:00
2021-09-01 10:12:40 +00:00
< hr / >
< div class = "dd" >
< code > id< / code > < i > string< / i >
< / div >
< div class = "dt" >
2021-09-01 10:19:34 +00:00
ID is the unique id for the template.
2021-09-01 10:12:40 +00:00
#### Good IDs
A good ID uniquely identifies what the requests in the template
are doing. Let's say you have a template that identifies a git-config
file on the webservers, a good name would be `git-config-exposure` . Another
example name is `azure-apps-nxdomain-takeover` .
Examples:
```yaml
# ID Example
2021-09-01 10:24:55 +00:00
id: CVE-2021-19520
2021-09-01 10:12:40 +00:00
```
< / div >
< hr / >
< div class = "dd" >
< code > info< / code > < i > < a href = "#modelinfo" > model.Info< / a > < / i >
< / div >
< div class = "dt" >
Info contains metadata information about the template.
Examples:
```yaml
info:
name: Argument Injection in Ruby Dragonfly
author: 0xspara
tags: cve,cve2021,rce,ruby
reference: https://zxsecurity.co.nz/research/argunment-injection-ruby-dragonfly/
severity: high
```
2023-10-16 09:36:01 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > flow< / code > < i > string< / i >
< / div >
< div class = "dt" >
description: |
Flow contains the execution flow for the template.
examples:
- flow: |
for region in regions {
http(0)
}
for vpc in vpcs {
http(1)
}
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > requests< / code > < i > []< a href = "#httprequest" > http.Request< / a > < / i >
< / div >
< div class = "dt" >
Requests contains the http request to make in the template.
2023-03-20 19:19:55 +00:00
WARNING: 'requests' will be deprecated and will be removed in a future release. Please use 'http' instead.
2021-09-01 10:12:40 +00:00
Examples:
```yaml
requests:
matchers:
2021-11-20 14:20:18 +00:00
- type: word
2021-09-01 10:12:40 +00:00
words:
- '[core]'
2021-11-20 14:20:18 +00:00
- type: dsl
2021-09-01 10:12:40 +00:00
condition: and
dsl:
- '!contains(tolower(body), ''< html '')'
- '!contains(tolower(body), ''< body '')'
2021-11-20 14:20:18 +00:00
- type: status
2021-09-01 10:12:40 +00:00
status:
- 200
matchers-condition: and
path:
- '{{BaseURL}}/.git/config'
method: GET
```
2023-03-20 19:19:55 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > http< / code > < i > []< a href = "#httprequest" > http.Request< / a > < / i >
< / div >
< div class = "dt" >
description: |
HTTP contains the http request to make in the template.
examples:
- value: exampleNormalHTTPRequest
RequestsWithHTTP is placeholder(internal) only, and should not be used instead use RequestsHTTP
2023-10-16 09:36:01 +00:00
Deprecated: Use RequestsHTTP instead.
2023-03-20 19:19:55 +00:00
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > dns< / code > < i > []< a href = "#dnsrequest" > dns.Request< / a > < / i >
< / div >
< div class = "dt" >
DNS contains the dns request to make in the template
Examples:
```yaml
dns:
extractors:
- type: regex
regex:
- ec2-[-\d]+\.compute[-\d]*\.amazonaws\.com
- ec2-[-\d]+\.[\w\d\-]+\.compute[-\d]*\.amazonaws\.com
name: '{{FQDN}}'
type: CNAME
class: inet
retries: 2
2021-12-03 03:46:08 +00:00
recursion: false
2021-09-01 10:12:40 +00:00
```
< / div >
< hr / >
< div class = "dd" >
< code > file< / code > < i > []< a href = "#filerequest" > file.Request< / a > < / i >
< / div >
< div class = "dt" >
File contains the file request to make in the template
Examples:
```yaml
file:
extractors:
- type: regex
regex:
- amzn\.mws\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
extensions:
- all
```
< / div >
< hr / >
< div class = "dd" >
< code > network< / code > < i > []< a href = "#networkrequest" > network.Request< / a > < / i >
< / div >
< div class = "dt" >
Network contains the network request to make in the template
2023-03-20 19:19:55 +00:00
WARNING: 'network' will be deprecated and will be removed in a future release. Please use 'tcp' instead.
2021-09-01 10:12:40 +00:00
Examples:
```yaml
network:
host:
- '{{Hostname}}'
- '{{Hostname}}:2181'
inputs:
- data: "envi\r\nquit\r\n"
read-size: 2048
matchers:
2021-11-20 14:20:18 +00:00
- type: word
2021-09-01 10:12:40 +00:00
words:
- zookeeper.version
```
2023-03-20 19:19:55 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > tcp< / code > < i > []< a href = "#networkrequest" > network.Request< / a > < / i >
< / div >
< div class = "dt" >
description: |
TCP contains the network request to make in the template
examples:
- value: exampleNormalNetworkRequest
RequestsWithTCP is placeholder(internal) only, and should not be used instead use RequestsNetwork
2023-10-16 09:36:01 +00:00
Deprecated: Use RequestsNetwork instead.
2023-03-20 19:19:55 +00:00
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > headless< / code > < i > []< a href = "#headlessrequest" > headless.Request< / a > < / i >
< / div >
< div class = "dt" >
Headless contains the headless request to make in the template.
< / div >
< hr / >
< div class = "dd" >
2021-11-11 23:16:47 +00:00
< code > ssl< / code > < i > []< a href = "#sslrequest" > ssl.Request< / a > < / i >
< / div >
< div class = "dt" >
SSL contains the SSL request to make in the template.
< / div >
< hr / >
< div class = "dd" >
< code > websocket< / code > < i > []< a href = "#websocketrequest" > websocket.Request< / a > < / i >
< / div >
< div class = "dt" >
Websocket contains the Websocket request to make in the template.
< / div >
< hr / >
< div class = "dd" >
2021-12-16 11:39:23 +00:00
< code > whois< / code > < i > []< a href = "#whoisrequest" > whois.Request< / a > < / i >
< / div >
< div class = "dt" >
WHOIS contains the WHOIS request to make in the template.
< / div >
< hr / >
< div class = "dd" >
2023-10-16 09:36:01 +00:00
< code > code< / code > < i > []< a href = "#coderequest" > code.Request< / a > < / i >
< / div >
< div class = "dt" >
Code contains code snippets.
< / div >
< hr / >
< div class = "dd" >
< code > javascript< / code > < i > []< a href = "#javascriptrequest" > javascript.Request< / a > < / i >
< / div >
< div class = "dt" >
Javascript contains the javascript request to make in the template.
< / div >
< hr / >
< div class = "dd" >
2021-10-20 15:25:55 +00:00
< code > self-contained< / code > < i > bool< / i >
< / div >
< div class = "dt" >
Self Contained marks Requests for the template as self-contained
< / div >
< hr / >
2021-12-02 12:32:20 +00:00
< div class = "dd" >
< code > stop-at-first-match< / code > < i > bool< / i >
< / div >
< div class = "dt" >
Stop execution once first match is found
< / div >
< hr / >
2021-12-19 19:37:37 +00:00
< div class = "dd" >
< code > signature< / code > < i > < a href = "#httpsignaturetypeholder" > http.SignatureTypeHolder< / a > < / i >
< / div >
< div class = "dt" >
Signature is the request signature method
Valid values:
- < code > AWS</ code >
< / div >
< hr / >
2022-04-25 08:40:12 +00:00
< div class = "dd" >
< code > variables< / code > < i > < a href = "#variablesvariable" > variables.Variable< / a > < / i >
< / div >
< div class = "dt" >
Variables contains any variables for the current request.
< / div >
< hr / >
2023-05-25 16:34:47 +00:00
< div class = "dd" >
< code > constants< / code > < i > map[string]interface{}< / i >
< / div >
< div class = "dt" >
2023-08-01 18:33:43 +00:00
Constants contains any scalar constant for the current template
2023-05-25 16:34:47 +00:00
< / div >
< hr / >
2021-09-01 10:12:40 +00:00
## model.Info
Info contains metadata information about a template
Appears in:
- < code >< a href = "#template" > Template</ a > .info</ code >
```yaml
name: Argument Injection in Ruby Dragonfly
author: 0xspara
tags: cve,cve2021,rce,ruby
reference: https://zxsecurity.co.nz/research/argunment-injection-ruby-dragonfly/
severity: high
```
2021-11-26 10:53:54 +00:00
2021-09-01 10:12:40 +00:00
< hr / >
< div class = "dd" >
< code > name< / code > < i > string< / i >
< / div >
< div class = "dt" >
Name should be good short summary that identifies what the template does.
Examples:
```yaml
name: bower.json file disclosure
```
```yaml
name: Nagios Default Credentials Check
```
< / div >
< hr / >
< div class = "dd" >
2021-09-03 13:50:44 +00:00
< code > author< / code > < i > < a href = "#stringslicestringslice" > stringslice.StringSlice< / a > < / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
Author of the template.
Multiple values can also be specified separated by commas.
Examples:
```yaml
author: < username >
```
< / div >
< hr / >
< div class = "dd" >
2021-09-03 13:50:44 +00:00
< code > tags< / code > < i > < a href = "#stringslicestringslice" > stringslice.StringSlice< / a > < / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
Any tags for the template.
Multiple values can also be specified separated by commas.
Examples:
```yaml
# Example tags
tags: cve,cve2019,grafana,auth-bypass,dos
```
< / div >
< hr / >
< div class = "dd" >
< code > description< / code > < i > string< / i >
< / div >
< div class = "dt" >
Description of the template.
You can go in-depth here on what the template actually does.
Examples:
```yaml
2021-09-16 16:45:57 +00:00
description: Bower is a package manager which stores package information in the bower.json file
2021-09-01 10:12:40 +00:00
```
```yaml
description: Subversion ALM for the enterprise before 8.8.2 allows reflected XSS at multiple locations
```
2023-09-04 09:17:02 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > impact< / code > < i > string< / i >
< / div >
< div class = "dt" >
Impact of the template.
You can go in-depth here on impact of the template.
Examples:
```yaml
impact: Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
```
```yaml
impact: Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
```
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
2023-03-16 18:19:31 +00:00
< code > reference< / code > < i > < a href = "#stringslicerawstringslice" > stringslice.RawStringSlice< / a > < / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
References for the template.
This should contain links relevant to the template.
Examples:
```yaml
reference:
- https://github.com/strapi/strapi
- https://github.com/getgrav/grav
```
< / div >
< hr / >
< div class = "dd" >
2021-09-03 13:50:44 +00:00
< code > severity< / code > < i > < a href = "#severityholder" > severity.Holder< / a > < / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
Severity of the template.
< / div >
< hr / >
< div class = "dd" >
2022-02-28 07:41:00 +00:00
< code > metadata< / code > < i > map[string]interface{}< / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
2021-09-16 17:30:33 +00:00
Metadata of the template.
2021-09-01 10:12:40 +00:00
Examples:
```yaml
2021-09-16 15:46:47 +00:00
metadata:
2021-09-01 10:12:40 +00:00
customField1: customValue1
```
< / div >
< hr / >
2021-09-10 09:34:25 +00:00
< div class = "dd" >
< code > classification< / code > < i > < a href = "#modelclassification" > model.Classification< / a > < / i >
< / div >
< div class = "dt" >
Classification contains classification information about the template.
< / div >
< hr / >
< div class = "dd" >
< code > remediation< / code > < i > string< / i >
< / div >
< div class = "dt" >
Remediation steps for the template.
You can go in-depth here on how to mitigate the problem found by this template.
Examples:
```yaml
remediation: Change the default administrative username and password of Apache ActiveMQ by editing the file jetty-realm.properties
```
< / div >
< hr / >
2021-09-01 10:12:40 +00:00
2021-09-03 13:50:44 +00:00
## stringslice.StringSlice
StringSlice represents a single (in-lined) or multiple string value(s).
The unmarshaller does not automatically convert in-lined strings to []string, hence the interface{} type is required.
2021-09-01 10:12:40 +00:00
Appears in:
2021-09-03 13:50:44 +00:00
- < code >< a href = "#modelinfo" > model.Info</ a > .author</ code >
- < code >< a href = "#modelinfo" > model.Info</ a > .tags</ code >
2021-09-10 09:34:25 +00:00
- < code >< a href = "#modelclassification" > model.Classification</ a > .cve-id</ code >
- < code >< a href = "#modelclassification" > model.Classification</ a > .cwe-id</ code >
2021-09-01 10:12:40 +00:00
2021-09-03 13:50:44 +00:00
```yaml
< username >
```
```yaml
# Example tags
cve,cve2019,grafana,auth-bypass,dos
```
```yaml
2021-09-10 09:34:25 +00:00
CVE-2020-14420
```
```yaml
CWE-22
```
2021-09-01 10:12:40 +00:00
2021-11-26 10:53:54 +00:00
2023-03-16 18:19:31 +00:00
## stringslice.RawStringSlice
Appears in:
- < code >< a href = "#modelinfo" > model.Info</ a > .reference</ code >
```yaml
- https://github.com/strapi/strapi
- https://github.com/getgrav/grav
```
2021-09-03 13:50:44 +00:00
## severity.Holder
Holder holds a Severity type. Required for un/marshalling purposes
2021-09-01 10:12:40 +00:00
Appears in:
- < code >< a href = "#modelinfo" > model.Info</ a > .severity</ code >
2021-11-26 10:53:54 +00:00
2021-12-02 19:06:54 +00:00
< hr / >
< div class = "dd" >
< code > < / code > < i > Severity< / i >
< / div >
< div class = "dt" >
Enum Values:
- < code > undefined</ code >
- < code > info</ code >
- < code > low</ code >
- < code > medium</ code >
- < code > high</ code >
- < code > critical</ code >
2022-02-28 18:52:47 +00:00
- < code > unknown</ code >
2021-12-02 19:06:54 +00:00
< / div >
< hr / >
2021-09-01 10:12:40 +00:00
2021-09-10 09:34:25 +00:00
## model.Classification
Appears in:
- < code >< a href = "#modelinfo" > model.Info</ a > .classification</ code >
2021-11-26 10:53:54 +00:00
2021-09-10 09:34:25 +00:00
< hr / >
< div class = "dd" >
< code > cve-id< / code > < i > < a href = "#stringslicestringslice" > stringslice.StringSlice< / a > < / i >
< / div >
< div class = "dt" >
CVE ID for the template
Examples:
```yaml
cve-id: CVE-2020-14420
```
< / div >
< hr / >
< div class = "dd" >
< code > cwe-id< / code > < i > < a href = "#stringslicestringslice" > stringslice.StringSlice< / a > < / i >
< / div >
< div class = "dt" >
CWE ID for the template.
Examples:
```yaml
cwe-id: CWE-22
```
< / div >
< hr / >
< div class = "dd" >
< code > cvss-metrics< / code > < i > string< / i >
< / div >
< div class = "dt" >
CVSS Metrics for the template.
Examples:
```yaml
cvss-metrics: 3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
```
< / div >
< hr / >
< div class = "dd" >
< code > cvss-score< / code > < i > float64< / i >
< / div >
< div class = "dt" >
CVSS Score for the template.
Examples:
```yaml
cvss-score: "9.8"
```
< / div >
< hr / >
2023-04-02 07:54:23 +00:00
< div class = "dd" >
< code > epss-score< / code > < i > float64< / i >
< / div >
< div class = "dt" >
EPSS Score for the template.
Examples:
```yaml
epss-score: "0.42509"
```
2023-07-08 19:53:01 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > epss-percentile< / code > < i > float64< / i >
< / div >
< div class = "dt" >
EPSS Percentile for the template.
Examples:
```yaml
epss-percentile: "0.42509"
```
2023-04-02 07:54:23 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > cpe< / code > < i > string< / i >
< / div >
< div class = "dt" >
CPE for the template.
Examples:
```yaml
cpe: cpe:/a:vendor:product:version
```
< / div >
< hr / >
2021-09-10 09:34:25 +00:00
2021-09-01 10:12:40 +00:00
## http.Request
Request contains a http request to be made from a template
Appears in:
- < code >< a href = "#template" > Template</ a > .requests</ code >
2023-03-20 19:19:55 +00:00
- < code >< a href = "#template" > Template</ a > .http</ code >
2021-09-01 10:12:40 +00:00
```yaml
matchers:
2021-11-20 14:20:18 +00:00
- type: word
2021-09-01 10:12:40 +00:00
words:
- '[core]'
2021-11-20 14:20:18 +00:00
- type: dsl
2021-09-01 10:12:40 +00:00
condition: and
dsl:
- '!contains(tolower(body), ''< html '')'
- '!contains(tolower(body), ''< body '')'
2021-11-20 14:20:18 +00:00
- type: status
2021-09-01 10:12:40 +00:00
status:
- 200
matchers-condition: and
path:
- '{{BaseURL}}/.git/config'
method: GET
```
2021-12-02 19:06:54 +00:00
Part Definitions:
2021-11-26 10:53:54 +00:00
2021-12-02 19:06:54 +00:00
- < code > template-id</ code > - ID of the template executed
- < code > template-info</ code > - Info Block of the template executed
- < code > template-path</ code > - Path of the template executed
- < code > host</ code > - Host is the input to the template
- < code > matched</ code > - Matched is the input which was matched upon
- < code > type</ code > - Type is the type of request made
- < code > request</ code > - HTTP request made from the client
2022-02-08 07:42:20 +00:00
- < code > response</ code > - HTTP response received from server
2021-12-02 19:06:54 +00:00
- < code > status_code</ code > - Status Code received from the Server
- < code > body</ code > - HTTP response body received from server (default)
- < code > content_length</ code > - HTTP Response content length
- < code > header,all_headers</ code > - HTTP response headers
- < code > duration</ code > - HTTP request time duration
- < code > all</ code > - HTTP response body + headers
- < code > cookies_from_response</ code > - HTTP response cookies in name:value format
- < code > headers_from_response</ code > - HTTP response headers in name:value format
2021-11-26 10:53:54 +00:00
2021-09-01 10:12:40 +00:00
< hr / >
< div class = "dd" >
< code > path< / code > < i > []string< / i >
< / div >
< div class = "dt" >
Path contains the path/s for the HTTP requests. It supports variables
as placeholders.
Examples:
```yaml
# Some example path values
path:
- '{{BaseURL}}'
- '{{BaseURL}}/+CSCOU+/../+CSCOE+/files/file_list.json?path=/sessions'
```
< / div >
< hr / >
< div class = "dd" >
< code > raw< / code > < i > []string< / i >
< / div >
< div class = "dt" >
Raw contains HTTP Requests in Raw format.
Examples:
```yaml
# Some example raw requests
raw:
- |-
GET /etc/passwd HTTP/1.1
Host:
Content-Length: 4
- |-
POST /.%0d./.%0d./.%0d./.%0d./bin/sh HTTP/1.1
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
Content-Length: 1
Connection: close
echo
echo
cat /etc/passwd 2>& 1
```
< / div >
< hr / >
< div class = "dd" >
< code > id< / code > < i > string< / i >
< / div >
< div class = "dt" >
2021-09-16 17:12:26 +00:00
ID is the optional id of the request
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > name< / code > < i > string< / i >
< / div >
< div class = "dt" >
Name is the optional name of the request.
If a name is specified, all the named request in a template can be matched upon
2021-11-29 06:49:56 +00:00
in a combined manner allowing multi-request based matchers.
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
2021-11-11 23:16:47 +00:00
< code > attack< / code > < i > < a href = "#generatorsattacktypeholder" > generators.AttackTypeHolder< / a > < / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
Attack is the type of payload combinations to perform.
2021-11-29 06:49:56 +00:00
batteringram is inserts the same payload into all defined payload positions at once, pitchfork combines multiple payload sets and clusterbomb generates
2021-09-01 10:12:40 +00:00
permutations and combinations for all payloads.
Valid values:
2021-10-13 07:49:00 +00:00
- < code > batteringram</ code >
2021-09-01 10:12:40 +00:00
- < code > pitchfork</ code >
- < code > clusterbomb</ code >
< / div >
< hr / >
< div class = "dd" >
2021-12-02 19:06:54 +00:00
< code > method< / code > < i > < a href = "#httpmethodtypeholder" > HTTPMethodTypeHolder< / a > < / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
Method is the HTTP Request Method.
< / div >
< hr / >
< div class = "dd" >
< code > body< / code > < i > string< / i >
< / div >
< div class = "dt" >
Body is an optional parameter which contains HTTP Request body.
Examples:
```yaml
# Same Body for a Login POST request
body: username=test& password=test
```
< / div >
< hr / >
< div class = "dd" >
< code > payloads< / code > < i > map[string]interface{}< / i >
< / div >
< div class = "dt" >
Payloads contains any payloads for the current request.
Payloads support both key-values combinations where a list
of payloads is provided, or optionally a single file can also
be provided as payload which will be read on run-time.
< / div >
< hr / >
< div class = "dd" >
< code > headers< / code > < i > map[string]string< / i >
< / div >
< div class = "dt" >
Headers contains HTTP Headers to send with the request.
Examples:
```yaml
headers:
Any-Header: Any-Value
Content-Length: "1"
Content-Type: application/x-www-form-urlencoded
```
< / div >
< hr / >
< div class = "dd" >
< code > race_count< / code > < i > int< / i >
< / div >
< div class = "dt" >
RaceCount is the number of times to send a request in Race Condition Attack.
Examples:
```yaml
# Send a request 5 times
race_count: 5
```
< / div >
< hr / >
< div class = "dd" >
< code > max-redirects< / code > < i > int< / i >
< / div >
< div class = "dt" >
MaxRedirects is the maximum number of redirects that should be followed.
Examples:
```yaml
2021-09-16 16:45:57 +00:00
# Follow up to 5 redirects
2021-09-01 10:12:40 +00:00
max-redirects: 5
```
< / div >
< hr / >
< div class = "dd" >
< code > pipeline-concurrent-connections< / code > < i > int< / i >
< / div >
< div class = "dt" >
PipelineConcurrentConnections is number of connections to create during pipelining.
Examples:
```yaml
# Create 40 concurrent connections
pipeline-concurrent-connections: 40
```
< / div >
< hr / >
< div class = "dd" >
< code > pipeline-requests-per-connection< / code > < i > int< / i >
< / div >
< div class = "dt" >
PipelineRequestsPerConnection is number of requests to send per connection when pipelining.
Examples:
```yaml
# Send 100 requests per pipeline connection
pipeline-requests-per-connection: 100
```
< / div >
< hr / >
< div class = "dd" >
< code > threads< / code > < i > int< / i >
< / div >
< div class = "dt" >
Threads specifies number of threads to use sending requests. This enables Connection Pooling.
Connection: Close attribute must not be used in request while using threads flag, otherwise
pooling will fail and engine will continue to close connections after requests.
Examples:
```yaml
# Send requests using 10 concurrent threads
threads: 10
```
< / div >
< hr / >
< div class = "dd" >
< code > max-size< / code > < i > int< / i >
< / div >
< div class = "dt" >
MaxSize is the maximum size of http response body to read in bytes.
Examples:
```yaml
# Read max 2048 bytes of the response
max-size: 2048
```
2022-11-01 15:01:38 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > fuzzing< / code > < i > []< a href = "#fuzzrule" > fuzz.Rule< / a > < / i >
< / div >
< div class = "dt" >
Fuzzing describes schema to fuzz http requests
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
2021-12-19 19:37:37 +00:00
< code > signature< / code > < i > < a href = "#signaturetypeholder" > SignatureTypeHolder< / a > < / i >
< / div >
< div class = "dt" >
Signature is the request signature method
Valid values:
- < code > AWS</ code >
< / div >
< hr / >
< div class = "dd" >
2024-02-08 13:43:26 +00:00
< code > cookie-reuse< / code > < i > bool< / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
2024-02-08 13:43:26 +00:00
CookieReuse is an optional setting that enables cookie reuse for
2021-09-01 10:12:40 +00:00
all requests defined in raw section.
< / div >
< hr / >
< div class = "dd" >
2024-02-08 13:43:26 +00:00
< code > disable-cookie< / code > < i > bool< / i >
< / div >
< div class = "dt" >
DisableCookie is an optional setting that disables cookie reuse
< / div >
< hr / >
< div class = "dd" >
2022-02-26 12:12:56 +00:00
< code > read-all< / code > < i > bool< / i >
< / div >
< div class = "dt" >
Enables force reading of the entire raw unsafe request body ignoring
any specified content length headers.
< / div >
< hr / >
< div class = "dd" >
2021-09-01 10:12:40 +00:00
< code > redirects< / code > < i > bool< / i >
< / div >
< div class = "dt" >
Redirects specifies whether redirects should be followed by the HTTP Client.
This can be used in conjunction with `max-redirects` to control the HTTP request redirects.
< / div >
< hr / >
< div class = "dd" >
2022-09-28 22:44:26 +00:00
< code > host-redirects< / code > < i > bool< / i >
< / div >
< div class = "dt" >
Redirects specifies whether only redirects to the same host should be followed by the HTTP Client.
This can be used in conjunction with `max-redirects` to control the HTTP request redirects.
< / div >
< hr / >
< div class = "dd" >
2021-09-01 10:12:40 +00:00
< code > pipeline< / code > < i > bool< / i >
< / div >
< div class = "dt" >
Pipeline defines if the attack should be performed with HTTP 1.1 Pipelining
2021-09-16 16:45:57 +00:00
All requests must be idempotent (GET/POST). This can be used for race conditions/billions requests.
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > unsafe< / code > < i > bool< / i >
< / div >
< div class = "dt" >
Unsafe specifies whether to use rawhttp engine for sending Non RFC-Compliant requests.
This uses the [rawhttp ](https://github.com/projectdiscovery/rawhttp ) engine to achieve complete
control over the request, with no normalization performed by the client.
< / div >
< hr / >
< div class = "dd" >
< code > race< / code > < i > bool< / i >
< / div >
< div class = "dt" >
Race determines if all the request have to be attempted at the same time (Race Condition)
The actual number of requests that will be sent is determined by the `race_count` field.
< / div >
< hr / >
< div class = "dd" >
< code > req-condition< / code > < i > bool< / i >
< / div >
< div class = "dt" >
ReqCondition automatically assigns numbers to requests and preserves their history.
This allows matching on them later for multi-request conditions.
< / div >
< hr / >
< div class = "dd" >
< code > stop-at-first-match< / code > < i > bool< / i >
< / div >
< div class = "dt" >
StopAtFirstMatch stops the execution of the requests and template as soon as a match is found.
< / div >
< hr / >
2021-10-09 14:28:15 +00:00
< div class = "dd" >
< code > skip-variables-check< / code > < i > bool< / i >
< / div >
< div class = "dt" >
SkipVariablesCheck skips the check for unresolved variables in request
< / div >
< hr / >
2021-12-02 10:59:29 +00:00
< div class = "dd" >
< code > iterate-all< / code > < i > bool< / i >
< / div >
< div class = "dt" >
IterateAll iterates all the values extracted from internal extractors
< / div >
< hr / >
2021-10-09 14:28:15 +00:00
2022-04-15 13:31:14 +00:00
< div class = "dd" >
< code > digest-username< / code > < i > string< / i >
< / div >
< div class = "dt" >
DigestAuthUsername specifies the username for digest authentication
< / div >
< hr / >
< div class = "dd" >
< code > digest-password< / code > < i > string< / i >
< / div >
< div class = "dt" >
DigestAuthPassword specifies the password for digest authentication
< / div >
< hr / >
2023-06-19 14:54:55 +00:00
< div class = "dd" >
< code > disable-path-automerge< / code > < i > bool< / i >
< / div >
< div class = "dt" >
DisablePathAutomerge disables merging target url path with raw request path
< / div >
< hr / >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
## generators.AttackTypeHolder
AttackTypeHolder is used to hold internal type of the protocol
2021-09-01 10:12:40 +00:00
Appears in:
2023-03-16 18:19:31 +00:00
- < code >< a href = "#httprequest" > http.Request</ a > .attack</ code >
2021-09-01 10:12:40 +00:00
2023-05-10 21:58:38 +00:00
- < code >< a href = "#dnsrequest" > dns.Request</ a > .attack</ code >
2023-03-16 18:19:31 +00:00
- < code >< a href = "#networkrequest" > network.Request</ a > .attack</ code >
2021-11-11 23:16:47 +00:00
2023-03-16 18:19:31 +00:00
- < code >< a href = "#headlessrequest" > headless.Request</ a > .attack</ code >
2021-11-11 23:16:47 +00:00
2023-03-16 18:19:31 +00:00
- < code >< a href = "#websocketrequest" > websocket.Request</ a > .attack</ code >
2021-12-16 11:39:23 +00:00
2023-10-16 09:36:01 +00:00
- < code >< a href = "#javascriptrequest" > javascript.Request</ a > .attack</ code >
2021-09-01 10:12:40 +00:00
2021-11-26 10:53:54 +00:00
2021-09-01 10:12:40 +00:00
< hr / >
< div class = "dd" >
2023-03-16 18:19:31 +00:00
< code > < / code > < i > AttackType< / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
2023-03-16 18:19:31 +00:00
Enum Values:
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > batteringram</ code >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > pitchfork</ code >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > clusterbomb</ code >
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
2023-03-16 18:19:31 +00:00
## HTTPMethodTypeHolder
HTTPMethodTypeHolder is used to hold internal type of the HTTP Method
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
Appears in:
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code >< a href = "#httprequest" > http.Request</ a > .method</ code >
2021-09-01 10:12:40 +00:00
< hr / >
< div class = "dd" >
2023-03-16 18:19:31 +00:00
< code > < / code > < i > HTTPMethodType< / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
2023-03-16 18:19:31 +00:00
Enum Values:
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > GET</ code >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > HEAD</ code >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > POST</ code >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > PUT</ code >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > DELETE</ code >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > CONNECT</ code >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > OPTIONS</ code >
- < code > TRACE</ code >
- < code > PATCH</ code >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > PURGE</ code >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > Debug</ code >
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
2023-03-16 18:19:31 +00:00
## fuzz.Rule
Rule is a single rule which describes how to fuzz the request
Appears in:
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code >< a href = "#httprequest" > http.Request</ a > .fuzzing</ code >
2021-09-01 10:12:40 +00:00
2023-06-09 14:22:56 +00:00
- < code >< a href = "#headlessrequest" > headless.Request</ a > .fuzzing</ code >
2021-09-01 10:12:40 +00:00
< hr / >
< div class = "dd" >
2023-03-16 18:19:31 +00:00
< code > type< / code > < i > string< / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
2023-03-16 18:19:31 +00:00
Type is the type of fuzzing rule to perform.
replace replaces the values entirely. prefix prefixes the value. postfix postfixes the value
and infix places between the values.
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
Valid values:
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > replace</ code >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > prefix</ code >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > postfix</ code >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > infix</ code >
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
2023-03-16 18:19:31 +00:00
< code > part< / code > < i > string< / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
2023-03-16 18:19:31 +00:00
Part is the part of request to fuzz.
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
query fuzzes the query part of url. More parts will be added later.
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
Valid values:
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > query</ code >
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
2023-03-16 18:19:31 +00:00
< code > mode< / code > < i > string< / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
2023-03-16 18:19:31 +00:00
Mode is the mode of fuzzing to perform.
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
single fuzzes one value at a time. multiple fuzzes all values at same time.
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
Valid values:
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > single</ code >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
- < code > multiple</ code >
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
2023-03-16 18:19:31 +00:00
< code > keys< / code > < i > []string< / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
2023-03-16 18:19:31 +00:00
Keys is the optional list of key named parameters to fuzz.
2021-09-01 10:12:40 +00:00
Examples:
```yaml
2023-03-16 18:19:31 +00:00
# Examples of keys
keys:
- url
- file
- host
2021-09-01 10:12:40 +00:00
```
< / div >
< hr / >
< div class = "dd" >
2023-03-16 18:19:31 +00:00
< code > keys-regex< / code > < i > []string< / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
2023-03-16 18:19:31 +00:00
KeysRegex is the optional list of regex key parameters to fuzz.
2021-09-01 10:12:40 +00:00
Examples:
```yaml
2023-03-16 18:19:31 +00:00
# Examples of key regex
keys-regex:
- url.*
2021-09-01 10:12:40 +00:00
```
< / div >
< hr / >
< div class = "dd" >
2023-03-16 18:19:31 +00:00
< code > values< / code > < i > []string< / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
2023-03-16 18:19:31 +00:00
Values is the optional list of regex value parameters to fuzz.
2021-11-01 09:46:34 +00:00
2023-03-16 18:19:31 +00:00
Examples:
2021-11-01 09:46:34 +00:00
2023-03-16 18:19:31 +00:00
```yaml
# Examples of value regex
values:
- https?://.*
```
2021-11-01 09:46:34 +00:00
< / div >
< hr / >
2022-02-10 10:30:58 +00:00
< div class = "dd" >
2023-03-16 18:19:31 +00:00
< code > fuzz< / code > < i > []string< / i >
2022-02-10 10:30:58 +00:00
< / div >
< div class = "dt" >
2023-03-16 18:19:31 +00:00
Fuzz is the list of payloads to perform substitutions with.
2022-02-10 10:30:58 +00:00
2023-03-16 18:19:31 +00:00
Examples:
2022-02-10 10:30:58 +00:00
2023-03-16 18:19:31 +00:00
```yaml
# Examples of fuzz
fuzz:
- '{{ssrf}}'
- '{{interactsh-url}}'
- example-value
```
2022-02-10 10:30:58 +00:00
< / div >
< hr / >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
## SignatureTypeHolder
SignatureTypeHolder is used to hold internal type of the signature
2021-12-02 19:06:54 +00:00
Appears in:
2023-03-16 18:19:31 +00:00
- < code >< a href = "#httprequest" > http.Request</ a > .signature</ code >
2021-12-02 19:06:54 +00:00
2023-03-16 18:19:31 +00:00
## dns.Request
Request contains a DNS protocol request to be made from a template
2021-12-02 19:06:54 +00:00
2023-03-16 18:19:31 +00:00
Appears in:
2021-12-02 19:06:54 +00:00
2023-03-16 18:19:31 +00:00
- < code >< a href = "#template" > Template</ a > .dns</ code >
2021-09-01 10:12:40 +00:00
```yaml
extractors:
- type: regex
regex:
- ec2-[-\d]+\.compute[-\d]*\.amazonaws\.com
- ec2-[-\d]+\.[\w\d\-]+\.compute[-\d]*\.amazonaws\.com
name: '{{FQDN}}'
type: CNAME
class: inet
retries: 2
2021-12-03 03:46:08 +00:00
recursion: false
2021-09-01 10:12:40 +00:00
```
2021-12-02 19:06:54 +00:00
Part Definitions:
2021-11-26 10:53:54 +00:00
2021-12-02 19:06:54 +00:00
- < code > template-id</ code > - ID of the template executed
- < code > template-info</ code > - Info Block of the template executed
- < code > template-path</ code > - Path of the template executed
- < code > host</ code > - Host is the input to the template
- < code > matched</ code > - Matched is the input which was matched upon
- < code > request</ code > - Request contains the DNS request in text format
- < code > type</ code > - Type is the type of request made
- < code > rcode</ code > - Rcode field returned for the DNS request
- < code > question</ code > - Question contains the DNS question field
- < code > extra</ code > - Extra contains the DNS response extra field
- < code > answer</ code > - Answer contains the DNS response answer field
- < code > ns</ code > - NS contains the DNS response NS field
- < code > raw,body,all</ code > - Raw contains the raw DNS response (default)
- < code > trace</ code > - Trace contains trace data for DNS request if enabled
2021-11-26 10:53:54 +00:00
2021-09-01 10:12:40 +00:00
< hr / >
< div class = "dd" >
< code > id< / code > < i > string< / i >
< / div >
< div class = "dt" >
2021-09-16 17:12:26 +00:00
ID is the optional id of the request
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > name< / code > < i > string< / i >
< / div >
< div class = "dt" >
Name is the Hostname to make DNS request for.
Generally, it is set to {{FQDN}} which is the domain we get from input.
Examples:
```yaml
name: '{{FQDN}}'
```
< / div >
< hr / >
< div class = "dd" >
2021-12-02 19:06:54 +00:00
< code > type< / code > < i > < a href = "#dnsrequesttypeholder" > DNSRequestTypeHolder< / a > < / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
2021-11-11 23:16:47 +00:00
RequestType is the type of DNS request to make.
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > class< / code > < i > string< / i >
< / div >
< div class = "dt" >
Class is the class of the DNS request.
Usually it's enough to just leave it as INET.
Valid values:
- < code > inet</ code >
- < code > csnet</ code >
- < code > chaos</ code >
- < code > hesiod</ code >
- < code > none</ code >
- < code > any</ code >
< / div >
< hr / >
< div class = "dd" >
< code > retries< / code > < i > int< / i >
< / div >
< div class = "dt" >
Retries is the number of retries for the DNS request
Examples:
```yaml
# Use a retry of 3 to 5 generally
retries: 5
```
2021-11-18 13:53:42 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > trace< / code > < i > bool< / i >
< / div >
< div class = "dt" >
Trace performs a trace operation for the target.
< / div >
< hr / >
< div class = "dd" >
< code > trace-max-recursion< / code > < i > int< / i >
< / div >
< div class = "dt" >
TraceMaxRecursion is the number of max recursion allowed for trace operations
Examples:
```yaml
# Use a retry of 100 to 150 generally
trace-max-recursion: 100
```
2023-05-10 21:58:38 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > attack< / code > < i > < a href = "#generatorsattacktypeholder" > generators.AttackTypeHolder< / a > < / i >
< / div >
< div class = "dt" >
Attack is the type of payload combinations to perform.
Batteringram is inserts the same payload into all defined payload positions at once, pitchfork combines multiple payload sets and clusterbomb generates
permutations and combinations for all payloads.
< / div >
< hr / >
< div class = "dd" >
< code > payloads< / code > < i > map[string]interface{}< / i >
< / div >
< div class = "dt" >
Payloads contains any payloads for the current request.
Payloads support both key-values combinations where a list
of payloads is provided, or optionally a single file can also
be provided as payload which will be read on run-time.
2024-02-08 13:43:26 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > threads< / code > < i > int< / i >
< / div >
< div class = "dt" >
Threads to use when sending iterating over payloads
Examples:
```yaml
# Send requests using 10 concurrent threads
threads: 10
```
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
2021-12-03 03:46:08 +00:00
< code > recursion< / code > < i > dns.bool< / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
Recursion determines if resolver should recurse all records to get fresh results.
< / div >
< hr / >
2021-10-04 20:40:57 +00:00
< div class = "dd" >
< code > resolvers< / code > < i > []string< / i >
< / div >
< div class = "dt" >
Resolvers to use for the dns requests
< / div >
< hr / >
2021-09-01 10:12:40 +00:00
2021-12-02 19:06:54 +00:00
## DNSRequestTypeHolder
DNSRequestTypeHolder is used to hold internal type of the DNS type
Appears in:
- < code >< a href = "#dnsrequest" > dns.Request</ a > .type</ code >
< hr / >
< div class = "dd" >
< code > < / code > < i > DNSRequestType< / i >
< / div >
< div class = "dt" >
Enum Values:
- < code > A</ code >
- < code > NS</ code >
- < code > DS</ code >
- < code > CNAME</ code >
- < code > SOA</ code >
- < code > PTR</ code >
- < code > MX</ code >
- < code > TXT</ code >
- < code > AAAA</ code >
2022-02-03 05:55:07 +00:00
- < code > CAA</ code >
2022-12-29 14:42:52 +00:00
- < code > TLSA</ code >
2023-05-04 11:28:35 +00:00
- < code > ANY</ code >
2021-12-02 19:06:54 +00:00
< / div >
< hr / >
2021-09-01 10:12:40 +00:00
## file.Request
Request contains a File matching mechanism for local disk operations.
Appears in:
- < code >< a href = "#template" > Template</ a > .file</ code >
```yaml
extractors:
- type: regex
regex:
- amzn\.mws\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}
extensions:
- all
```
2021-12-02 19:06:54 +00:00
Part Definitions:
2021-11-26 10:53:54 +00:00
2021-12-02 19:06:54 +00:00
- < code > template-id</ code > - ID of the template executed
- < code > template-info</ code > - Info Block of the template executed
- < code > template-path</ code > - Path of the template executed
- < code > matched</ code > - Matched is the input which was matched upon
- < code > path</ code > - Path is the path of file on local filesystem
- < code > type</ code > - Type is the type of request made
- < code > raw,body,all,data</ code > - Raw contains the raw file contents
2021-09-01 10:12:40 +00:00
< hr / >
< div class = "dd" >
< code > extensions< / code > < i > []string< / i >
< / div >
< div class = "dt" >
2022-03-29 12:22:43 +00:00
Extensions is the list of extensions or mime types to perform matching on.
2021-09-01 10:12:40 +00:00
Examples:
```yaml
extensions:
- .txt
- .go
- .json
```
< / div >
< hr / >
< div class = "dd" >
< code > denylist< / code > < i > []string< / i >
< / div >
< div class = "dt" >
2022-03-29 12:22:43 +00:00
DenyList is the list of file, directories, mime types or extensions to deny during matching.
2021-09-01 10:12:40 +00:00
By default, it contains some non-interesting extensions that are hardcoded
in nuclei.
Examples:
```yaml
denylist:
- .avi
- .mov
- .mp3
```
< / div >
< hr / >
< div class = "dd" >
< code > id< / code > < i > string< / i >
< / div >
< div class = "dt" >
2021-09-16 17:12:26 +00:00
ID is the optional id of the request
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
2022-03-21 10:22:10 +00:00
< code > max-size< / code > < i > string< / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
MaxSize is the maximum size of the file to run request on.
2022-03-21 10:22:10 +00:00
By default, nuclei will process 1 GB of content and not go more than that.
2021-09-01 10:12:40 +00:00
It can be set to much lower or higher depending on use.
2022-03-21 10:22:10 +00:00
If set to "no" then all content will be processed
2021-09-01 10:12:40 +00:00
Examples:
```yaml
2022-03-21 10:22:10 +00:00
max-size: 5Mb
2021-09-01 10:12:40 +00:00
```
2023-05-15 13:47:53 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > archive< / code > < i > bool< / i >
< / div >
< div class = "dt" >
elaborates archives
< / div >
< hr / >
< div class = "dd" >
< code > mime-type< / code > < i > bool< / i >
< / div >
< div class = "dt" >
enables mime types check
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > no-recursive< / code > < i > bool< / i >
< / div >
< div class = "dt" >
NoRecursive specifies whether to not do recursive checks if folders are provided.
< / div >
< hr / >
## network.Request
Request contains a Network protocol request to be made from a template
Appears in:
- < code >< a href = "#template" > Template</ a > .network</ code >
2023-03-20 19:19:55 +00:00
- < code >< a href = "#template" > Template</ a > .tcp</ code >
2021-09-01 10:12:40 +00:00
```yaml
host:
- '{{Hostname}}'
- '{{Hostname}}:2181'
inputs:
- data: "envi\r\nquit\r\n"
read-size: 2048
matchers:
2021-11-20 14:20:18 +00:00
- type: word
2021-09-01 10:12:40 +00:00
words:
- zookeeper.version
```
2021-12-02 19:06:54 +00:00
Part Definitions:
2021-11-26 10:53:54 +00:00
2021-12-02 19:06:54 +00:00
- < code > template-id</ code > - ID of the template executed
- < code > template-info</ code > - Info Block of the template executed
- < code > template-path</ code > - Path of the template executed
- < code > host</ code > - Host is the input to the template
- < code > matched</ code > - Matched is the input which was matched upon
- < code > type</ code > - Type is the type of request made
- < code > request</ code > - Network request made from the client
2022-02-08 07:42:20 +00:00
- < code > body,all,data</ code > - Network response received from server (default)
2021-12-02 19:06:54 +00:00
- < code > raw</ code > - Full Network protocol data
2021-11-26 10:53:54 +00:00
2021-09-01 10:12:40 +00:00
< hr / >
< div class = "dd" >
< code > id< / code > < i > string< / i >
< / div >
< div class = "dt" >
2021-09-16 17:12:26 +00:00
ID is the optional id of the request
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > host< / code > < i > []string< / i >
< / div >
< div class = "dt" >
Host to send network requests to.
Usually it's set to `{{Hostname}}` . If you want to enable TLS for
TCP Connection, you can use `tls://{{Hostname}}` .
Examples:
```yaml
host:
- '{{Hostname}}'
```
< / div >
< hr / >
< div class = "dd" >
2021-11-11 23:16:47 +00:00
< code > attack< / code > < i > < a href = "#generatorsattacktypeholder" > generators.AttackTypeHolder< / a > < / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
Attack is the type of payload combinations to perform.
2021-11-29 06:49:56 +00:00
Batteringram is inserts the same payload into all defined payload positions at once, pitchfork combines multiple payload sets and clusterbomb generates
2021-09-01 10:12:40 +00:00
permutations and combinations for all payloads.
< / div >
< hr / >
< div class = "dd" >
< code > payloads< / code > < i > map[string]interface{}< / i >
< / div >
< div class = "dt" >
Payloads contains any payloads for the current request.
Payloads support both key-values combinations where a list
of payloads is provided, or optionally a single file can also
be provided as payload which will be read on run-time.
2024-02-08 13:43:26 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > threads< / code > < i > int< / i >
< / div >
< div class = "dt" >
Threads specifies number of threads to use sending requests. This enables Connection Pooling.
Connection: Close attribute must not be used in request while using threads flag, otherwise
pooling will fail and engine will continue to close connections after requests.
Examples:
```yaml
# Send requests using 10 concurrent threads
threads: 10
```
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > inputs< / code > < i > []< a href = "#networkinput" > network.Input< / a > < / i >
< / div >
< div class = "dt" >
Inputs contains inputs for the network socket
< / div >
< hr / >
< div class = "dd" >
2023-09-11 23:06:51 +00:00
< code > port< / code > < i > string< / i >
< / div >
< div class = "dt" >
description: |
Port is the port to send network requests to. this acts as default port but is overriden if target/input contains
non-http(s) ports like 80,8080,8081 etc
< / div >
< hr / >
< div class = "dd" >
< code > exclude-ports< / code > < i > string< / i >
< / div >
< div class = "dt" >
description: |
ExcludePorts is the list of ports to exclude from being scanned . It is intended to be used with `Port` field and contains a list of ports which are ignored/skipped
< / div >
< hr / >
< div class = "dd" >
2021-09-01 10:12:40 +00:00
< code > read-size< / code > < i > int< / i >
< / div >
< div class = "dt" >
ReadSize is the size of response to read at the end
Default value for read-size is 1024.
Examples:
```yaml
read-size: 2048
```
2021-10-25 12:00:09 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > read-all< / code > < i > bool< / i >
< / div >
< div class = "dt" >
ReadAll determines if the data stream should be read till the end regardless of the size
Default value for read-all is false.
Examples:
```yaml
read-all: false
```
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
## network.Input
Appears in:
- < code >< a href = "#networkrequest" > network.Request</ a > .inputs</ code >
2021-11-26 10:53:54 +00:00
2021-09-01 10:12:40 +00:00
< hr / >
< div class = "dd" >
< code > data< / code > < i > string< / i >
< / div >
< div class = "dt" >
Data is the data to send as the input.
It supports DSL Helper Functions as well as normal expressions.
Examples:
```yaml
data: TEST
```
```yaml
data: hex_decode('50494e47')
```
< / div >
< hr / >
< div class = "dd" >
2021-12-02 19:06:54 +00:00
< code > type< / code > < i > < a href = "#networkinputtypeholder" > NetworkInputTypeHolder< / a > < / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
Type is the type of input specified in `data` field.
Default value is text, but hex can be used for hex formatted data.
Valid values:
- < code > hex</ code >
- < code > text</ code >
< / div >
< hr / >
< div class = "dd" >
< code > read< / code > < i > int< / i >
< / div >
< div class = "dt" >
Read is the number of bytes to read from socket.
2021-09-16 16:45:57 +00:00
This can be used for protocols which expect an immediate response. You can
2021-11-29 06:49:56 +00:00
read and write responses one after another and eventually perform matching
2021-09-01 10:12:40 +00:00
on every data captured with `name` attribute.
The [network docs ](https://nuclei.projectdiscovery.io/templating-guide/protocols/network/ ) highlight more on how to do this.
Examples:
```yaml
read: 1024
```
< / div >
< hr / >
< div class = "dd" >
< code > name< / code > < i > string< / i >
< / div >
< div class = "dt" >
Name is the optional name of the data read to provide matching on.
Examples:
```yaml
name: prefix
```
< / div >
< hr / >
2021-12-02 19:06:54 +00:00
## NetworkInputTypeHolder
NetworkInputTypeHolder is used to hold internal type of the Network type
Appears in:
- < code >< a href = "#networkinput" > network.Input</ a > .type</ code >
< hr / >
< div class = "dd" >
< code > < / code > < i > NetworkInputType< / i >
< / div >
< div class = "dt" >
Enum Values:
- < code > hex</ code >
- < code > text</ code >
< / div >
< hr / >
2021-09-01 10:12:40 +00:00
## headless.Request
Request contains a Headless protocol request to be made from a template
Appears in:
- < code >< a href = "#template" > Template</ a > .headless</ code >
2021-12-02 19:06:54 +00:00
Part Definitions:
2021-11-26 10:53:54 +00:00
2021-12-02 19:06:54 +00:00
- < code > template-id</ code > - ID of the template executed
- < code > template-info</ code > - Info Block of the template executed
- < code > template-path</ code > - Path of the template executed
- < code > host</ code > - Host is the input to the template
- < code > matched</ code > - Matched is the input which was matched upon
- < code > type</ code > - Type is the type of request made
- < code > req</ code > - Headless request made from the client
2022-02-08 07:42:20 +00:00
- < code > resp,body,data</ code > - Headless response received from client (default)
2021-12-02 19:06:54 +00:00
2021-09-01 10:12:40 +00:00
< hr / >
< div class = "dd" >
< code > id< / code > < i > string< / i >
< / div >
< div class = "dt" >
2021-09-16 17:12:26 +00:00
ID is the optional id of the request
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
2022-02-05 15:00:13 +00:00
< code > attack< / code > < i > < a href = "#generatorsattacktypeholder" > generators.AttackTypeHolder< / a > < / i >
< / div >
< div class = "dt" >
Attack is the type of payload combinations to perform.
Batteringram is inserts the same payload into all defined payload positions at once, pitchfork combines multiple payload sets and clusterbomb generates
permutations and combinations for all payloads.
< / div >
< hr / >
< div class = "dd" >
< code > payloads< / code > < i > map[string]interface{}< / i >
< / div >
< div class = "dt" >
Payloads contains any payloads for the current request.
Payloads support both key-values combinations where a list
of payloads is provided, or optionally a single file can also
be provided as payload which will be read on run-time.
< / div >
< hr / >
< div class = "dd" >
2021-09-01 10:12:40 +00:00
< code > steps< / code > < i > []< a href = "#engineaction" > engine.Action< / a > < / i >
< / div >
< div class = "dt" >
Steps is the list of actions to run for headless request
< / div >
< hr / >
< div class = "dd" >
2022-03-01 17:21:24 +00:00
< code > user_agent< / code > < i > < a href = "#useragentuseragentholder" > userAgent.UserAgentHolder< / a > < / i >
< / div >
< div class = "dt" >
descriptions: |
User-Agent is the type of user-agent to use for the request.
< / div >
< hr / >
< div class = "dd" >
< code > custom_user_agent< / code > < i > string< / i >
< / div >
< div class = "dt" >
description: |
If UserAgent is set to custom, customUserAgent is the custom user-agent to use for the request.
< / div >
< hr / >
< div class = "dd" >
2023-03-16 18:19:31 +00:00
< code > stop-at-first-match< / code > < i > bool< / i >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
< / div >
< div class = "dt" >
2021-09-01 10:12:40 +00:00
2023-03-16 18:19:31 +00:00
StopAtFirstMatch stops the execution of the requests and template as soon as a match is found.
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
2023-06-09 14:22:56 +00:00
< div class = "dd" >
< code > fuzzing< / code > < i > []< a href = "#fuzzrule" > fuzz.Rule< / a > < / i >
< / div >
< div class = "dt" >
2023-10-16 09:36:01 +00:00
Fuzzing describes schema to fuzz headless requests
< / div >
< hr / >
< div class = "dd" >
2024-02-08 13:43:26 +00:00
< code > cookie-reuse< / code > < i > bool< / i >
< / div >
< div class = "dt" >
CookieReuse is an optional setting that enables cookie reuse
< / div >
< hr / >
< div class = "dd" >
2023-11-18 07:32:10 +00:00
< code > disable-cookie< / code > < i > bool< / i >
2023-10-16 09:36:01 +00:00
< / div >
< div class = "dt" >
2023-11-18 07:32:10 +00:00
DisableCookie is an optional setting that disables cookie reuse
2023-10-16 09:36:01 +00:00
< / div >
< hr / >
2021-09-01 10:12:40 +00:00
## engine.Action
Action is an action taken by the browser to reach a navigation
Each step that the browser executes is an action. Most navigations
usually start from the ActionLoadURL event, and further navigations
are discovered on the found page. We also keep track and only
scrape new navigation from pages we haven't crawled yet.
Appears in:
- < code >< a href = "#headlessrequest" > headless.Request</ a > .steps</ code >
2021-11-26 10:53:54 +00:00
2021-09-01 10:12:40 +00:00
< hr / >
< div class = "dd" >
< code > args< / code > < i > map[string]string< / i >
< / div >
< div class = "dt" >
Args contain arguments for the headless action.
Per action arguments are described in detail [here ](https://nuclei.projectdiscovery.io/templating-guide/protocols/headless/ ).
< / div >
< hr / >
< div class = "dd" >
< code > name< / code > < i > string< / i >
< / div >
< div class = "dt" >
Name is the name assigned to the headless action.
This can be used to execute code, for instance in browser
DOM using script action, and get the result in a variable
2023-03-31 10:57:15 +00:00
which can be matched upon by nuclei. An Example template [here ](https://github.com/projectdiscovery/nuclei-templates/blob/main/headless/prototype-pollution-check.yaml ).
2021-09-01 10:12:40 +00:00
< / div >
< hr / >
< div class = "dd" >
< code > description< / code > < i > string< / i >
< / div >
< div class = "dt" >
Description is the optional description of the headless action
< / div >
< hr / >
< div class = "dd" >
2021-12-02 19:06:54 +00:00
< code > action< / code > < i > < a href = "#actiontypeholder" > ActionTypeHolder< / a > < / i >
2021-09-01 10:12:40 +00:00
< / div >
< div class = "dt" >
Action is the type of the action to perform.
2021-11-25 14:04:01 +00:00
< / div >
2021-09-01 10:12:40 +00:00
2021-11-25 14:04:01 +00:00
< hr / >
2021-12-02 19:06:54 +00:00
## ActionTypeHolder
ActionTypeHolder is used to hold internal type of the action
Appears in:
- < code >< a href = "#engineaction" > engine.Action</ a > .action</ code >
< hr / >
< div class = "dd" >
< code > < / code > < i > ActionType< / i >
< / div >
< div class = "dt" >
Enum Values:
- < code > navigate</ code >
- < code > script</ code >
- < code > click</ code >
- < code > rightclick</ code >
- < code > text</ code >
- < code > screenshot</ code >
- < code > time</ code >
- < code > select</ code >
- < code > files</ code >
- < code > waitload</ code >
- < code > getresource</ code >
- < code > extract</ code >
- < code > setmethod</ code >
- < code > addheader</ code >
- < code > setheader</ code >
- < code > deleteheader</ code >
- < code > setbody</ code >
- < code > waitevent</ code >
- < code > keyboard</ code >
- < code > debug</ code >
- < code > sleep</ code >
- < code > waitvisible</ code >
< / div >
< hr / >
2022-03-01 17:21:24 +00:00
## userAgent.UserAgentHolder
UserAgentHolder holds a UserAgent type. Required for un/marshalling purposes
Appears in:
- < code >< a href = "#headlessrequest" > headless.Request</ a > .user_agent</ code >
< hr / >
< div class = "dd" >
< code > < / code > < i > UserAgent< / i >
< / div >
< div class = "dt" >
Enum Values:
- < code > random</ code >
- < code > off</ code >
- < code > default</ code >
- < code > custom</ code >
< / div >
< hr / >
2021-11-11 23:16:47 +00:00
## ssl.Request
Request is a request for the SSL protocol
Appears in:
- < code >< a href = "#template" > Template</ a > .ssl</ code >
2021-12-02 19:06:54 +00:00
Part Definitions:
2021-11-26 10:53:54 +00:00
2021-12-02 19:06:54 +00:00
- < code > type</ code > - Type is the type of request made
- < code > response</ code > - JSON SSL protocol handshake details
- < code > not_after</ code > - Timestamp after which the remote cert expires
- < code > host</ code > - Host is the input to the template
- < code > matched</ code > - Matched is the input which was matched upon
2021-11-11 23:16:47 +00:00
< hr / >
< div class = "dd" >
2023-10-16 09:36:01 +00:00
< code > id< / code > < i > string< / i >
< / div >
< div class = "dt" >
ID is the optional id of the request
< / div >
< hr / >
< div class = "dd" >
2021-11-11 23:16:47 +00:00
< code > address< / code > < i > string< / i >
< / div >
< div class = "dt" >
Address contains address for the request
< / div >
< hr / >
2022-02-05 06:56:19 +00:00
< div class = "dd" >
< code > min_version< / code > < i > string< / i >
< / div >
< div class = "dt" >
Minimum tls version - auto if not specified.
Valid values:
- < code > sslv3</ code >
- < code > tls10</ code >
- < code > tls11</ code >
- < code > tls12</ code >
- < code > tls13</ code >
< / div >
< hr / >
< div class = "dd" >
< code > max_version< / code > < i > string< / i >
< / div >
< div class = "dt" >
Max tls version - auto if not specified.
Valid values:
- < code > sslv3</ code >
- < code > tls10</ code >
- < code > tls11</ code >
- < code > tls12</ code >
- < code > tls13</ code >
< / div >
< hr / >
< div class = "dd" >
< code > cipher_suites< / code > < i > []string< / i >
< / div >
< div class = "dt" >
Client Cipher Suites - auto if not specified.
< / div >
< hr / >
2022-12-04 17:58:29 +00:00
< div class = "dd" >
< code > scan_mode< / code > < i > string< / i >
< / div >
< div class = "dt" >
2023-03-16 18:19:31 +00:00
description: |
Tls Scan Mode - auto if not specified
values:
- "ctls"
- "ztls"
- "auto"
- "openssl" # reverts to "auto" is openssl is not installed
2022-12-04 17:58:29 +00:00
< / div >
< hr / >
2024-02-08 13:43:26 +00:00
< div class = "dd" >
< code > tls_version_enum< / code > < i > bool< / i >
< / div >
< div class = "dt" >
TLS Versions Enum - false if not specified
Enumerates supported TLS versions
< / div >
< hr / >
< div class = "dd" >
< code > tls_cipher_enum< / code > < i > bool< / i >
< / div >
< div class = "dt" >
TLS Ciphers Enum - false if not specified
Enumerates supported TLS ciphers
< / div >
< hr / >
< div class = "dd" >
< code > tls_cipher_types< / code > < i > []string< / i >
< / div >
< div class = "dt" >
description: |
TLS Cipher types to enumerate
values:
- "insecure" (default)
- "weak"
- "secure"
- "all"
< / div >
< hr / >
2021-11-11 23:16:47 +00:00
## websocket.Request
Request is a request for the Websocket protocol
Appears in:
- < code >< a href = "#template" > Template</ a > .websocket</ code >
2021-12-02 19:06:54 +00:00
Part Definitions:
2021-11-26 10:53:54 +00:00
2021-12-02 19:06:54 +00:00
- < code > type</ code > - Type is the type of request made
- < code > success</ code > - Success specifies whether websocket connection was successful
- < code > request</ code > - Websocket request made to the server
2022-02-08 07:42:20 +00:00
- < code > response</ code > - Websocket response received from the server
2021-12-02 19:06:54 +00:00
- < code > host</ code > - Host is the input to the template
- < code > matched</ code > - Matched is the input which was matched upon
2021-11-26 10:53:54 +00:00
2021-11-11 23:16:47 +00:00
< hr / >
< div class = "dd" >
2023-10-16 09:36:01 +00:00
< code > id< / code > < i > string< / i >
< / div >
< div class = "dt" >
ID is the optional id of the request
< / div >
< hr / >
< div class = "dd" >
2021-11-11 23:16:47 +00:00
< code > address< / code > < i > string< / i >
< / div >
< div class = "dt" >
Address contains address for the request
< / div >
< hr / >
< div class = "dd" >
< code > inputs< / code > < i > []< a href = "#websocketinput" > websocket.Input< / a > < / i >
< / div >
< div class = "dt" >
Inputs contains inputs for the websocket protocol
< / div >
< hr / >
< div class = "dd" >
< code > headers< / code > < i > map[string]string< / i >
< / div >
< div class = "dt" >
Headers contains headers for the request.
< / div >
< hr / >
< div class = "dd" >
< code > attack< / code > < i > < a href = "#generatorsattacktypeholder" > generators.AttackTypeHolder< / a > < / i >
< / div >
< div class = "dt" >
Attack is the type of payload combinations to perform.
Sniper is each payload once, pitchfork combines multiple payload sets and clusterbomb generates
permutations and combinations for all payloads.
< / div >
< hr / >
< div class = "dd" >
< code > payloads< / code > < i > map[string]interface{}< / i >
< / div >
< div class = "dt" >
Payloads contains any payloads for the current request.
Payloads support both key-values combinations where a list
of payloads is provided, or optionally a single file can also
be provided as payload which will be read on run-time.
< / div >
< hr / >
## websocket.Input
Appears in:
- < code >< a href = "#websocketrequest" > websocket.Request</ a > .inputs</ code >
2021-11-26 10:53:54 +00:00
2021-11-11 23:16:47 +00:00
< hr / >
< div class = "dd" >
< code > data< / code > < i > string< / i >
< / div >
< div class = "dt" >
Data is the data to send as the input.
It supports DSL Helper Functions as well as normal expressions.
Examples:
```yaml
data: TEST
```
```yaml
data: hex_decode('50494e47')
```
< / div >
< hr / >
< div class = "dd" >
< code > name< / code > < i > string< / i >
< / div >
< div class = "dt" >
Name is the optional name of the data read to provide matching on.
Examples:
```yaml
name: prefix
```
< / div >
< hr / >
2021-12-16 11:39:23 +00:00
## whois.Request
Request is a request for the WHOIS protocol
Appears in:
- < code >< a href = "#template" > Template</ a > .whois</ code >
2023-10-16 09:36:01 +00:00
< hr / >
< div class = "dd" >
< code > id< / code > < i > string< / i >
< / div >
< div class = "dt" >
ID is the optional id of the request
< / div >
2021-12-16 11:39:23 +00:00
< hr / >
< div class = "dd" >
< code > query< / code > < i > string< / i >
< / div >
< div class = "dt" >
Query contains query for the request
< / div >
< hr / >
< div class = "dd" >
< code > server< / code > < i > string< / i >
< / div >
< div class = "dt" >
description: |
Optional WHOIS server URL.
If present, specifies the WHOIS server to execute the Request on.
Otherwise, nil enables bootstrapping
< / div >
< hr / >
2023-10-16 09:36:01 +00:00
## code.Request
Request is a request for the SSL protocol
Appears in:
- < code >< a href = "#template" > Template</ a > .code</ code >
Part Definitions:
- < code > type</ code > - Type is the type of request made
- < code > host</ code > - Host is the input to the template
- < code > matched</ code > - Matched is the input which was matched upon
< hr / >
< div class = "dd" >
< code > id< / code > < i > string< / i >
< / div >
< div class = "dt" >
ID is the optional id of the request
< / div >
< hr / >
< div class = "dd" >
< code > engine< / code > < i > []string< / i >
< / div >
< div class = "dt" >
Engine type
< / div >
< hr / >
< div class = "dd" >
< code > args< / code > < i > []string< / i >
< / div >
< div class = "dt" >
Engine Arguments
< / div >
< hr / >
< div class = "dd" >
< code > pattern< / code > < i > string< / i >
< / div >
< div class = "dt" >
Pattern preferred for file name
< / div >
< hr / >
< div class = "dd" >
< code > source< / code > < i > string< / i >
< / div >
< div class = "dt" >
Source File/Snippet
< / div >
< hr / >
## javascript.Request
Request is a request for the javascript protocol
Appears in:
- < code >< a href = "#template" > Template</ a > .javascript</ code >
Part Definitions:
- < code > type</ code > - Type is the type of request made
- < code > response</ code > - Javascript protocol result response
- < code > host</ code > - Host is the input to the template
- < code > matched</ code > - Matched is the input which was matched upon
< hr / >
< div class = "dd" >
< code > id< / code > < i > string< / i >
< / div >
< div class = "dt" >
description: |
ID is request id in that protocol
< / div >
< hr / >
< div class = "dd" >
< code > init< / code > < i > string< / i >
< / div >
< div class = "dt" >
Init is javascript code to execute after compiling template and before executing it on any target
This is helpful for preparing payloads or other setup that maybe required for exploits
< / div >
< hr / >
< div class = "dd" >
< code > pre-condition< / code > < i > string< / i >
< / div >
< div class = "dt" >
PreCondition is a condition which is evaluated before sending the request.
< / div >
< hr / >
< div class = "dd" >
< code > args< / code > < i > map[string]interface{}< / i >
< / div >
< div class = "dt" >
Args contains the arguments to pass to the javascript code.
< / div >
< hr / >
< div class = "dd" >
< code > code< / code > < i > string< / i >
< / div >
< div class = "dt" >
Code contains code to execute for the javascript request.
< / div >
< hr / >
< div class = "dd" >
2024-02-08 13:43:26 +00:00
< code > timeout< / code > < i > int< / i >
< / div >
< div class = "dt" >
Timeout in seconds is optional timeout for each javascript script execution (i.e init, pre-condition, code)
< / div >
< hr / >
< div class = "dd" >
2023-10-16 09:36:01 +00:00
< code > stop-at-first-match< / code > < i > bool< / i >
< / div >
< div class = "dt" >
StopAtFirstMatch stops processing the request at first match.
< / div >
< hr / >
< div class = "dd" >
< code > attack< / code > < i > < a href = "#generatorsattacktypeholder" > generators.AttackTypeHolder< / a > < / i >
< / div >
< div class = "dt" >
Attack is the type of payload combinations to perform.
Sniper is each payload once, pitchfork combines multiple payload sets and clusterbomb generates
permutations and combinations for all payloads.
< / div >
< hr / >
< div class = "dd" >
< code > threads< / code > < i > int< / i >
< / div >
< div class = "dt" >
Payload concurreny i.e threads for sending requests.
Examples:
```yaml
# Send requests using 10 concurrent threads
threads: 10
```
< / div >
< hr / >
< div class = "dd" >
< code > payloads< / code > < i > map[string]interface{}< / i >
< / div >
< div class = "dt" >
Payloads contains any payloads for the current request.
Payloads support both key-values combinations where a list
of payloads is provided, or optionally a single file can also
be provided as payload which will be read on run-time.
< / div >
< hr / >
2021-12-19 19:37:37 +00:00
## http.SignatureTypeHolder
SignatureTypeHolder is used to hold internal type of the signature
Appears in:
- < code >< a href = "#template" > Template</ a > .signature</ code >
2022-04-25 08:40:12 +00:00
## variables.Variable
Variable is a key-value pair of strings that can be used
throughout template.
Appears in:
- < code >< a href = "#template" > Template</ a > .variables</ code >