nikto-scan

nikto-scan is a skill for Claude Code from mahuttha/offensive-recon. It costs 44 tokens per session (937 once invoked), scanned B, original, MIT.

A web-server security scanner that uses Nikto to look for outdated software, risky files, setup mistakes, and known vulnerabilities on an authorized server.

In plain words
What is it for?
Use it to assess a website or host for misconfigurations, exposed files, information disclosure, injection issues, remote file access, command execution, and SQL injection.
Why use it?
It helps identify common server weaknesses and information leaks before attackers find them. Scanning sends many HTTP requests and requires confirmation.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the offensive-recon plugin — 8 skills, 1 hook shipped together

Good fit Use it to assess a website or host for misconfigurations, exposed files, information disclosure, injection issues, remote file access, command execution, and SQL injection.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mahuttha/offensive-recon/nikto-scan
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mahuttha/offensive-recon --skill nikto-scan
Clone the repo
git clone --depth 1 https://github.com/mahuttha/offensive-recon

Made for: Claude Code.

Or install offensive-recon, the plugin that ships this one along with the rest of its 8 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nikto-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/mahuttha/offensive-recon/nikto-scan/github.svg)](https://agentmods.dev/skills/mahuttha/offensive-recon/nikto-scan)
Your own site
<a href="https://agentmods.dev/skills/mahuttha/offensive-recon/nikto-scan"><img src="https://agentmods.dev/badge/skills/mahuttha/offensive-recon/nikto-scan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nikto-scan

Your own site · 80×15
<a href="https://agentmods.dev/skills/mahuttha/offensive-recon/nikto-scan"><img src="https://agentmods.dev/badge/skills/mahuttha/offensive-recon/nikto-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 937 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00937
Opus 5 $0.00022 $0.00468
Sonnet 5 $0.00009 $0.00187
Haiku 4.5 $0.00004 $0.00094

Measured 11d ago against content hash 81abf4740516, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

nikto-scan scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- If nikto not found: "Nikto is not installed. Install with: `sudo apt install nikto`"
skills/nikto-scan/SKILL.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Nikto Scan — Web Server Vulnerability Assessment

Run web server vulnerability scanning using Nikto against an authorized target.

Decision Loop: In-the-Loop (target approval required before scanning)

Safety — MUST Confirm Before Scanning

Before executing ANY scan:

  1. Display the target URL to the user
  2. Ask for explicit confirmation: "ยืนยันการสแกนเป้าหมาย (Confirm scan target): <target>?"
  3. Do NOT proceed without user approval
  4. Note: Nikto sends many HTTP requests — may trigger WAF/IDS alerts

Arguments

Parse the user's input for:

  • <target-url> — URL or host:port (REQUIRED)
  • --ssl — Force SSL/TLS connection
  • --tuning — Test types to include (default: all)

Tuning Options

Code Test Type
1 Interesting File / Seen in logs
2 Misconfiguration / Default File
3 Information Disclosure
4 Injection (XSS/Script/HTML)
5 Remote File Retrieval — Inside Web Root
6 Denial of Service (SKIP for university targets)
7 Remote File Retrieval — Server Wide
8 Command Execution / Remote Shell
9 SQL Injection

Default for university scans: -Tuning 12345789 (skip DoS)

Execution

After user confirmation, run:

# Determine SSL flag
SSL_FLAG=""  # Add "-ssl" if --ssl specified or URL starts with https

# Determine tuning
TUNING="-Tuning 12345789"  # Skip DoS by default

nikto -h <target-url> ${SSL_FLAG} ${TUNING} -Format json -output /tmp/nikto-output.json 2>&1 | tee /tmp/nikto-console.txt

Output Format

Parse the Nikto output and present:

## ผลการสแกน Nikto (Nikto Scan Results)

### ข้อมูลเป้าหมาย (Target Info)
- **เป้าหมาย (Target)**: `<target>`
- **เซิร์ฟเวอร์ (Server)**: Apache/2.4.52 (Ubuntu)
- **IP**: 203.0.113.10
- **เวลา (Time)**: <timestamp>

### ผลการตรวจพบ (Findings)

| # | Severity | OSVDB | Finding |
|---|----------|-------|---------|
| 1 | HIGH | OSVDB-3092 | /admin/: Admin directory found |
| 2 | MEDIUM | OSVDB-3268 | /icons/: Directory indexing enabled |
| 3 | LOW | OSVDB-0 | X-Frame-Options header not set |

### สรุปตามความรุนแรง (Severity Summary)
- **CRITICAL**: 0
- **HIGH**: 1
- **MEDIUM**: 2
- **LOW**: 3
- **INFO**: 5

### การแมป OWASP (OWASP Mapping)

| Finding | OWASP Category |
|---------|---------------|
| Admin directory exposed | A01:2021 — Broken Access Control |
| Directory indexing | A05:2021 — Security Misconfiguration |
| Missing headers | A05:2021 — Security Misconfiguration |

### คำแนะนำถัดไป (Next Steps)
1. Fix HIGH/CRITICAL findings first
2. Run `/nuclei-scan <target>` for deeper vulnerability testing
3. Run `/sqlmap-scan` on forms/parameters discovered

Read the full file on GitHub · 108 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 108 lines · 44 tokens per session scan B 81abf4740516

Subscribe to this mod's changes

nikto-scan is a skill published in the GitHub repository mahuttha/offensive-recon (4 stars, last pushed 6mo ago), licensed MIT. It adds 44 tokens to every session and 937 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens