-
-
Save srand2/f88e7ea870dd40b1c2b31076586faa2a to your computer and use it in GitHub Desktop.
Race condition custom action for Burp Repeater
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
// This will use the single-packet attack for HTTP/2, and last-byte synchronisation for HTTP/1 | |
int NUMBER_OF_REQUESTS = 10; | |
var reqs = new ArrayList<HttpRequest>(); | |
for (int i = 0; i < NUMBER_OF_REQUESTS; i++) { | |
reqs.add(requestResponse.request()); | |
} | |
var responses = api().http().sendRequests(reqs); | |
var codes = responses.stream().map(HttpRequestResponse::response).filter(Objects::nonNull).map(HttpResponse::statusCode).toList(); | |
logging().logToOutput(codes); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment