Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get only unique endpoints that contains "something" #74

Closed
0xAwali opened this issue May 23, 2024 · 1 comment
Closed

get only unique endpoints that contains "something" #74

0xAwali opened this issue May 23, 2024 · 1 comment

Comments

@0xAwali
Copy link

0xAwali commented May 23, 2024

Hi PortSwigger ,
It's possible to filter burp history to get unique endpoints that contains "something" e.g. if I have

https://url/path?url=ssss
https://url/path?url=dddd
https://url/user

and the three contains "something" in their responses so it's possible to filter that and only get unique endpoints based on HOST AND Path e.g.

https://url/path?url=ssss
https://url/user

thanks

@Hannah-PortSwigger
Copy link
Contributor

Hi

This involves a bit of a workaround in order to preserve state between requests, but you could use the following filter Bambda:

	String endpoint = requestResponse.httpService().host() + requestResponse.finalRequest().pathWithoutQuery();
	
	return uniqueEndpoints.add(endpoint);
}

Set<String> uniqueEndpoints = new HashSet<>();

void foo() {

Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants