Package burp.api.montoya.intruder
Interface HttpRequestTemplate
public interface HttpRequestTemplate
Intruder request template, which contains the HTTP request and insertion point offsets.
-
Method Summary
Modifier and TypeMethodDescriptioncontent()
static HttpRequestTemplate
httpRequestTemplate
(ByteArray content, HttpRequestTemplateGenerationOptions options) Create a newHttpRequestTemplate
instance from an HTTP request in a byte array form with insertion point offsets at each URL, cookie, and body parameter position.static HttpRequestTemplate
httpRequestTemplate
(ByteArray content, List<Range> insertionPointOffsets) Create a newHttpRequestTemplate
instance from an HTTP request in a byte array form and a list of insertion point offsets.static HttpRequestTemplate
httpRequestTemplate
(HttpRequest request, HttpRequestTemplateGenerationOptions options) Create a newHttpRequestTemplate
instance from anHttpRequest
object with insertion point offsets at each URL, cookie, and body parameter position.static HttpRequestTemplate
httpRequestTemplate
(HttpRequest request, List<Range> insertionPointOffsets) Create a newHttpRequestTemplate
instance from anHttpRequest
object and a list of insertion point offsets.Insertion point offsets for an Intruder attack.
-
Method Details
-
content
ByteArray content()- Returns:
- Content of the request template.
-
insertionPointOffsets
-
httpRequestTemplate
static HttpRequestTemplate httpRequestTemplate(HttpRequest request, List<Range> insertionPointOffsets) Create a newHttpRequestTemplate
instance from anHttpRequest
object and a list of insertion point offsets.- Parameters:
request
- An instance ofHttpRequest
.insertionPointOffsets
- List of insertion point offsets.- Returns:
- A new instance of
HttpRequestTemplate
.
-
httpRequestTemplate
static HttpRequestTemplate httpRequestTemplate(ByteArray content, List<Range> insertionPointOffsets) Create a newHttpRequestTemplate
instance from an HTTP request in a byte array form and a list of insertion point offsets.- Parameters:
content
- An HTTP request in a byte array form.insertionPointOffsets
- List of insertion point offsets.- Returns:
- A new instance of
HttpRequestTemplate
.
-
httpRequestTemplate
static HttpRequestTemplate httpRequestTemplate(HttpRequest request, HttpRequestTemplateGenerationOptions options) Create a newHttpRequestTemplate
instance from anHttpRequest
object with insertion point offsets at each URL, cookie, and body parameter position.- Parameters:
request
- An instance ofHttpRequest
.options
- Options to use when generating the template.- Returns:
- A new instance of
HttpRequestTemplate
.
-
httpRequestTemplate
static HttpRequestTemplate httpRequestTemplate(ByteArray content, HttpRequestTemplateGenerationOptions options) Create a newHttpRequestTemplate
instance from an HTTP request in a byte array form with insertion point offsets at each URL, cookie, and body parameter position.- Parameters:
content
- An HTTP request in a byte array form.options
- Options to use when generating the template.- Returns:
- A new instance of
HttpRequestTemplate
.
-