-
Notifications
You must be signed in to change notification settings - Fork 32
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
1 parent
d58bce9
commit 6f2709f
Showing
2 changed files
with
44 additions
and
1 deletion.
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,38 @@ | ||
<!-- | ||
*** AUTO-GENERATED FILE *** | ||
This file is auto-generated by BambdaChecker. | ||
Please do not manually edit this file, or include any changes to this file in pull requests. | ||
--> | ||
# Logger View Filter | ||
Documentation: [Burp Logger view filter](https://portswigger.net/burp/documentation/desktop/tools/logger/filter-view#bambda-mode) | ||
## [HighlightToolType.bambda](https://github.com/PortSwigger/bambdas/blob/main/Logger/View/HighlightToolType.bambda) | ||
### Highlights messages according to their tool type. | ||
#### Author: ps-porpoise | ||
```java | ||
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; | ||
|
||
``` | ||
## [SlowResponses.bambda](https://github.com/PortSwigger/bambdas/blob/main/Logger/View/SlowResponses.bambda) | ||
### Finds slow responses. | ||
#### Author: ps-porpoise | ||
```java | ||
var delta = requestResponse.timingData().timeBetweenRequestSentAndStartOfResponse(); | ||
var threshold = Duration.ofSeconds(3); | ||
|
||
return delta != null && delta.toMillis() >= threshold.toMillis(); | ||
|
||
``` |
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