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

How to avoid to brute-force some directory recursively? #1367

Open
tenghaooo opened this issue Mar 8, 2024 · 1 comment
Open

How to avoid to brute-force some directory recursively? #1367

tenghaooo opened this issue Mar 8, 2024 · 1 comment
Labels
question Further information is requested

Comments

@tenghaooo
Copy link

dirsearch version: v0.4.3
HI, I want to do brute-force recursively but avoid some directory.

For example:
I find three redirectable path A,B,C at FIRST ROUND.
301 https://whatever.com/A
301 https://whatever.com/B
301 https://whatever.com/C
then A,B,C will be added to the queue for next round.
But I don't want to brute-force path C.
like
https://whatever.com/C/...
How can i do it?

I tried following options but it didn't seem to work.
dirsearch -u https://whatever.com -r -R 1 -o plain --format=plain --exclude-subdirs=C
dirsearch -u https://whatever.com -r -R 1 -o plain --format=plain --exclude-subdirs C
dirsearch -u https://whatever.com -r -R 1 -o plain --format=plain --exclude-subdirs C/

@tenghaooo tenghaooo added the question Further information is requested label Mar 8, 2024
@nrathaus
Copy link

I believe you should look at --exclude-redirect rather than --exclude-subdirs for your setup as you are mentioning that its a 301 that brings you to the site you don't want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants