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(); | |
| } |
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
| // @irsdl | |
| // === Config: set what you want to match === | |
| final String TARGET_HOST = "oauth.example.io"; // target domain | |
| final String PATH_PREFIX = "/auth/realms/onba/openid-connect/token"; // match exact or any child path | |
| final short STATUS_CODE = 200; // match the status code where the response has access_token | |
| // Build a ProxyHistoryFilter that only matches completed host+path hits | |
| burp.api.montoya.proxy.ProxyHistoryFilter filter = new burp.api.montoya.proxy.ProxyHistoryFilter() { | |
| @Override | |
| public boolean matches(burp.api.montoya.proxy.ProxyHttpRequestResponse rr) { |
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
| // ============================================================================ | |
| // Repeater Action: Pull tokens/values from Proxy History & Apply to THIS item | |
| // ---------------------------------------------------------------------------- | |
| // WHAT IT DOES | |
| // 1) Scans Proxy history (most recent first) for an entry that matches your filters. | |
| // 2) Extracts values (Cookie header, form params, etc.) via regex extractors. | |
| // 3) Applies the extracted values to the CURRENT Repeater request (requestResponse). | |
| // | |
| // HOW TO USE / EDIT (TL;DR) | |
| // - Set filters in CONFIG (host/path/method/status/in-scope/highlight). Blank = ignored. |
OlderNewer