forked from zaproxy/community-scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
* Processes the fuzzed message (payloads already injected). | ||
* | ||
* Called before forwarding the message to the server. | ||
* | ||
* @param {HttpFuzzerTaskProcessorUtils} utils - A utility object that contains functions that ease common tasks. | ||
* @param {HttpMessage} message - The fuzzed message, that will be forward to the server. | ||
*/ | ||
function processMessage(utils, message) { | ||
} | ||
|
||
/** | ||
* Processes the fuzz result. | ||
* | ||
* Called after receiving the fuzzed message from the server. | ||
* | ||
* @param {HttpFuzzerTaskProcessorUtils} utils - A utility object that contains functions that ease common tasks. | ||
* @param {HttpFuzzResult} fuzzResult - The result of sending the fuzzed message. | ||
* @return {boolean} Whether the result should be accepted, or discarded and not shown. | ||
*/ | ||
function processResult(utils, fuzzResult){ | ||
if (fuzzResult.getHttpMessage().getResponseHeader().getStatusCode() == 200) | ||
utils.stopFuzzer(); | ||
return true; | ||
} |