Created
August 23, 2025 21:12
-
-
Save irsdl/e6578feec4ccc0dca681c52886df4214 to your computer and use it in GitHub Desktop.
Burp Suite Script Match/Replace in Response Example
This file contains hidden or 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
if(requestResponse.hasResponse() && requestResponse.request().url().contains("/irsdl")){ | |
var respBody = requestResponse.response().bodyToString(); | |
respBody = respBody.replaceAll("test|foobar", "example"); | |
return requestResponse.response().withBody(respBody); | |
}else{ | |
return requestResponse.response(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment