Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create NotesKeywordHighlighter.bambda #39

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions Proxy/HTTP/NotesKeywordHighlighter.bambda
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* Notes Filter Bambda
* This Bambda filters Proxy HTTP history for entries with notes containing a specified keyword.
* It checks for a specific keyword within the notes and highlights the matching entries.
* Users can easily modify the 'keyword' variable to suit their specific search criteria.
* Author: Tur24Tur
* GitHub: @BugBountyzip (https://github.com/BugBountyzip)
PortSwiggerWiener marked this conversation as resolved.
Show resolved Hide resolved
**/

// User-defined keyword for filtering notes
String keyword = "High"; // Replace "High" with your desired keyword

// Main logic of the Bambda
if (requestResponse.request().url() != null && requestResponse.hasResponse()) {
BugBountyzip marked this conversation as resolved.
Show resolved Hide resolved
// Check if there are any notes for the HTTP request and response
if (requestResponse.annotations().hasNotes()) {
// Retrieve the notes
String notes = requestResponse.annotations().notes();

// Check if the notes contain the specified keyword
if (notes.contains(keyword)) {

requestResponse.annotations().setHighlightColor(HighlightColor.YELLOW);
return true;
}
}
}

return false;
Loading