What Is the Purpose of wget -q -S Against a Web Server?

What would be the purpose of running "wget 192.168.0.15 -q -S" against a web server?

  1. Performing content enumeration on the web server to discover hidden folders
  2. Using wget to perform banner grabbing on the webserver Correct Answer
  3. Flooding the web server with requests to perform a DoS attack
  4. Downloading all the contents of the web page locally for further examination
Answer Correct answer: B — wget -q -S performs HTTP banner grabbing because -S prints the web server's response headers while -q suppresses progress output.

Community Votes

B
100%

100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

It tests whether you know wget's -S flag prints HTTP/FTP server response headers and -q only silences progress, while the trap is assuming wget is being used for full-page download or DoS flooding.

The wget -q -S command retrieves HTTP response headers while suppressing progress output, making it an HTTP banner-grabbing technique for identifying a web server. This page confirms option B is correct and explains why the other interpretations of wget's flags are wrong.

Learners often pick D because wget is a downloader, but without -r, -m, or -p it does not recursively download the site; the -S flag is what matters here.

Community Discussion (3 comments)

insaniunt 👍 7 Selected: B
B. Using wget to perform banner grabbing on the webserver -q is used to make wget operate in quiet mode, which means it won't show the progress bar. -S is used to make wget print the headers of the HTTP response, which includes server
shaody 👍 1 Selected: B
B is correct. -q is in quiet mode and -S Print the headers sent by HTTP servers and responses sent by FTP servers.
LordXander 👍 1 Selected: B
Checks out with AI

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

wget 192.168.0.15 -q -S sends an HTTP request to the target and asks wget to print the server's response headers with -S, while -q only hides progress and diagnostic output. Those headers commonly include Server, X-Powered-By, and related fields that identify the web server and sometimes its version. That is banner grabbing in the HTTP context, so option B is correct. The command is not using recursion, so it does not mirror the site or perform broad content enumeration.

Why the Other Options Are Wrong

A describes content enumeration, which would require options such as -r, -m, -np, or spidering behavior, not just -S. C describes a DoS flood, but a single wget request cannot flood the web server and -q/-S do not add request volume. D describes downloading the entire page or site locally, but wget without recursive or page-requisite options fetches only the default resource and does not collect all linked contents.

Community Comment Notes

The comments are consistent with the technical reading of the flags. insaniunt explains that "-q is used to make wget operate in quiet mode" and that "-S is used to make wget print the headers of the HTTP response," which is exactly the banner-grabbing behavior. shaody likewise states that "Print the headers sent by HTTP servers" is what -S does, reinforcing that the purpose is header inspection rather than recursive download. The unanimous B votes reflect that flag-level understanding.

Official Reference

Exam Strategy

Memorize wget flags as a set: -q silences output, -S shows response headers, and -r/-m control recursion. In exam questions, connect -S to banner grabbing or header inspection and do not automatically equate wget with downloading content.

Frequently Asked Questions

Why does wget -S reveal the web server banner?

The -S option prints the HTTP response headers, and the Server header often exposes the web server software and version.

Does wget -q -S download all page contents for offline review?

No. Without recursive or page-requisite options, wget fetches only the requested resource; -S adds header output, not site mirroring.

More 312-50v12 FAQ →

Related Analysis

← Back to 312-50v12 Study Guide