gobuster icon indicating copy to clipboard operation
gobuster copied to clipboard

Add "grep" support for web pages

Open OJ opened this issue 9 years ago • 1 comments

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.

OJ avatar Jul 22 '15 22:07 OJ

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 MakeRequest to return the full body and apply the regex before printing the results. This would allow more verbosity, e.g. something like Found /XY, but didn't match the filter
  • Apply the regex after calculating the length in the MakeRequest and set an invalid status code.

Any other ideas?

gehaxelt avatar Oct 03 '16 09:10 gehaxelt