-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from PortSwigger/logger-view-filter-bambdas
Update Bambda Checker to support logger view filter Bambdas & add examples
- Loading branch information
Showing
6 changed files
with
33 additions
and
6 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
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
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
Binary file not shown.
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,19 @@ | ||
/** | ||
* Highlights messages according to their tool type. | ||
* @author ps-porpoise | ||
**/ | ||
var highlights = Map.of( | ||
ToolType.TARGET, HighlightColor.RED, | ||
ToolType.PROXY, HighlightColor.BLUE, | ||
ToolType.INTRUDER, HighlightColor.CYAN, | ||
ToolType.REPEATER, HighlightColor.MAGENTA, | ||
ToolType.EXTENSIONS, HighlightColor.ORANGE, | ||
ToolType.SCANNER, HighlightColor.GREEN, | ||
ToolType.SEQUENCER, HighlightColor.PINK | ||
); | ||
|
||
requestResponse.annotations().setHighlightColor( | ||
highlights.getOrDefault(requestResponse.toolSource().toolType(), HighlightColor.NONE) | ||
); | ||
|
||
return true; |
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,8 @@ | ||
/** | ||
* Finds slow responses. | ||
* @author ps-porpoise | ||
**/ | ||
var delta = requestResponse.timingData().timeBetweenRequestSentAndStartOfResponse(); | ||
var threshold = Duration.ofSeconds(3); | ||
|
||
return delta != null && delta.toMillis() >= threshold.toMillis(); |