# sullo/nikto architecture

> Architecture diagram of the GitHub repository sullo/nikto, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sullo/nikto
- Repository: https://github.com/sullo/nikto

## Overview

Nikto is a command-line web server scanner. A user supplies a target and scan options to `program/nikto.pl`; the documented capabilities include plugin selection, test-database matching, and saving findings in several report formats. The tree shows dedicated scan and reporting plugins, databases, and HTML templates, but no source excerpts were provided, so internal calls and most data-flow links cannot be verified. Dashed links mark relationships suggested by the documented product interface rather than inspected implementation.

Main entry points: [`program/nikto.pl`](https://github.com/sullo/nikto/blob/main/program/nikto.pl) (CLI scanner), [`program/plugins`](https://github.com/sullo/nikto/tree/main/program/plugins) (Report formats), [`program/plugins/nikto_tests.plugin`](https://github.com/sullo/nikto/blob/main/program/plugins/nikto_tests.plugin) (Test checks), [`program/plugins/nikto_content_search.plugin`](https://github.com/sullo/nikto/blob/main/program/plugins/nikto_content_search.plugin) (Content search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Scan entry"]
  node_cli["CLI scanner<br/>[nikto.pl]"]
  node_config["Scan configuration<br/>[nikto.conf.default]"]
end

subgraph group_scanning["Scan capabilities"]
  node_core["Core checks<br/>[nikto_core.plugin]"]
  node_testchecks["Test checks<br/>[nikto_tests.plugin]"]
  node_content["Content search"]
  node_headers["Header checks"]
  node_auth["Authentication checks<br/>[nikto_auth.plugin]"]
  node_tls["SSL checks<br/>[nikto_ssl.plugin]"]
end

subgraph group_data["Scan data"]
  node_testdb["Test database"]
  node_searchdb["Content patterns"]
  node_headersdb["Header data"]
end

subgraph group_reporting["Reports and storage"]
  node_reportplugins["Report formats"]
  node_htmltemplates["HTML templates"]
end

node_user(("Operator"))
node_target["Web server"]
node_reportfile["Report file"]
node_sqldb[("SQL database")]

node_user -->|"runs"| node_cli
node_cli -.->|"scans"| node_target
node_user -->|"configures"| node_config
node_cli -.->|"uses options"| node_config
node_cli -.->|"dispatches checks"| node_core
node_cli -.->|"selects plugins"| node_testchecks
node_cli -.->|"selects plugins"| node_content
node_cli -.->|"selects plugins"| node_headers
node_cli -.->|"selects plugins"| node_auth
node_cli -.->|"selects plugins"| node_tls
node_testchecks -.->|"matches against"| node_testdb
node_content -.->|"uses patterns"| node_searchdb
node_headers -.->|"uses data"| node_headersdb
node_cli -.->|"selects format"| node_reportplugins
node_reportplugins -->|"writes report"| node_reportfile
node_reportplugins -.->|"uses templates"| node_htmltemplates
node_reportplugins -->|"inserts findings"| node_sqldb

click node_cli "https://github.com/sullo/nikto/blob/main/program/nikto.pl"
click node_config "https://github.com/sullo/nikto/blob/main/program/nikto.conf.default"
click node_core "https://github.com/sullo/nikto/blob/main/program/plugins/nikto_core.plugin"
click node_testchecks "https://github.com/sullo/nikto/blob/main/program/plugins/nikto_tests.plugin"
click node_content "https://github.com/sullo/nikto/blob/main/program/plugins/nikto_content_search.plugin"
click node_headers "https://github.com/sullo/nikto/blob/main/program/plugins/nikto_headers.plugin"
click node_auth "https://github.com/sullo/nikto/blob/main/program/plugins/nikto_auth.plugin"
click node_tls "https://github.com/sullo/nikto/blob/main/program/plugins/nikto_ssl.plugin"
click node_testdb "https://github.com/sullo/nikto/blob/main/program/databases/db_tests"
click node_searchdb "https://github.com/sullo/nikto/blob/main/program/databases/db_content_search"
click node_headersdb "https://github.com/sullo/nikto/blob/main/program/databases/db_headers_common"
click node_reportplugins "https://github.com/sullo/nikto/tree/main/program/plugins"
click node_htmltemplates "https://github.com/sullo/nikto/tree/main/program/templates"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_config toneBlue
class node_core,node_testchecks,node_content,node_headers,node_auth,node_tls,node_sqldb toneAmber
class node_testdb,node_searchdb,node_headersdb,node_target toneMint
class node_reportplugins,node_htmltemplates toneRose
class node_user,node_reportfile toneIndigo
```

## Components

### Scan entry

- [CLI scanner](https://github.com/sullo/nikto/blob/main/program/nikto.pl): `program/nikto.pl`
- [Scan configuration](https://github.com/sullo/nikto/blob/main/program/nikto.conf.default): `program/nikto.conf.default`

### Scan capabilities

- [Core checks](https://github.com/sullo/nikto/blob/main/program/plugins/nikto_core.plugin): `program/plugins/nikto_core.plugin`
- [Test checks](https://github.com/sullo/nikto/blob/main/program/plugins/nikto_tests.plugin): `program/plugins/nikto_tests.plugin`
- [Content search](https://github.com/sullo/nikto/blob/main/program/plugins/nikto_content_search.plugin): `program/plugins/nikto_content_search.plugin`
- [Header checks](https://github.com/sullo/nikto/blob/main/program/plugins/nikto_headers.plugin): `program/plugins/nikto_headers.plugin`
- [Authentication checks](https://github.com/sullo/nikto/blob/main/program/plugins/nikto_auth.plugin): `program/plugins/nikto_auth.plugin`
- [SSL checks](https://github.com/sullo/nikto/blob/main/program/plugins/nikto_ssl.plugin): `program/plugins/nikto_ssl.plugin`

### Scan data

- [Test database](https://github.com/sullo/nikto/blob/main/program/databases/db_tests): `program/databases/db_tests`
- [Content patterns](https://github.com/sullo/nikto/blob/main/program/databases/db_content_search): `program/databases/db_content_search`
- [Header data](https://github.com/sullo/nikto/blob/main/program/databases/db_headers_common): `program/databases/db_headers_common`

### Reports and storage

- [Report formats](https://github.com/sullo/nikto/tree/main/program/plugins): `program/plugins`
- [HTML templates](https://github.com/sullo/nikto/tree/main/program/templates): `program/templates`

### Other components

- **Operator**
- **Web server**
- **Report file**
- **SQL database**

## Connections

- Operator → CLI scanner: runs (evidence: `README.md`)
- CLI scanner → Web server: scans
- Operator → Scan configuration: configures (evidence: `README.md`)
- CLI scanner → Scan configuration: uses options
- CLI scanner → Core checks: dispatches checks
- CLI scanner → Test checks: selects plugins
- CLI scanner → Content search: selects plugins
- CLI scanner → Header checks: selects plugins
- CLI scanner → Authentication checks: selects plugins
- CLI scanner → SSL checks: selects plugins
- Test checks → Test database: matches against
- Content search → Content patterns: uses patterns
- Header checks → Header data: uses data
- CLI scanner → Report formats: selects format
- Report formats → Report file: writes report (evidence: `README.md`)
- Report formats → HTML templates: uses templates
- Report formats → SQL database: inserts findings (evidence: `README.md`)
