From f98000bb74abd05cc73a368d72dfc7e71e5a0f11 Mon Sep 17 00:00:00 2001 From: Bug Bounty Zip <133497067+BugBountyzip@users.noreply.github.com> Date: Mon, 4 Dec 2023 21:58:32 +0300 Subject: [PATCH] Create HighlightUnencryptedHTTP.bambda This Bambda script filters the Proxy history to identify and highlight unencrypted HTTP traffic. It's designed to pinpoint requests that are not secured with HTTPS. --- Proxy/HTTP/HighlightUnencryptedHTTP.bambda | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Proxy/HTTP/HighlightUnencryptedHTTP.bambda diff --git a/Proxy/HTTP/HighlightUnencryptedHTTP.bambda b/Proxy/HTTP/HighlightUnencryptedHTTP.bambda new file mode 100644 index 0000000..d336de0 --- /dev/null +++ b/Proxy/HTTP/HighlightUnencryptedHTTP.bambda @@ -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;