Attacks and Exploits
A tester must enumerate directories on a site that only responds to logged-in users. Which approach lets Gobuster dir mode reach those pages?
Show the answer
Correct answerC. Pass the session value with the cookie option (-c)
AWhy not this: The -a option sets the User-Agent header, which the application does not use to identify sessions.
BWhy not this: The -p option sets a proxy address, so a session value there would only break the connection.
CWhy this is right: The -c option adds the session cookie to each request, so the server treats it as authenticated.
DWhy not this: The -P option is the password for HTTP basic authentication, not for cookie-based sessions.
The -c option sends a Cookie header with every request, so the server treats Gobuster as the logged-in user. Using -P would send HTTP basic credentials, which a cookie-based session does not read.