Package burp.api.montoya.intruder
Interface PayloadProcessingResult
public interface PayloadProcessingResult
An instance of this interface should be returned by
PayloadProcessor.processPayload(burp.api.montoya.intruder.PayloadData)
if a custom
PayloadProcessor
was registered with Intruder.-
Method Summary
Modifier and TypeMethodDescriptionaction()
Invoked by Burp to see what action it should perform with the payload.static PayloadProcessingResult
payloadProcessingResult
(ByteArray processedPayload, PayloadProcessingAction action) static PayloadProcessingResult
Create a new instance ofPayloadProcessingResult
with aPayloadProcessingAction.SKIP_PAYLOAD
action.static PayloadProcessingResult
usePayload
(ByteArray processedPayload) Create a new instance ofPayloadProcessingResult
with aPayloadProcessingAction.USE_PAYLOAD
action.
-
Method Details
-
processedPayload
ByteArray processedPayload()- Returns:
- The current value of the processed payload.
-
action
PayloadProcessingAction action()Invoked by Burp to see what action it should perform with the payload. If the value isPayloadProcessingAction.USE_PAYLOAD
, Burp will use the payload in the attack or skip it if the value isPayloadProcessingAction.SKIP_PAYLOAD
.- Returns:
- Action to perform with the payload.
-
usePayload
Create a new instance ofPayloadProcessingResult
with aPayloadProcessingAction.USE_PAYLOAD
action.- Parameters:
processedPayload
- Processed payload value- Returns:
- A new
PayloadProcessingResult
instance.
-
skipPayload
Create a new instance ofPayloadProcessingResult
with aPayloadProcessingAction.SKIP_PAYLOAD
action.- Returns:
- A new
PayloadProcessingResult
instance.
-
payloadProcessingResult
static PayloadProcessingResult payloadProcessingResult(ByteArray processedPayload, PayloadProcessingAction action)
-