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?
Community Votes
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)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
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.