gobuster
gobuster copied to clipboard
Add "grep" support for web pages
It'd be handy to add a "grep" like feature that let's the users filter the results based on pages that have certain content. For example, if you're interested in pages that return a 200 status code that also have the word login in them.
Hey,
I think the best idea would be to let the user pass a regular expression (e.g. -regex) and apply it to all dns / dir results?
Two ideas of implementing this:
- Modify
MakeRequestto return the full body and apply the regex before printing the results. This would allow more verbosity, e.g. something likeFound /XY, but didn't match the filter - Apply the regex after calculating the length in the
MakeRequestand set an invalid status code.
Any other ideas?