OJ / gobuster

Directory/File, DNS and VHost busting tool written in Go
Apache License 2.0
9.6k stars 1.17k forks source link

Gobuster dir, filter by content instead of status code #288

Open kscieslinski opened 3 years ago

kscieslinski commented 3 years ago

Hi, I cannot find an option to force gobuster in directory mode to filter negative/positive responses by the content instead of just status codes.

Let's say the site responds for non existing endpoint with example response

HTTP/1.1 200 OK
Date: Mon, 15 Mar 2021 10:28:13 GMT
Server: Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/8.0.1
Content-Length: 1234
Content-Type: text/html; charset=UTF-8

Not found

In such case I would like to tell gobuster to treat Not found string as a negative server response. I think that filtering by content length would be a useful feature too.

This looks like quite popular issue and I believe that I might be just missing some flags :)

zsahi commented 1 year ago

Dear, did you found any solution for this ? I am also facing same challenge, and want to exclude reponses based on keyword in response.

lowusage commented 3 months ago

I know this is a little bit old, but this functionnality is asked in #5.

It doesn't look so bad to implement, might take a look myself.