What Is the Purpose of wget -q -S Against a Web Server?
Short answer
B Wget -q -S performs HTTP banner grabbing because -S prints the web server's response headers while -q suppresses progress output.
Question
Key Takeaways
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.
Common mistake: 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.
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
https://www.gnu.org/software/wget/manual/wget.html
This link opens the official vendor documentation in a new tab.
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?
Does wget -q -S download all page contents for offline review?
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 3 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 3
-
insaniunt 👍 7 Answered BB. 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 Answered BB is correct. -q is in quiet mode and -S Print the headers sent by HTTP servers and responses sent by FTP servers.
-
LordXander 👍 1 Answered BChecks out with AI
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.