maurosoria / dirsearch

Web path scanner
11.76k stars 2.29k forks source link

Crawling Doesn't Happen Against Root Directory #1219

Open eth0-re opened 1 year ago

eth0-re commented 1 year ago

Absolutely loving the new crawling behaviour! Especially with Spidy no longer working on Python 3.10!

Just found an issue where the base path is not included as a source for the crawler. I've created a hacky workaround, but I expect there's a much more semantically correct method

What is the current behavior?

When scanning using the --crawl, only directories that were hit during a normal brute force are passed to the crawler.

For example, scanning "example.org" with the crawl flag and a wordlist containing just "admin" would run the crawler against "example.org/admin", but not example.org itself.

This appears to be a combination of 2 behaviours:

What is the expected behavior?

The --crawl directive should ideally work even with a completely empty wordlist, with the base path being sent to the crawler

shelld3v commented 1 year ago

Seems to be a great idea, dirsearch should crawl the base path too, thanks for your suggestion!