Skip to content

Commit

Permalink
feat: bambda for pwnfox housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
GangGreenTemperTatum committed Oct 26, 2024
1 parent 37d92af commit 76d228b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Filter/Proxy/HTTP/HighlightPwnFox.bambda
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Filter requests in scope and containing the "X-Pwnfox-Color" header.
*
* @author GangGreenTemperTatum (https://github.com/GangGreenTemperTatum)
**/

var request = requestResponse.request();

// Check if the request is in scope
if (!request.isInScope()) {
return false;
}

// Check if the request has the "X-Pwnfox-Color" header
var hasPwnfoxColorHeader = request.hasHeader("X-Pwnfox-Color");

return hasPwnfoxColorHeader;

0 comments on commit 76d228b

Please sign in to comment.