Skip to content

Commit

Permalink
Merge pull request #23 from BugBountyzip/main
Browse files Browse the repository at this point in the history
Create HighlightUnencryptedHTTP.bambda
  • Loading branch information
ps-porpoise authored Dec 5, 2023
2 parents 522b780 + f98000b commit 0dbc93f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Proxy/HTTP/HighlightUnencryptedHTTP.bambda
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Bambda Script to Highlight Unencrypted HTTP Traffic
* Filters Proxy HTTP history for unencrypted (non-HTTPS) requests.
* @author Tur24Tur / BugBountyzip (https://github.com/BugBountyzip)
**/

// Get the request object from the requestResponse
var request = requestResponse.request();

// Extract the URL from the request
var requestUrl = request.url();

// Check if the request URL starts with "http://"
if (requestUrl.startsWith("http://")) {
// URL is unencrypted, return true to highlight this request
return true;
}

// URL is encrypted or does not match the criteria, return false
return false;

0 comments on commit 0dbc93f

Please sign in to comment.