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

Issuing requests to each directory in a URL #6

Closed
BuffaloWill opened this issue Jun 12, 2023 · 3 comments
Closed

Issuing requests to each directory in a URL #6

BuffaloWill opened this issue Jun 12, 2023 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@BuffaloWill
Copy link

BuffaloWill commented Jun 12, 2023

Is there a way to issue requests for each directory in a path? For example, let's say we want to look for /.git/config in each directory for the URL http://foo.com/dir1/dir2/test.html. That would result in three requests:

GET http://foo.com/dir1/dir2/.git/config
GET http://foo.com/dir1/.git/config
GET http://foo.com/.git/config

@BuffaloWill BuffaloWill changed the title Replacing URL in check Issuing requests each directory in a URL Jun 12, 2023
@BuffaloWill BuffaloWill changed the title Issuing requests each directory in a URL Issuing requests to each directory in a URL Jun 12, 2023
@olliewuk
Copy link
Contributor

olliewuk commented Jun 14, 2023

the way you could do this is using the given request then logic and then using request.url to build the path. As the crawler finds all the URLs / directories as you describe you could then append /.git/config/ etc.

see https://portswigger.net/burp/documentation/scanner/bchecks/bcheck-definition-reference for the documentation

Let us know how you get on.

@olliewuk
Copy link
Contributor

Closing due to answer of the question.

@Hannah-PortSwigger Hannah-PortSwigger added the duplicate This issue or pull request already exists label Sep 21, 2023
@Hannah-PortSwigger
Copy link
Contributor

This feature request is continued in #86

@Hannah-PortSwigger Hannah-PortSwigger closed this as not planned Won't fix, can't repro, duplicate, stale Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Development

No branches or pull requests

3 participants