Output and Reporting
Nuclei has no memory between runs (chapter 1), so its output is the record. The engine offers the same findings in several shapes, from a line on a terminal to a report a colleague can open, and choosing among them is most of what "reporting" means at this scale. Everything in this chapter was produced by the lab's three-template scan of the sloppy fixture; the shapes are the engine's, only the findings are the lab's.
The shapes
| Shape | Flag | For |
|---|---|---|
| Console lines | (default) | watching a run |
| Findings only | -silent |
pipelines, scripts |
| Text file | -o file |
a plain record |
| JSON lines | -jsonl, or -jle file |
other tools |
| Markdown report | -me dir (also -markdown-export) |
humans, tickets |
Console is the format every chapter has
quoted: banner, run information, one line per
finding. -silent strips everything but
the findings themselves —
$ nuclei -duc -nc -ni -silent -t examples/lab-appliance-detect.yaml -u http://127.0.0.1:18084
[lab-appliance-detect:appliance_banner] [http] [info] http://127.0.0.1:18084/ ["LabWidget/2.1 (lab fixture)"]
— which is why scripts and the rate-limit
timings used it: one finding, one line,
nothing else to parse around. -o writes
those same console lines to a file instead
(the lab's copy is kept as
examples/sample-results.txt).
The JSON record
-jsonl writes one JSON object per finding —
the shape other programs will actually
consume. The appliance finding, field by
field (trimmed):
| Field | Value in the lab finding |
|---|---|
template-id |
lab-appliance-detect |
info |
the name card — name, author, tags, description, severity: info |
type / host / port |
http / 127.0.0.1 / 18084 |
matched-at |
http://127.0.0.1:18084/ |
extractor-name |
appliance_banner |
extracted-results |
["LabWidget/2.1 (lab fixture)"] |
matcher-status |
true |
request / response |
the raw exchange, in full |
curl-command |
a ready-made replay of the request |
Two fields earn their keep. request and
response mean a finding carries its own
evidence: nobody has to take the scanner's
word for what the server said. And
curl-command is the finding as an
instruction — the same request, written as a
curl invocation you can paste to reproduce
the result by hand. Chapter 6's discipline
("a finding you cannot reproduce is a finding
you do not yet understand") is one paste away
by design.
The markdown report
-me writes a directory: an index.md whose
table lists every finding with its severity,
and one file per finding with the details —
template information, the full URL and
timestamp, and the request and response. It
is the format to attach to a ticket or send
to a person, because it opens anywhere
Markdown renders and needs no tooling. It is
also, note, the format most likely to travel
— a report names what a server admits to, so
file it where you would file a port scan,
not where you would file a newsletter.
Beyond files — documented, not run
Nuclei can be configured to open issues
directly in trackers (GitHub, GitLab, Jira)
from a reporting configuration that lives
beside the engine's config
(~/.config/nuclei/reporting-config.yaml).
The lab deliberately did not run this: it
sends findings to outside services, which is
a decision for a reader's own setup, not a
lab exercise. The file outputs above are what
such integrations consume, so nothing in this
chapter changes if you adopt one later.
Check: a run is finished when its output
exists in a shape its audience can use — a
line for the terminal, JSON for the next
tool, markdown for the next human — and when
at least one finding in it has been reproduced
by hand from its own curl-command.