Usage

WhatWeb Scan: commands, aggression levels and output explained

From a one-line scan to network sweeps: aggression levels, target lists, output files, proxies and speed settings.

Published 4 min readBy the WhatWeb.org team
Cover image for WhatWeb Scan: commands, aggression levels and output explained

A WhatWeb scan can be as simple as one word and a domain, or a carefully tuned sweep of a whole network saved to JSON. This guide walks through the commands you'll actually use, what the output means and how to choose the right aggression level.

Your first scan

whatweb example.com

WhatWeb requests the page (trying HTTPS and HTTP for a plain hostname), follows redirects and prints one line per final URL. A result looks like this:

https://example.com [200 OK] Country[…], HTTPServer[nginx], IP[…], Title[Example Domain]

Each item is a plugin name, with anything it extracted in square brackets – a version, a string, a country or an IP address. The number in brackets after the URL is the HTTP status code.

Verbose output

whatweb -v example.com

Verbose mode lists each plugin that matched, a description of what it detects and every value it found. Use it when you want to understand why something was detected. Use -q (quiet) to suppress normal output when you're only writing log files.

Aggression levels

LevelNameWhat it does
-a 1Stealthy (default)One HTTP request per target, following redirects.
-a 3AggressiveIf a level 1 plugin matches, its aggressive checks make a few extra requests – often enough to confirm an exact version.
-a 4HeavyAggressive tests from all plugins run against every URL. Many requests, slow and noisy.

Level 2 is listed as unused. The documentation describes level 3 as potentially unsuitable without permission, because it guesses URLs on the target. Stick to level 1 unless the system is yours or you have written authorisation.

Scanning many targets

  • Several sites: whatweb site1.com site2.com site3.com
  • From a file: whatweb -i targets.txt (one target per line)
  • An IP range: whatweb --no-errors 192.168.0.0/24
  • HTTPS only in a range: whatweb --no-errors --url-prefix https:// 192.168.0.0/24
  • A path on every host: --url-suffix /robots.txt

Use -t to set the number of parallel threads. More threads finish faster but put more load on targets and your network.

Saving results

FormatOption
Brief, one line per target--log-brief=out.txt
Verbose text--log-verbose=out.txt
JSON / verbose JSON--log-json=out.json / --log-json-verbose=out.json
XML--log-xml=out.xml
SQL statements--log-sql=out.sql
MagicTree--log-magictree=out.xml
Errors only--log-errors=errors.txt

You can combine several log options in one scan. MongoDB and ElasticSearch outputs are also available for larger projects.

Choosing plugins

List every plugin with whatweb --list-plugins and read about one with --info-plugins. To run only specific plugins, use -p, for example whatweb -p wordpress,jquery example.com. For a quick one-off pattern, --custom-plugin lets you define a text or regular-expression match on the command line.

Proxies, Tor and headers

  • --proxy host:port routes requests through an HTTP proxy (default port 8080); --proxy-user user:pass adds credentials.
  • Since v0.6.2, .onion addresses can be scanned through a Tor proxy.
  • --user-agent changes the browser identity sent with each request; --header adds custom headers.
  • --wait=SECONDS pauses between connections – useful for polite scanning.

Speed and stability

Version 0.6.4 made verbose output up to 20 times faster and added --output-sync and --output-buffer-size for tuning. If scans stall on slow hosts, adjust --open-timeout and --read-timeout. Setting WHATWEB_PROFILE=1 prints performance data when the ruby-prof gem is installed.

Quick answers

Why does WhatWeb miss some technologies?

It reads server responses and doesn't run page JavaScript, so tools loaded only in the browser may not show up.

Can I scan localhost?

Yes – whatweb http://localhost:8080 works for local development servers.

How do I read JSON results?

Open them in any editor or process them with a JSON tool such as jq.

Get WhatWeb v0.6.4

Official source archive from GitHub · free under GPLv2

Download WhatWeb