dirsearch icon indicating copy to clipboard operation
dirsearch copied to clipboard

How to avoid to brute-force some directory recursively?

Open tenghaooo opened this issue 11 months ago • 1 comments

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 avatar Mar 08 '24 14:03 tenghaooo

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

nrathaus avatar Apr 30 '24 11:04 nrathaus

Hi @tenghaooo, this is a bug, and I will work on fixing it as soon as possible

shelld3v avatar Aug 02 '24 03:08 shelld3v