Currently, if a redirect loop is hit while using -r then gobuster spins a few times, then returns the following (at least if it's on the initial/base URL):
[-] Unable to connect: https://example.com/somepath/
Obviously, if we don't follow redirects with -r this issue won't happen.
This would be interesting to detect on, because in this instance, a non-existent folder will redirect to a 404, whereas an existing folder will enter this redirect loop.
Currently, if a redirect loop is hit while using
-r
then gobuster spins a few times, then returns the following (at least if it's on the initial/base URL):https://github.com/OJ/gobuster/blob/7a6d1c068e3e89ee9b3c0c01cb3946957143a0c9/main.go#L412
Looking at my logs, the server is redirecting like so:
Obviously, if we don't follow redirects with
-r
this issue won't happen.This would be interesting to detect on, because in this instance, a non-existent folder will redirect to a 404, whereas an existing folder will enter this redirect loop.