-
-
Notifications
You must be signed in to change notification settings - Fork 500
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
[FEATURE REQUEST] Optionally ignore directory listings #907
Comments
Adding my support to this. I was going to make my own request but this pretty much covers everything I talked about on stream. I think the initial reason for skipping over directory listings is sound, but as has been pointed out, you can configure directory listings to only show certain files or that match a certain pattern. For that reason I think feroxbuster needs an option to override the default behavior at the very least. |
hey y'all, sorry for the late reply. I recently moved across the country and have been focused on real life things. first, i have no problem with this being incorporated one way or another, thank you both for finding the issue and then making the suggestion! some random thoughts:
here's the checklist i use when i add a new command line option, in case we go that route
|
There's definitely an argument for flipping the default, I just have no idea how common it is to mask files from appearing. It probably makes more sense to keep things the way they are, since ultimately it does save time (especially if recursive scans are enabled and there are several directory listings found). Agreed with making it an actual command line option, and definitely agree with the warning / notice to let users know about it. |
I would not change the default behaviour. First, I think that this is a case seldom observed in "the real world". Second, changing default behaviour is very intrusive for users of the software. I'd add a flag to explicitly enable emit, emit a warning if eagerly aborting scans due to directory listings. I agree that it should be enabled with the |
preach! That all sounds great to me. @libklein please let me know if you have any questions while making changes thank you both again! |
@all-contributors add @libklein and @Tib3rius for ideas |
I've put up a pull request to add @libklein! 🎉 |
just merged this in and will cut a release shortly. Functionality is as-discussed and is controlled by |
@all-contributors add @Tib3rius for ideas |
I've put up a pull request to add @Tib3rius! 🎉 |
Is your feature request related to a problem? Please describe.
Feroxbuster always stops exploring a directory when a directory listing is detected. I think that this behavior is desired in the common case, but may fail to detect files in special cases, i.e., those ignored by the directory listing (see https://serverfault.com/questions/345542/force-apache-directory-listing-even-if-directoryindex-files-are-present). I believe that a tool like feroxbuster should cover such cases - detecting hidden files is it's primary purpose after all.
Describe the solution you'd like
A flag or config option to force feroxbuster to ignore directory listings, i.e., recurse into directories which have a (potentially empty) directory listing.
Additional context
This issue occured during the latest stream from 0xTib3rius, specifically when he tackled THM Box Valley.
I'm happy to provide a PR if the maintainers agree with this request.
The text was updated successfully, but these errors were encountered: